|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.resource.cci Interface RecordFactory
public interface RecordFactory
RecordFactory 接口用于创建 MappedRecord 和 IndexedRecord 实例。注意,RecordFactory 只能用于创建一般记录实例。CCI 实现为 RecordFactory 接口提供实现类。
since | 0.8 |
See also | javax.resource.cci.IndexedRecord, javax.resource.cci.MappedRecord |
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 |
createIndexedRecord(String recordName)
Creates a IndexedRecord. |
MappedRecord |
createMappedRecord(String recordName)
Creates a MappedRecord. |
Method Detail |
---|
public MappedRecord
createMappedRecord(String recordName) throws ResourceException
创建一个 MappedRecord。该方法采用将由 RecordFactory 创建的记录名称。记录名称用作指向特定记录类型的元信息(存储在元数据存储库中)的指针。
recordName | Record 的名称 | |
return |
| |
Throws | ResourceException:
无法创建 MappedRecord。错误情况的示例有:
| |
Throws | NotSupportedException: 不支持该操作 |
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 |
| |
Throws | ResourceException:
无法创建 IndexedRecord。错误情况的示例有:
| |
Throws | NotSupportedException: 不支持该操作 |
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!