Record (Java EE 5)

Java EE API


javax.resource.cci Interface Record

All Superinterfaces:
Cloneable, Serializable
All Known Subinterfaces:
IndexedRecord, MappedRecord, ResultSet

public interface Record
extends Cloneable, Serializable

Implements: Cloneable, java.io.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.ResultSetjavax.resource.cci.Record。ResultSet 代表表格数据。

MappedRecord 或 IndexedRecord 可以包含另一个 Record。这意味着可以使用 MappedRecord 和 IndexedRecord 创建任意深度的分层结构。基本 Java 类型用作 MappedRecord 或 IndexedRecord 表示的分层结构的叶元素。

英文文档:

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 both java.sql.ResultSet and javax.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
 boolean
 String
 String
 int
 void
 void
 

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.

Overrides:
equals in class Object
Returns:
true if two instances are equal

public int hashCode()
返回 Record 实例的哈希码。
return 哈希码
英文文档:

hashCode

int hashCode()
Returns the hash code for the Record instance.

Overrides:
hashCode in class Object
Returns:
hash code

public Object clone() throws CloneNotSupportedException
创建并返回此对象的一个副本。“副本”的准确含义可能依赖于对象的类。
return 此实例的一个副本。
ThrowsCloneNotSupportedException: 如果该对象的类不支持 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.


Submit a bug or feature

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

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

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