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

java.lang.Object
  extended by org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl
      extended by gov.nih.nci.caarray.services.util.ojb.RowReaderUnit
All Implemented Interfaces:
java.io.Serializable, org.apache.ojb.broker.accesslayer.RowReader

public final class RowReaderUnit
extends org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl

This custom OJB's RowReader creates the appropriate UnitNameCV object given the UnitNameCV string value and set it to the Unit being retrieved. By default, OJB doesn't have access to the method setValueByNameUnitNameCV from the Unit superclass and the Unit has to be cast down to the specific Unit subclass such as MassUnit before the method can be invoked. This class does just that.

Author:
TranP
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface org.apache.ojb.broker.accesslayer.RowReader
serialVersionUID
 
Constructor Summary
RowReaderUnit(org.apache.ojb.broker.metadata.ClassDescriptor cld)
           
 
Method Summary
 void readObjectArrayFrom(java.sql.ResultSet rs, java.util.Map row)
           
 
Methods inherited from class org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl
buildOrRefreshObject, getClassDescriptor, readObjectFrom, readPkValuesFrom, readValuesFrom, refreshObject, selectClassDescriptor, setClassDescriptor
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RowReaderUnit

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

readObjectArrayFrom

public void readObjectArrayFrom(java.sql.ResultSet rs,
                                java.util.Map row)
Specified by:
readObjectArrayFrom in interface org.apache.ojb.broker.accesslayer.RowReader
Overrides:
readObjectArrayFrom in class org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl