sample
Class RecordImpl

java.lang.Object
  extended by sample.RecordImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Record, Streamable
Direct Known Subclasses:
CustomerRecordImpl, EmployeeRecordImpl

public class RecordImpl
extends java.lang.Object
implements Record, java.io.Serializable, Streamable

See Also:
Serialized Form

Constructor Summary
RecordImpl()
           
 
Method Summary
 java.lang.Object clone()
          Creates and returns a copy of this object.
 boolean equals(java.lang.Object other)
          Check if this instance is equal to another Record.
 java.lang.String getRecordName()
          Gets the name of the Record.
 java.lang.String getRecordShortDescription()
          Gets a short description string for the Record.
 void read(java.io.InputStream istream)
          Read data from an InputStream and initialize fields of a Streamable object.
 void setRecordName(java.lang.String name)
          Sets the name of the Record.
 void setRecordShortDescription(java.lang.String description)
          Sets a short description string for the Record.
 void write(java.io.OutputStream ostream)
          Write fields of a Streamable object to an OutputStream
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.resource.cci.Record
hashCode
 

Constructor Detail

RecordImpl

public RecordImpl()
Method Detail

getRecordName

public java.lang.String getRecordName()
Description copied from interface: Record
Gets the name of the Record.

Specified by:
getRecordName in interface Record
Returns:
String representing name of the Record

setRecordName

public void setRecordName(java.lang.String name)
Description copied from interface: Record
Sets the name of the Record.

Specified by:
setRecordName in interface Record
Parameters:
name - Name of the Record

setRecordShortDescription

public void setRecordShortDescription(java.lang.String description)
Description copied from interface: Record
Sets a short description string for the Record. This property is used primarily by application development tools.

Specified by:
setRecordShortDescription in interface Record
Parameters:
description - Description of the Record

getRecordShortDescription

public java.lang.String getRecordShortDescription()
Description copied from interface: Record
Gets a short description string for the Record. This property is used primarily by application development tools.

Specified by:
getRecordShortDescription in interface Record
Returns:
String representing a short description of the Record

equals

public boolean equals(java.lang.Object other)
Description copied from interface: Record
Check if this instance is equal to another Record.

Specified by:
equals in interface Record
Overrides:
equals in class java.lang.Object
Returns:
true if two instances are equal

read

public void read(java.io.InputStream istream)
          throws java.io.IOException
Description copied from interface: Streamable
Read data from an InputStream and initialize fields of a Streamable object.

Specified by:
read in interface Streamable
Parameters:
istream - InputStream that represents a resource adapter specific internal representation of fields of a Streamable object
Throws:
java.io.IOException

write

public void write(java.io.OutputStream ostream)
           throws java.io.IOException
Description copied from interface: Streamable
Write fields of a Streamable object to an OutputStream

Specified by:
write in interface Streamable
Parameters:
ostream - OutputStream that holds value of a Streamable object
Throws:
java.io.IOException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: Record
Creates and returns a copy of this object. The precise meaning of "copy" may depend on the class of the object.

Specified by:
clone in interface Record
Overrides:
clone in class java.lang.Object
Returns:
a clone of this instance.
Throws:
java.lang.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.


Copyright © 2008 Sun Microsystems, Inc.. All Rights Reserved.