gov.nih.nci.caarray.services.util.ojb
Class RowReaderBioSequence
java.lang.Object
org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl
gov.nih.nci.caarray.services.util.ojb.RowReaderBioSequence
- All Implemented Interfaces:
- java.io.Serializable, org.apache.ojb.broker.accesslayer.RowReader
public final class RowReaderBioSequence
- extends org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl
This custom OJB's RowReader reads a BioSequence object that has the "sequence"
attribute stored as Oracle's LONG type which must be read as the FIRST and
UNIQUE column from the row. By default, OJB reads the primary key of the row
first when the row is an object reference or collection element of a parent object,
thereby preventing the LONG "sequence" column from being read as the first column
and causing the "SQLException: Stream has been closed".
- Author:
- TranP
- See Also:
- Serialized Form
Fields inherited from interface org.apache.ojb.broker.accesslayer.RowReader |
serialVersionUID |
Methods inherited from class org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl |
buildOrRefreshObject, getClassDescriptor, readObjectArrayFrom, readObjectFrom, readValuesFrom, refreshObject, selectClassDescriptor, setClassDescriptor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RowReaderBioSequence
public RowReaderBioSequence(org.apache.ojb.broker.metadata.ClassDescriptor cld)
readPkValuesFrom
public void readPkValuesFrom(java.sql.ResultSet rs,
java.util.Map row)
- Specified by:
readPkValuesFrom
in interface org.apache.ojb.broker.accesslayer.RowReader
- Overrides:
readPkValuesFrom
in class org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl