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,v 1.9 2004/04/04 23:53:31 brianm Exp $

Field Summary
static long serialVersionUID
           
 
Method Summary
 ClassDescriptor getClassDescriptor()
          Returns the associated ClassDescriptor
 void readObjectArrayFrom(java.sql.ResultSet 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(java.sql.ResultSet 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

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

readObjectFrom

public 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

public 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

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


readPkValuesFrom

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


setClassDescriptor

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


getClassDescriptor

public ClassDescriptor getClassDescriptor()
Returns the associated ClassDescriptor



(C) 2002 - 2004 Apache Software Foundation
All rights reserved. Published under the Apache License 2.0.
http://db.apache.org/ojb
Version: 1.0.3, 2005-04-2