gov.nih.nci.caarray.services.util.ojb
Class RowReaderUnit
java.lang.Object
org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl
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
Fields inherited from interface org.apache.ojb.broker.accesslayer.RowReader |
serialVersionUID |
Constructor Summary |
RowReaderUnit(org.apache.ojb.broker.metadata.ClassDescriptor cld)
|
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 |
RowReaderUnit
public RowReaderUnit(org.apache.ojb.broker.metadata.ClassDescriptor cld)
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