RecordFactory (Java EE 5)

Java EE API


javax.resource.cci Interface RecordFactory


public interface RecordFactory


RecordFactory 接口用于创建 MappedRecord 和 IndexedRecord 实例。注意,RecordFactory 只能用于创建一般记录实例。CCI 实现为 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.

Since:
0.8
Author:
Rahul Sharma
See Also:
IndexedRecord, MappedRecord

Method Summary
 IndexedRecord
 MappedRecord
 

Method Detail

public MappedRecord createMappedRecord(String recordName) throws ResourceException
创建一个 MappedRecord。该方法采用将由 RecordFactory 创建的记录名称。记录名称用作指向特定记录类型的元信息(存储在元数据存储库中)的指针。
recordName Record 的名称
return
MappedRecord
ThrowsResourceException: 无法创建 MappedRecord。错误情况的示例有:
  • 无效的记录名称规范
  • 资源适配器内部错误
  • 无法访问元数据存储库
ThrowsNotSupportedException: 不支持该操作
英文文档:

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.

Parameters:
recordName - Name of the Record
Returns:
MappedRecord
Throws:
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

public IndexedRecord createIndexedRecord(String recordName) throws ResourceException
创建一个 IndexedRecord。该方法采用将由 RecordFactory 创建的记录名称。记录名称用作指向特定记录类型的元信息(存储在元数据存储库中)的指针。
recordName Record 的名称
return
IndexedRecord
ThrowsResourceException: 无法创建 IndexedRecord。错误情况的示例有:
  • 无效的记录名称规范
  • 资源适配器内部错误
  • 无法访问元数据存储库
ThrowsNotSupportedException: 不支持该操作
英文文档:

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.

Parameters:
recordName - Name of the Record
Returns:
IndexedRecord
Throws:
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


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!