wt.pds
Class DatastoreStructProcessor

java.lang.Object
  extended bywt.pds.AbstractPersistenceArray
      extended bywt.pds.DatastoreStructProcessor
All Implemented Interfaces:
PersistentRetrieveIfc, PersistentStoreIfc

public class DatastoreStructProcessor
extends AbstractPersistenceArray


Field Summary
 
Fields inherited from class wt.pds.AbstractPersistenceArray
attributeName, attributeValue, readIndex, targetClass, VERBOSE
 
Fields inherited from interface wt.pds.PersistentStoreIfc
versionID
 
Fields inherited from interface wt.pds.PersistentRetrieveIfc
versionID
 
Constructor Summary
DatastoreStructProcessor(Class a_targetClass, Object[] a_rawData)
           
DatastoreStructProcessor(DatastoreStruct a_struct)
           
 
Method Summary
 Object[] getArrayData()
           
 ObjectMappable readObject(String a_attributeName, ObjectMappable a_obj, Class a_concreteClass, boolean a_isRequired)
          Get the values corresponding to a nested ObjectMappable Object.
 void writeObject(String a_attributeName, ObjectMappable a_obj, Class a_concreteClass, boolean a_isRequired)
          Set the values corresponding to a nested ObjectMappable Object.
 
Methods inherited from class wt.pds.AbstractPersistenceArray
close, getAsciiStream, getBigDecimal, getBinaryStream, getBoolean, getBooleanObject, getByte, getByteObject, getBytes, getChar, getCharObject, getContainer, getDate, getDouble, getDoubleObject, getFloat, getFloatObject, getInlineObject, getInt, getIntObject, getLobLocator, getLong, getLongObject, getObject, getObjectMappable, getRawData, getShort, getShortObject, getSmallObject, getString, getTime, getTimestamp, getUnicodeStream, next, processObject, setAsciiStream, setBigDecimal, setBinaryStream, setBoolean, setBooleanObject, setByte, setByteObject, setBytes, setChar, setCharObject, setDate, setDouble, setDoubleObject, setFloat, setFloatObject, setInlineObject, setInt, setIntObject, setLobLocator, setLong, setLongObject, setNull, setObject, setRawData, setShort, setShortObject, setSmallObject, setString, setTime, setTimestamp, setUnicodeStream, wasNull
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatastoreStructProcessor

public DatastoreStructProcessor(DatastoreStruct a_struct)
                         throws WTException

DatastoreStructProcessor

public DatastoreStructProcessor(Class a_targetClass,
                                Object[] a_rawData)
                         throws WTException
Method Detail

getArrayData

public Object[] getArrayData()

readObject

public ObjectMappable readObject(String a_attributeName,
                                 ObjectMappable a_obj,
                                 Class a_concreteClass,
                                 boolean a_isRequired)
                          throws SQLException,
                                 DatastoreException
Description copied from interface: PersistentRetrieveIfc
Get the values corresponding to a nested ObjectMappable Object. This results in a call to the nested object's readExternal method.

Parameters:
a_attributeName - a class attribute name
a_obj - the nested object
a_concreteClass - the class to instantiate if needed
Throws:
DatastoreException - if any other internal error occurs.
SQLException - if a database-access error occurs.

writeObject

public void writeObject(String a_attributeName,
                        ObjectMappable a_obj,
                        Class a_concreteClass,
                        boolean a_isRequired)
                 throws SQLException,
                        DatastoreException
Description copied from interface: PersistentStoreIfc
Set the values corresponding to a nested ObjectMappable Object. This results in a call the nested object's writeExternal method.

Parameters:
a_attributeName - a class attribute name
a_obj - the nested object
a_concreteClass - the class of the object (in case obj is null)
Throws:
SQLException - if a database-access error occurs.
DatastoreException