org.apache.ojb.broker.accesslayer
Interface RowReader

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
RowReaderDefaultImpl

public interface RowReader
extends java.io.Serializable

Version:
$Id: RowReader.java 365232 2005-12-21 22:36:07Z tomdz $

Field Summary
static long serialVersionUID
           
 
Method Summary
 ClassDescriptor getClassDescriptor()
          Returns the associated ClassDescriptor
 void readObjectArrayFrom(ResultSetAndStatement rs, java.util.Map row)
          Read all fields from the current ResultRow into the Object[] row.# ConversionStrategies are applied here!
 java.lang.Object readObjectFrom(java.util.Map row)
          materialize a single object from the values of the Map row.
 void readPkValuesFrom(ResultSetAndStatement rs, java.util.Map row)
          Read primary key fields from the current ResultRow into the Object[] row.# ConversionStrategies are applied here!
 void refreshObject(java.lang.Object instance, java.util.Map row)
          refresh an existing instance from the values of the Map row.
 void setClassDescriptor(ClassDescriptor cld)
          Set the descriptor this RowReader worked with.
 

Field Detail

serialVersionUID

static final long serialVersionUID
See Also:
Constant Field Values
Method Detail

readObjectFrom

java.lang.Object readObjectFrom(java.util.Map row)
materialize a single object from the values of the Map row. the implementor of this class must not care for materializing references or collection attributes, this is done later!

Parameters:
row - the Map containing the new values
Returns:
a properly created instance.

refreshObject

void refreshObject(java.lang.Object instance,
                   java.util.Map row)
refresh an existing instance from the values of the Map row.

Parameters:
instance - the instance to refresh
row - the Map containing the new values

readObjectArrayFrom

void readObjectArrayFrom(ResultSetAndStatement rs,
                         java.util.Map row)
Read all fields from the current ResultRow into the Object[] row.# ConversionStrategies are applied here!


readPkValuesFrom

void readPkValuesFrom(ResultSetAndStatement rs,
                      java.util.Map row)
Read primary key fields from the current ResultRow into the Object[] row.# ConversionStrategies are applied here!


setClassDescriptor

void setClassDescriptor(ClassDescriptor cld)
Set the descriptor this RowReader worked with.


getClassDescriptor

ClassDescriptor getClassDescriptor()
Returns the associated ClassDescriptor



(C) 2002 - 2006 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.4, 2005-12-30