ojb.broker.accesslayer
Interface RowReader

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

public interface RowReader
extends java.io.Serializable


Method Summary
 void readObjectArrayFrom(java.sql.ResultSet rs, ClassDescriptor cld, java.lang.Object[] row)
          Read all fields from the current ResultRow into the Object[] row.# ConversionStrategies are applied here!
 java.lang.Object readObjectFrom(java.lang.Object[] row, ClassDescriptor cld)
          materialize a single object of a type described by cld, from the first row of the ResultSet rs.
 void readPkValuesFrom(java.sql.ResultSet rs, ClassDescriptor cld, java.lang.Object[] row)
          Read primary key fields from the current ResultRow into the Object[] row.# ConversionStrategies are applied here!
 

Method Detail

readObjectFrom

public java.lang.Object readObjectFrom(java.lang.Object[] row,
                                       ClassDescriptor cld)
materialize a single object of a type described by cld, from the first row of the ResultSet rs. the implementor of this class must not care for materializing references or collection attributes, this is done later!


readObjectArrayFrom

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


readPkValuesFrom

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



Authors: Thomas Mahler and others. (C) 2000, 2001.
All rights reserved. Published under the Gnu Public License.
http://objectbridge.sourceforge.net
Version: 0.8.375, 2002-04-04