gov.nih.nci.caarray.services.util.ojb
Class RowReaderBioSequence

java.lang.Object
  extended by org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl
      extended by 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

Field Summary
 
Fields inherited from interface org.apache.ojb.broker.accesslayer.RowReader
serialVersionUID
 
Constructor Summary
RowReaderBioSequence(org.apache.ojb.broker.metadata.ClassDescriptor cld)
           
 
Method Summary
 void readPkValuesFrom(java.sql.ResultSet rs, java.util.Map row)
           
 
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
 

Constructor Detail

RowReaderBioSequence

public RowReaderBioSequence(org.apache.ojb.broker.metadata.ClassDescriptor cld)
Method Detail

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