RecordFactory (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.resource.cci Interface RecordFactory


public interface RecordFactory

The RecordFactory interface is used for creating MappedRecord and IndexedRecord instances. Note that the RecordFactory is only used for creation of generic record instances. A CCI implementation provides an implementation class for the RecordFactory interface.

从以下版本开始:
0.8
作者:
Rahul Sharma
另请参见:
IndexedRecord, MappedRecord

方法摘要
 IndexedRecord createIndexedRecord(String recordName)
          Creates a IndexedRecord.
 MappedRecord createMappedRecord(String recordName)
          Creates a MappedRecord.
 

方法详细信息

createMappedRecord

MappedRecord createMappedRecord(String recordName)
                                throws ResourceException
Creates a MappedRecord. The method takes the name of the record that is to be created by the RecordFactory. The name of the record acts as a pointer to the meta information (stored in the metadata repository) for a specific record type.

参数:
recordName - Name of the Record
返回:
MappedRecord
抛出异常:
ResourceException - Failed to create a MappedRecord. Example error cases are:
  • Invalid specification of record name
  • Resource adapter internal error
  • Failed to access metadata repository
NotSupportedException - Operation not supported

createIndexedRecord

IndexedRecord createIndexedRecord(String recordName)
                                  throws ResourceException
Creates a IndexedRecord. The method takes the name of the record that is to be created by the RecordFactory. The name of the record acts as a pointer to the meta information (stored in the metadata repository) for a specific record type.

参数:
recordName - Name of the Record
返回:
IndexedRecord
抛出异常:
ResourceException - Failed to create an IndexedRecord. Example error cases are:
  • Invalid specification of record name
  • Resource adapter internal error
  • Failed to access metadata repository
NotSupportedException - Operation not supported

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.