public class RowReaderDefaultImpl extends java.lang.Object implements RowReader
RowReader
interface.serialVersionUID
Constructor and Description |
---|
RowReaderDefaultImpl(ClassDescriptor cld) |
Modifier and Type | Method and Description |
---|---|
ClassDescriptor |
getClassDescriptor()
Returns the associated
ClassDescriptor |
void |
readObjectArrayFrom(ResultSetAndStatement rs_stmt,
java.util.Map row)
materialize a single object, described by cld,
from the first row of the ResultSet rs.
|
java.lang.Object |
readObjectFrom(java.util.Map row)
materialize a single object, described by cld,
from the first row of the ResultSet rs.
|
void |
readPkValuesFrom(ResultSetAndStatement rs_stmt,
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.
|
public RowReaderDefaultImpl(ClassDescriptor cld)
public java.lang.Object readObjectFrom(java.util.Map row) throws PersistenceBrokerException
readObjectFrom
in interface RowReader
row
- the Map containing the new valuesPersistenceBrokerException
public void refreshObject(java.lang.Object instance, java.util.Map row)
RowReader
refreshObject
in interface RowReader
instance
- the instance to refreshrow
- the Map containing the new valuesRowReader.refreshObject(Object, Map)
public void readObjectArrayFrom(ResultSetAndStatement rs_stmt, java.util.Map row)
readObjectArrayFrom
in interface RowReader
PersistenceBrokerException
- if there is an error accessing the access layerpublic void readPkValuesFrom(ResultSetAndStatement rs_stmt, java.util.Map row)
RowReader
readPkValuesFrom
in interface RowReader
public void setClassDescriptor(ClassDescriptor cld)
RowReader
setClassDescriptor
in interface RowReader
public ClassDescriptor getClassDescriptor()
RowReader
ClassDescriptor
getClassDescriptor
in interface RowReader
(C) 2002 - 2005 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