sample
Class CustomerRecordImpl

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

public class CustomerRecordImpl
extends RecordImpl
implements CustomerRecord, java.io.Serializable, Streamable

See Also:
Serialized Form

Constructor Summary
CustomerRecordImpl()
           
 
Method Summary
 java.lang.String getAddress()
           
 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 setAddress(java.lang.String address)
           
 void setId(java.lang.String custId)
           
 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

CustomerRecordImpl

public CustomerRecordImpl()
Method Detail

setName

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

setId

public void setId(java.lang.String custId)
Specified by:
setId in interface CustomerRecord

setAddress

public void setAddress(java.lang.String address)
Specified by:
setAddress in interface CustomerRecord

getName

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

getId

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

getAddress

public java.lang.String getAddress()
Specified by:
getAddress in interface CustomerRecord

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.