wt.pds
Class PersistenceCloner

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

public class PersistenceCloner
extends Object
implements PersistentStoreIfc, PersistentRetrieveIfc


Field Summary
private  ArrayList attributeName
           
private  ArrayList attributeValue
           
private  ByteArrayOutputStream baos
           
private static boolean chatter
           
private static String CLASSNAME
           
static boolean DEBUG
           
private  int depth
           
private  PDSEncoder encoder
           
private static DebugWriter LOG
           
private  int readIndex
           
private static boolean requiredObject
           
private static boolean showCloning
           
private static boolean showNullObjects
           
private static boolean showOids
           
private  Class targetClass
           
private  int writeIndex
           
 
Fields inherited from interface wt.pds.PersistentStoreIfc
versionID
 
Fields inherited from interface wt.pds.PersistentRetrieveIfc
versionID
 
Constructor Summary
PersistenceCloner(ObjectMappable obj)
           
 
Method Summary
private  boolean aNullObject(int read_index)
           
 void close()
          Immediately release a ResultSet's datastore and connection resources
private  void createPseudoObj(Class desired_class)
           
private  Object dynamicCloner(Cloneable anObj)
           
private  Object genericCloner(Object object)
           
 InputStream getAsciiStream(String attribute_name)
          Get the value of a column in the current row as a stream of ASCII characters.
 BigDecimal getBigDecimal(String attribute_name)
          Get the value of a column in the current row as a BigDecimal
 InputStream getBinaryStream(String attribute_name)
          Get the value of a column in the current row as a stream of uninterpreted bytes.
 boolean getBoolean(String attribute_name)
          Get the value of a column in the current row as a Java boolean.
 Boolean getBooleanObject(String attribute_name)
          Get the value of a column in the current row as a Boolean.
 byte getByte(String attribute_name)
          Get the value of a column in the current row as a Java byte.
 Byte getByteObject(String attribute_name)
          Get the value of a column in the current row as a Byte.
 byte[] getBytes(String attribute_name)
          Get the value of a column in the current row as a Java byte array.
 char getChar(String attribute_name)
          Get the value of a column in the current row as a Java char.
 Character getCharObject(String attribute_name)
          Get the value of a column in the current row as a Character.
 ObjectMappable getClone()
           
 ObjectMappable getClone(ObjectMappable target)
           
 String getContainer()
          Get the current container name.
 Date getDate(String attribute_name)
          Get the value of a column in the current row as a java.sql.Date object.
 double getDouble(String attribute_name)
          Get the value of a column in the current row as a Java double.
 Double getDoubleObject(String attribute_name)
          Get the value of a column in the current row as a Double.
 float getFloat(String attribute_name)
          Get the value of a column in the current row as a Java float.
 Float getFloatObject(String attribute_name)
          Get the value of a column in the current row as a Float.
 Object getInlineObject(String attributeName, String blobAttributeName)
          Get the value of a blob column as a Java Object.
 int getInt(String attribute_name)
          Get the value of a column in the current row as a Java int.
 Integer getIntObject(String attribute_name)
          Get the value of a column in the current row as an Integer.
 LobLocator getLobLocator(String attribute_name)
          Get a LobLocator for the given attribute.
 long getLong(String attribute_name)
          Get the value of a column in the current row as a Java long.
 Long getLongObject(String attribute_name)
          Get the value of a column in the current row as a Long.
 Object getObject(String attribute_name)
          Get the value of a column in the current row as a Java object.
 short getShort(String attribute_name)
          Get the value of a column in the current row as a Java short.
 Short getShortObject(String attribute_name)
          Get the value of a column in the current row as a Short.
 Object getSmallObject(String attribute_name)
          Get the value of a column in the current row as a Java object.
 String getString(String attribute_name)
          Get the value of a column in the current row as a Java String.
 Time getTime(String attribute_name)
          Get the value of a column in the current row as a java.sql.Time object.
 Timestamp getTimestamp(String attribute_name)
          Get the value of a column in the current row as a java.sql.Timestamp object.
 InputStream getUnicodeStream(String attribute_name)
          Get the value of a column in the current row as a stream of Unicode characters and then read in chunks.
 boolean next()
          A ResultSet is initially positioned before its first row; the first call to next makes the first row the current row; the second call makes the second row the current row, etc.
 void oidShow(String info, ObjectMappable obj)
           
 ObjectMappable readObject(String attribute_name, ObjectMappable obj, Class concrete_class, boolean is_required)
          Get the values corresponding to a nested ObjectMappable Object.
 void setAsciiStream(String attribute_name, InputStream aStream, int len)
          Set the value to an ascii stream.
 void setBigDecimal(String attribute_name, BigDecimal aBigDecimal)
          Set the value to a BigDecimal.
 void setBinaryStream(String attribute_name, InputStream aStream, int len)
          Set the value to a binary stream.
 void setBoolean(String attribute_name, boolean aBool)
          Set the value to a Java boolean.
 void setBooleanObject(String attribute_name, Boolean aBool)
          Set the value to a Boolean.
 void setByte(String attribute_name, byte aByte)
          Set the value to a Java byte.
 void setByteObject(String attribute_name, Byte aByte)
          Set the value to a Byte.
 void setBytes(String attribute_name, byte[] bArray)
          Set the value to a Java byte array.
 void setChar(String attribute_name, char aChar)
          Set the value to a Java char.
 void setCharObject(String attribute_name, Character aChar)
          Set the value to a Character.
 void setDate(String attribute_name, Date aDate)
          Set the value to a java.util.Date.
 void setDouble(String attribute_name, double aDbl)
          Set the value to a Java double.
 void setDoubleObject(String attribute_name, Double aDbl)
          Set the value to a Double.
 void setFloat(String attribute_name, float aFloat)
          Set the value to a Java float.
 void setFloatObject(String attribute_name, Float aFloat)
          Set the value to a Float.
 void setInlineObject(String attribute_name, String blobAttributeName, Serializable anObj)
          Set the value to a Java Serializable Object.
 void setInt(String attribute_name, int anInt)
          Set the value to a Java int.
 void setIntObject(String attribute_name, Integer anInt)
          Set the value to a Integer.
 void setLobLocator(String attribute_name, LobLocator aLL)
          Set the value to a Lob locator.
 void setLong(String attribute_name, long aLong)
          Set the value to a Java long.
 void setLongObject(String attribute_name, Long aLong)
          Set the value to a Long.
 void setNull(String attribute_name, int sqltype)
          Set the value to a null.
 void setObject(String attribute_name, Object anObj)
          Set the value to a Java object.
 void setShort(String attribute_name, short aShort)
          Set the value to a Java short.
 void setShortObject(String attribute_name, Short aShort)
          Set the value to a Short.
 void setSmallObject(String attribute_name, Serializable anObj)
          Set the value to a Java object.
 void setString(String attribute_name, String aString)
          Set the value to a Java String.
 void setTime(String attribute_name, Time aTime)
          Set the value to a Java Timee.
 void setTimestamp(String attribute_name, Timestamp aTimestamp)
          Set the value to a Java Timestamp.
 void setUnicodeStream(String attribute_name, InputStream aStream, int len)
          Set the value to a Java Unicode stream.
private  Object streamCloneObj(Object object)
           
 boolean wasNull()
          A column may have the value of SQL NULL; wasNull reports whether the last column read had this special value.
 void writeObject(String attribute_name, ObjectMappable obj, Class concrete_class, boolean is_required)
          Set the values corresponding to a nested ObjectMappable Object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetClass

private Class targetClass

attributeName

private ArrayList attributeName

attributeValue

private ArrayList attributeValue

readIndex

private int readIndex

writeIndex

private int writeIndex

depth

private int depth

encoder

private PDSEncoder encoder

baos

private ByteArrayOutputStream baos

chatter

private static final boolean chatter
See Also:
Constant Field Values

showOids

private static final boolean showOids
See Also:
Constant Field Values

showNullObjects

private static final boolean showNullObjects
See Also:
Constant Field Values

requiredObject

private static final boolean requiredObject
See Also:
Constant Field Values

showCloning

private static final boolean showCloning
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

DEBUG

public static final boolean DEBUG

LOG

private static final DebugWriter LOG
Constructor Detail

PersistenceCloner

public PersistenceCloner(ObjectMappable obj)
                  throws RuntimeException
Method Detail

getClone

public ObjectMappable getClone()
                        throws RuntimeException
Throws:
RuntimeException

getClone

public ObjectMappable getClone(ObjectMappable target)
                        throws RuntimeException
Throws:
RuntimeException

getAsciiStream

public InputStream getAsciiStream(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a stream of ASCII characters.

Specified by:
getAsciiStream in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is null

getBigDecimal

public BigDecimal getBigDecimal(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a BigDecimal

Specified by:
getBigDecimal in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is null

getBinaryStream

public InputStream getBinaryStream(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a stream of uninterpreted bytes.

Specified by:
getBinaryStream in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is null

getBoolean

public boolean getBoolean(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Java boolean.

Specified by:
getBoolean in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is false

getBooleanObject

public Boolean getBooleanObject(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Boolean.

Specified by:
getBooleanObject in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, then null is returned

getByte

public byte getByte(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Java byte.

Specified by:
getByte in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is 0

getByteObject

public Byte getByteObject(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Byte.

Specified by:
getByteObject in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, then null is returned

getBytes

public byte[] getBytes(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Java byte array.

Specified by:
getBytes in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is null

getChar

public char getChar(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Java char.

Specified by:
getChar in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is 0

getCharObject

public Character getCharObject(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Character.

Specified by:
getCharObject in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, then null is returned

getDate

public Date getDate(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a java.sql.Date object.

Specified by:
getDate in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is null

getDouble

public double getDouble(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Java double.

Specified by:
getDouble in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is 0

getDoubleObject

public Double getDoubleObject(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Double.

Specified by:
getDoubleObject in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, then null is returned

getFloat

public float getFloat(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Java float.

Specified by:
getFloat in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is 0

getFloatObject

public Float getFloatObject(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Float.

Specified by:
getFloatObject in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, then null is returned

getInlineObject

public Object getInlineObject(String attributeName,
                              String blobAttributeName)
                       throws SQLException,
                              DatastoreException
Description copied from interface: PersistentRetrieveIfc
Get the value of a blob column as a Java Object.

Specified by:
getInlineObject in interface PersistentRetrieveIfc
Parameters:
attributeName - a class attribute name
blobAttributeName - a blob attribute name
Throws:
SQLException - if a database-access error occurs.
DatastoreException

getInt

public int getInt(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Java int.

Specified by:
getInt in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is 0

getIntObject

public Integer getIntObject(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as an Integer.

Specified by:
getIntObject in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, then null is returned

getLong

public long getLong(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Java long.

Specified by:
getLong in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is 0

getLongObject

public Long getLongObject(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Long.

Specified by:
getLongObject in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, then null is returned

getObject

public Object getObject(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Java object.

Specified by:
getObject in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is null

getSmallObject

public Object getSmallObject(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Java object.

Specified by:
getSmallObject in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is null

getShort

public short getShort(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Java short.

Specified by:
getShort in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is 0

getShortObject

public Short getShortObject(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Short.

Specified by:
getShortObject in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, then null is returned

getString

public String getString(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a Java String.

Specified by:
getString in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is null

getTime

public Time getTime(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a java.sql.Time object.

Specified by:
getTime in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is null

getTimestamp

public Timestamp getTimestamp(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a java.sql.Timestamp object.

Specified by:
getTimestamp in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is null

getUnicodeStream

public InputStream getUnicodeStream(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get the value of a column in the current row as a stream of Unicode characters and then read in chunks.

Specified by:
getUnicodeStream in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
Returns:
the column value; if the value is SQL NULL, the result is null

getLobLocator

public LobLocator getLobLocator(String attribute_name)
Description copied from interface: PersistentRetrieveIfc
Get a LobLocator for the given attribute.

Specified by:
getLobLocator in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name

aNullObject

private boolean aNullObject(int read_index)

readObject

public ObjectMappable readObject(String attribute_name,
                                 ObjectMappable obj,
                                 Class concrete_class,
                                 boolean is_required)
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.

Specified by:
readObject in interface PersistentRetrieveIfc
Parameters:
attribute_name - a class attribute name
obj - the nested object
concrete_class - the class to instantiate if needed

getContainer

public String getContainer()
Description copied from interface: PersistentStoreIfc
Get the current container name. The container name is set by calls to writeObject.

Specified by:
getContainer in interface PersistentStoreIfc
Returns:
the current container name

next

public boolean next()
Description copied from interface: PersistentRetrieveIfc
A ResultSet is initially positioned before its first row; the first call to next makes the first row the current row; the second call makes the second row the current row, etc.

Specified by:
next in interface PersistentRetrieveIfc
Returns:
true if new row is valid, false if there are no more rows

close

public void close()
Description copied from interface: PersistentRetrieveIfc
Immediately release a ResultSet's datastore and connection resources

Specified by:
close in interface PersistentRetrieveIfc

wasNull

public boolean wasNull()
Description copied from interface: PersistentRetrieveIfc
A column may have the value of SQL NULL; wasNull reports whether the last column read had this special value. Note that you must first call getXXX on a column to try to read its value and then call wasNull() to find if the value was the SQL NULL.

Specified by:
wasNull in interface PersistentRetrieveIfc
Returns:
true if last column was a null value

setAsciiStream

public void setAsciiStream(String attribute_name,
                           InputStream aStream,
                           int len)
Description copied from interface: PersistentStoreIfc
Set the value to an ascii stream. This maps to SQL type LONGVARCHAR.

Specified by:
setAsciiStream in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aStream - the parameter value
len - the length of the input stream

setBigDecimal

public void setBigDecimal(String attribute_name,
                          BigDecimal aBigDecimal)
Description copied from interface: PersistentStoreIfc
Set the value to a BigDecimal. This maps to SQL type Number(precision,scale).

Specified by:
setBigDecimal in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aBigDecimal - the parameter value

setBinaryStream

public void setBinaryStream(String attribute_name,
                            InputStream aStream,
                            int len)
Description copied from interface: PersistentStoreIfc
Set the value to a binary stream. This maps to SQL type LONGVARBINARY

Specified by:
setBinaryStream in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aStream - the parameter value
len - the length of the input stream

setBoolean

public void setBoolean(String attribute_name,
                       boolean aBool)
Description copied from interface: PersistentStoreIfc
Set the value to a Java boolean. This maps to SQL type BIT

Specified by:
setBoolean in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aBool - the parameter value

setBooleanObject

public void setBooleanObject(String attribute_name,
                             Boolean aBool)
Description copied from interface: PersistentStoreIfc
Set the value to a Boolean. This maps to SQL type BIT

Specified by:
setBooleanObject in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aBool - the parameter value

setByte

public void setByte(String attribute_name,
                    byte aByte)
Description copied from interface: PersistentStoreIfc
Set the value to a Java byte. This maps to SQL type TINYINT

Specified by:
setByte in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aByte - the parameter value

setByteObject

public void setByteObject(String attribute_name,
                          Byte aByte)
Description copied from interface: PersistentStoreIfc
Set the value to a Byte. This maps to SQL type TINYINT

Specified by:
setByteObject in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aByte - the parameter value

setBytes

public void setBytes(String attribute_name,
                     byte[] bArray)
Description copied from interface: PersistentStoreIfc
Set the value to a Java byte array. This maps to either SQL type LONGVARBINARY or BLOB

Specified by:
setBytes in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
bArray - the parameter value

setChar

public void setChar(String attribute_name,
                    char aChar)
Description copied from interface: PersistentStoreIfc
Set the value to a Java char. This maps to SQL type CHAR(1)

Specified by:
setChar in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aChar - the parameter value

setCharObject

public void setCharObject(String attribute_name,
                          Character aChar)
Description copied from interface: PersistentStoreIfc
Set the value to a Character. This maps to SQL type CHAR(1)

Specified by:
setCharObject in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aChar - the parameter value

setDate

public void setDate(String attribute_name,
                    Date aDate)
Description copied from interface: PersistentStoreIfc
Set the value to a java.util.Date. This maps to SQL type DATE

Specified by:
setDate in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aDate - the parameter value

setDouble

public void setDouble(String attribute_name,
                      double aDbl)
Description copied from interface: PersistentStoreIfc
Set the value to a Java double. This maps to SQL type DOUBLE

Specified by:
setDouble in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aDbl - the parameter value

setDoubleObject

public void setDoubleObject(String attribute_name,
                            Double aDbl)
Description copied from interface: PersistentStoreIfc
Set the value to a Double. This maps to SQL type DOUBLE

Specified by:
setDoubleObject in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aDbl - the parameter value

setFloat

public void setFloat(String attribute_name,
                     float aFloat)
Description copied from interface: PersistentStoreIfc
Set the value to a Java float. This maps to SQL type FLOAT

Specified by:
setFloat in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aFloat - the parameter value

setFloatObject

public void setFloatObject(String attribute_name,
                           Float aFloat)
Description copied from interface: PersistentStoreIfc
Set the value to a Float. This maps to SQL type FLOAT

Specified by:
setFloatObject in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aFloat - the parameter value

setInlineObject

public void setInlineObject(String attribute_name,
                            String blobAttributeName,
                            Serializable anObj)
                     throws SQLException,
                            DatastoreException
Description copied from interface: PersistentStoreIfc
Set the value to a Java Serializable Object.

Specified by:
setInlineObject in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
blobAttributeName - a blob attribute name
anObj - the serializable object
Throws:
SQLException - if a database-access error occurs.
DatastoreException

setInt

public void setInt(String attribute_name,
                   int anInt)
Description copied from interface: PersistentStoreIfc
Set the value to a Java int. This maps to SQL type INTEGER

Specified by:
setInt in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
anInt - the parameter value

setIntObject

public void setIntObject(String attribute_name,
                         Integer anInt)
Description copied from interface: PersistentStoreIfc
Set the value to a Integer. This maps to SQL type INTEGER

Specified by:
setIntObject in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
anInt - the parameter value

setLong

public void setLong(String attribute_name,
                    long aLong)
Description copied from interface: PersistentStoreIfc
Set the value to a Java long. This maps to SQL type BIGINT

Specified by:
setLong in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aLong - the parameter value

setLongObject

public void setLongObject(String attribute_name,
                          Long aLong)
Description copied from interface: PersistentStoreIfc
Set the value to a Long. This maps to SQL type BIGINT

Specified by:
setLongObject in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aLong - the parameter value

setNull

public void setNull(String attribute_name,
                    int sqltype)
Description copied from interface: PersistentStoreIfc
Set the value to a null. This maps to SQL type SQLNULL

Specified by:
setNull in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
sqltype - the SQL type of the attribute

setObject

public void setObject(String attribute_name,
                      Object anObj)
Description copied from interface: PersistentStoreIfc
Set the value to a Java object. This maps to SQL type LONGVARBINARY or BLOB.

Specified by:
setObject in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
anObj - the parameter value

setSmallObject

public void setSmallObject(String attribute_name,
                           Serializable anObj)
Description copied from interface: PersistentStoreIfc
Set the value to a Java object. This maps to SQL type LONGVARBINARY or BLOB.

Specified by:
setSmallObject in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
anObj - the parameter value

setShort

public void setShort(String attribute_name,
                     short aShort)
Description copied from interface: PersistentStoreIfc
Set the value to a Java short. This maps to SQL type SMALLINT

Specified by:
setShort in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aShort - the parameter value

setShortObject

public void setShortObject(String attribute_name,
                           Short aShort)
Description copied from interface: PersistentStoreIfc
Set the value to a Short. This maps to SQL type SMALLINT

Specified by:
setShortObject in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aShort - the parameter value

setString

public void setString(String attribute_name,
                      String aString)
Description copied from interface: PersistentStoreIfc
Set the value to a Java String. This maps to SQL type VARCHAR

Specified by:
setString in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aString - the parameter value

setTime

public void setTime(String attribute_name,
                    Time aTime)
Description copied from interface: PersistentStoreIfc
Set the value to a Java Timee. This maps to SQL type TIME

Specified by:
setTime in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aTime - the parameter value

setTimestamp

public void setTimestamp(String attribute_name,
                         Timestamp aTimestamp)
Description copied from interface: PersistentStoreIfc
Set the value to a Java Timestamp. This maps to SQL type TIMESTAMP

Specified by:
setTimestamp in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aTimestamp - the parameter value

setUnicodeStream

public void setUnicodeStream(String attribute_name,
                             InputStream aStream,
                             int len)
Description copied from interface: PersistentStoreIfc
Set the value to a Java Unicode stream. This maps to SQL type LONGVARCHAR

Specified by:
setUnicodeStream in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aStream - the parameter value

setLobLocator

public void setLobLocator(String attribute_name,
                          LobLocator aLL)
Description copied from interface: PersistentStoreIfc
Set the value to a Lob locator.

Specified by:
setLobLocator in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
aLL - the parameter value

createPseudoObj

private void createPseudoObj(Class desired_class)

writeObject

public void writeObject(String attribute_name,
                        ObjectMappable obj,
                        Class concrete_class,
                        boolean is_required)
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.

Specified by:
writeObject in interface PersistentStoreIfc
Parameters:
attribute_name - a class attribute name
obj - the nested object
concrete_class - the class of the object (in case obj is null)

oidShow

public void oidShow(String info,
                    ObjectMappable obj)

genericCloner

private Object genericCloner(Object object)

dynamicCloner

private Object dynamicCloner(Cloneable anObj)
                      throws Exception
Throws:
Exception

streamCloneObj

private Object streamCloneObj(Object object)
                       throws Exception
Throws:
Exception