|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.resource.cci Interface Record
- All Superinterfaces:
- Cloneable, Serializable
- All Known Subinterfaces:
- IndexedRecord, MappedRecord, ResultSet
public interface Record
- extends Cloneable, Serializable
javax.resource.cci.Record
接口是一个基本接口,用于表示 Interaction 上定义的 execute 方法的输入或输出。
可以扩展 Record 接口以形成以下表示形式之一:
- MappedRecord:基于键-值对的 Collection 表示一个记录。此接口基于
java.util.Map
- IndexedRecord:一个有序且具有索引的 Collection 表示一个记录。此接口基于
java.util.List
。 - 基于 JavaBean 的 EIS 抽象的表示形式:例如,生成的自定义记录表示 ERP 系统中的一个采购订单。
-
javax.resource.cci.ResultSet
:此接口扩展java.sql.ResultSet
和javax.resource.cci.Record
。ResultSet 代表表格数据。
MappedRecord 或 IndexedRecord 可以包含另一个 Record。这意味着可以使用 MappedRecord 和 IndexedRecord 创建任意深度的分层结构。基本 Java 类型用作 MappedRecord 或 IndexedRecord 表示的分层结构的叶元素。
version | 0.8 |
See also | javax.resource.cci.Interaction, java.sql.ResultSet |
The javax.resource.cci.Record
interface is the base
interface for the representation of an input or output to the
execute methods defined on an Interaction.
The Record interface can be extended to form a one of the following representations:
- MappedRecord: A key-value pair based collection represents
a record. This interface is based on the
java.util.Map
- IndexedRecord:An ordered and indexed collection represents
a record. This interface is based on the
java.util.List
. - JavaBean based representation of an EIS abstraction: An example is a custom record generated to represent a purchase order in an ERP system.
-
javax.resource.cci.ResultSet
: This interface extends bothjava.sql.ResultSet
andjavax.resource.cci.Record
. A ResultSet represents tabular data.
A MappedRecord or IndexedRecord can contain another Record. This means that MappedRecord and IndexedRecord can be used to create a hierarchical structure of any arbitrary depth. A basic Java type is used as the leaf element of a hierarchical structure represented by a MappedRecord or IndexedRecord.
- Version:
- 0.8
- Author:
- Rahul Sharma
- See Also:
Interaction
,ResultSet
Method Summary | |
---|---|
Object |
clone()
Creates and returns a copy of this object. |
boolean |
equals(Object other)
Check if this instance is equal to another Record. |
String |
getRecordName()
Gets the name of the Record. |
String |
getRecordShortDescription()
Gets a short description string for the Record. |
int |
hashCode()
Returns the hash code for the Record instance. |
void |
setRecordName(String name)
Sets the name of the Record. |
void |
setRecordShortDescription(String description)
Sets a short description string for the Record. |
Method Detail |
---|
public String
getRecordName()
获取 Record 的名称。
return | 表示 Record 名称的字符串 |
getRecordName
String getRecordName()
- Gets the name of the Record.
- Returns:
- String representing name of the Record
public void
setRecordName(String name)
设置 Record 的名称。
name | Record 的名称 |
setRecordName
void setRecordName(String name)
- Sets the name of the Record.
- Parameters:
name
- Name of the Record
public void
setRecordShortDescription(String description)
设置 Record 的简短描述字符串。此属性主要供应用程序开发工具使用。
description | Record 的描述 |
setRecordShortDescription
void setRecordShortDescription(String description)
- Sets a short description string for the Record. This property
is used primarily by application development tools.
- Parameters:
description
- Description of the Record
public String
getRecordShortDescription()
获取 Record 的简短描述字符串。此属性主要供应用程序开发工具使用。
return | 表示 Record 简短描述的字符串 |
getRecordShortDescription
String getRecordShortDescription()
- Gets a short description string for the Record. This property
is used primarily by application development tools.
- Returns:
- String representing a short description of the Record
public boolean
equals(Object other)
检查此实例是否等于另一个 Record。
return | 如果两个实例相等,则返回 true |
equals
boolean equals(Object other)
- Check if this instance is equal to another Record.
- Returns:
- true if two instances are equal
public int
hashCode()
返回 Record 实例的哈希码。
return | 哈希码 |
hashCode
int hashCode()
public Object
clone() throws CloneNotSupportedException
创建并返回此对象的一个副本。“副本”的准确含义可能依赖于对象的类。
return | 此实例的一个副本。 |
Throws | CloneNotSupportedException: 如果该对象的类不支持 Cloneable 接口。重写 clone 方法的子类还可以抛出此异常表示无法复制实例。 |
clone
Object clone() throws CloneNotSupportedException
- Creates and returns a copy of this object. The precise
meaning of "copy" may depend on the class of the object.
- Returns:
- a clone of this instance.
- Throws:
CloneNotSupportedException
- If the object's class does not support the Cloneable interface Subclasses that override the clone method can also throw this exception to indicate that an instance cannot be cloned.
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!