sample
Class EmployeeRecordImpl

java.lang.Object
  extended by sample.RecordImpl
      extended by sample.EmployeeRecordImpl
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Record, Streamable, EmployeeRecord

public class EmployeeRecordImpl
extends RecordImpl
implements EmployeeRecord, java.io.Serializable, Streamable

See Also:
Serialized Form

Constructor Summary
EmployeeRecordImpl()
           
 
Method Summary
 java.lang.String getId()
           
 java.lang.String getName()
           
 void read(java.io.InputStream istream)
          Read data from an InputStream and initialize fields of a Streamable object.
 void setId(java.lang.String id)
           
 void setName(java.lang.String name)
           
 void write(java.io.OutputStream ostream)
          Write fields of a Streamable object to an OutputStream
 
Methods inherited from class sample.RecordImpl
clone, equals, getRecordName, getRecordShortDescription, setRecordName, setRecordShortDescription
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.resource.cci.Record
clone, equals, getRecordName, getRecordShortDescription, hashCode, setRecordName, setRecordShortDescription
 

Constructor Detail

EmployeeRecordImpl

public EmployeeRecordImpl()
Method Detail

setName

public void setName(java.lang.String name)
Specified by:
setName in interface EmployeeRecord

setId

public void setId(java.lang.String id)
Specified by:
setId in interface EmployeeRecord

getName

public java.lang.String getName()
Specified by:
getName in interface EmployeeRecord

getId

public java.lang.String getId()
Specified by:
getId in interface EmployeeRecord

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
Overrides:
read in class RecordImpl
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
Overrides:
write in class RecordImpl
Parameters:
ostream - OutputStream that holds value of a Streamable object
Throws:
java.io.IOException


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