sample
Class EmployeeRecordImpl
java.lang.Object
sample.RecordImpl
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
|
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 java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmployeeRecordImpl
public EmployeeRecordImpl()
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.