uk.ac.ebi.intact.persistence
Class IntactRowReaderImpl
java.lang.Object
|
+--org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl
|
+--uk.ac.ebi.intact.persistence.IntactRowReaderImpl
- All Implemented Interfaces:
- org.apache.ojb.broker.accesslayer.RowReader, java.io.Serializable
- public class IntactRowReaderImpl
- extends org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl
Row Reader class specific to Intact. This Row Reader is used by OJB
to materialize Intact objects via private no-arg constructors. This is
acheieved by reflection - OJB works best if it uses no-arg constructors
(although it supports multi-arg ones, the argumment must be primitive types only).
- Version:
- $Id: IntactRowReaderImpl.java,v 1.2 2004/01/31 11:44:52 skerrien Exp $
- Author:
- Chris Lewington
- See Also:
- Serialized Form
|
Method Summary |
protected java.lang.Object |
buildWithReflection(org.apache.ojb.broker.metadata.ClassDescriptor cld,
java.util.Map row)
Method used by the main OJB code in RowReaderDefaultImpl to
generate an object via reflections. |
| Methods inherited from class org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl |
buildWithMultiArgsConstructor, readObjectArrayFrom, readObjectFrom, readPkValuesFrom, selectClassDescriptor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IntactRowReaderImpl
public IntactRowReaderImpl()
buildWithReflection
protected java.lang.Object buildWithReflection(org.apache.ojb.broker.metadata.ClassDescriptor cld,
java.util.Map row)
- Method used by the main OJB code in
RowReaderDefaultImpl to
generate an object via reflections. This is the only difference for Intact -
we want private no-arg constructors, hence we deal with that here. This method overrides
the one provided in the default OJB class.
- Overrides:
buildWithReflection in class org.apache.ojb.broker.accesslayer.RowReaderDefaultImpl
- Parameters:
cld - The ClassDescriptor of the class to buildrow - The DB row containing the object data
- Returns:
- Object The object created
IntAct Project - EMBL-EBI 2004 - intact-help@ebi.ac.uk