|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.federation.ObjectOutputTable
ObjectOutputTable generates a Hashtable of objects where each object is the string representation of a property of an ObjectMappable object. ObjectOutputTable implements the Windchill Persistent Store Interface.
Field Summary | |
private Hashtable |
attributeTable
|
private String |
prefix
|
private static String |
versionID
|
Constructor Summary | |
ObjectOutputTable()
Create an ObjectOutputTable instance. |
|
ObjectOutputTable(String prefix)
Create an ObjectOutputTable instance initialized with a specified attribute name prefix. |
Method Summary | |
void |
close()
Close the table. |
static Hashtable |
createAttributeTable(Persistable obj)
Static convenience method that returns an attribute table given a Persistable object. |
Hashtable |
getAttributeTable()
Return the currently defined attribute table. |
String |
getContainer()
Get the current container name. |
void |
setAsciiStream(String attributeName,
InputStream aStream,
int len)
Set the value to an ascii stream. |
void |
setBigDecimal(String attributeName,
BigDecimal aBigDecimal)
Set the value to a BigDecimal. |
void |
setBinaryStream(String attributeName,
InputStream aStream,
int len)
Set the value to a binary stream. |
void |
setBoolean(String attributeName,
boolean aBool)
Set the value to a Java boolean. |
void |
setBooleanObject(String attributeName,
Boolean aBool)
Set the value to a Java boolean. |
void |
setByte(String attributeName,
byte aByte)
Set the value to a Java byte. |
void |
setByteObject(String attributeName,
Byte aByte)
Set the value to a Java byte. |
void |
setBytes(String attributeName,
byte[] bArray)
Set the value to a Java byte array. |
void |
setChar(String attributeName,
char aChar)
Set the value to a Java char. |
void |
setCharObject(String attributeName,
Character aChar)
Set the value to a Java char. |
void |
setDate(String attributeName,
Date aDate)
Set the value to a java.util.Date. |
void |
setDouble(String attributeName,
double aDbl)
Set the value to a Java double. |
void |
setDoubleObject(String attributeName,
Double aDbl)
Set the value to a Java double. |
void |
setFloat(String attributeName,
float aFloat)
Set the value to a Java float. |
void |
setFloatObject(String attributeName,
Float aFloat)
Set the value to a Java float. |
void |
setInlineObject(String attributeName,
String blobAttributeName,
Serializable anObj)
Set the value to a Java Serializable Object. |
void |
setInt(String attributeName,
int anInt)
Set the value to a Java int. |
void |
setIntObject(String attributeName,
Integer anInt)
Set the value to a Java int. |
void |
setLobLocator(String attributeName,
LobLocator aLL)
Set the value to a Lob locator. |
void |
setLong(String attributeName,
long aLong)
Set the value to a Java long. |
void |
setLongObject(String attributeName,
Long aLong)
Set the value to a Java long. |
void |
setNull(String attributeName,
int sqltype)
Set the value to a null. |
void |
setObject(String attributeName,
Object anObj)
Set the value to a Java object. |
void |
setShort(String attributeName,
short aShort)
Set the value to a Java short. |
void |
setShortObject(String attributeName,
Short aShort)
Set the value to a Java short. |
void |
setSmallObject(String attributeName,
Serializable anObj)
Set the value to a Java object. |
void |
setString(String attributeName,
String aString)
Set the value to a Java String. |
void |
setTime(String attributeName,
Time aTime)
Set the value to a Java Time. |
void |
setTimestamp(String attributeName,
Timestamp aTimestamp)
Set the value to a Java Timestamp. |
void |
setUnicodeStream(String attributeName,
InputStream aStream,
int len)
Set the value to a Java Unicode stream. |
void |
writeObject(String attribute_name,
ObjectMappable obj,
Class concrete_class,
boolean isRequired)
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 |
private static final String versionID
private Hashtable attributeTable
private String prefix
Constructor Detail |
public ObjectOutputTable()
public ObjectOutputTable(String prefix)
prefix
- attribute name prefixMethod Detail |
public static Hashtable createAttributeTable(Persistable obj) throws FederationServicesException
obj
- object from which to create an attribute table
FederationServicesException
public Hashtable getAttributeTable()
public void close()
public void setAsciiStream(String attributeName, InputStream aStream, int len) throws SQLException
setAsciiStream
in interface PersistentStoreIfc
attributeName
- a class attribute nameaStream
- the parameter valuelen
- the length of the input stream
SQLException
- if a database-access error occurs.public void setBigDecimal(String attributeName, BigDecimal aBigDecimal) throws SQLException
setBigDecimal
in interface PersistentStoreIfc
attributeName
- a class attribute nameaBigDecimal
- the parameter value
SQLException
- if a database-access error occurs.public void setBinaryStream(String attributeName, InputStream aStream, int len) throws SQLException
setBinaryStream
in interface PersistentStoreIfc
attributeName
- a class attribute nameaStream
- the parameter valuelen
- the length of the input stream
SQLException
- if a database-access error occurs.public void setBoolean(String attributeName, boolean aBool) throws SQLException
setBoolean
in interface PersistentStoreIfc
attributeName
- a class attribute nameaBool
- the parameter value
SQLException
- if a database-access error occurs.public void setBooleanObject(String attributeName, Boolean aBool) throws SQLException
setBooleanObject
in interface PersistentStoreIfc
attributeName
- a class attribute nameaBool
- the parameter value
SQLException
- if a database-access error occurs.public void setByte(String attributeName, byte aByte) throws SQLException
setByte
in interface PersistentStoreIfc
attributeName
- a class attribute nameaByte
- the parameter value
SQLException
- if a database-access error occurs.public void setByteObject(String attributeName, Byte aByte) throws SQLException
setByteObject
in interface PersistentStoreIfc
attributeName
- a class attribute nameaByte
- the parameter value
SQLException
- if a database-access error occurs.public void setBytes(String attributeName, byte[] bArray) throws SQLException
setBytes
in interface PersistentStoreIfc
attributeName
- a class attribute namebArray
- the parameter value
SQLException
- if a database-access error occurs.public void setChar(String attributeName, char aChar) throws SQLException
setChar
in interface PersistentStoreIfc
attributeName
- a class attribute nameaChar
- the parameter value
SQLException
- if a database-access error occurs.public void setCharObject(String attributeName, Character aChar) throws SQLException
setCharObject
in interface PersistentStoreIfc
attributeName
- a class attribute nameaChar
- the parameter value
SQLException
- if a database-access error occurs.public void setDate(String attributeName, Date aDate) throws SQLException
setDate
in interface PersistentStoreIfc
attributeName
- a class attribute nameaDate
- the parameter value
SQLException
- if a database-access error occurs.public void setDouble(String attributeName, double aDbl) throws SQLException
setDouble
in interface PersistentStoreIfc
attributeName
- a class attribute nameaDbl
- the parameter value
SQLException
- if a database-access error occurs.public void setDoubleObject(String attributeName, Double aDbl) throws SQLException
setDoubleObject
in interface PersistentStoreIfc
attributeName
- a class attribute nameaDbl
- the parameter value
SQLException
- if a database-access error occurs.public void setFloat(String attributeName, float aFloat) throws SQLException
setFloat
in interface PersistentStoreIfc
attributeName
- a class attribute nameaFloat
- the parameter value
SQLException
- if a database-access error occurs.public void setFloatObject(String attributeName, Float aFloat) throws SQLException
setFloatObject
in interface PersistentStoreIfc
attributeName
- a class attribute nameaFloat
- the parameter value
SQLException
- if a database-access error occurs.public void setInlineObject(String attributeName, String blobAttributeName, Serializable anObj) throws SQLException, DatastoreException
PersistentStoreIfc
setInlineObject
in interface PersistentStoreIfc
attributeName
- a class attribute nameblobAttributeName
- a blob attribute nameanObj
- the serializable object
SQLException
- if a database-access error occurs.
DatastoreException
public void setInt(String attributeName, int anInt) throws SQLException
setInt
in interface PersistentStoreIfc
attributeName
- a class attribute nameanInt
- the parameter value
SQLException
- if a database-access error occurs.public void setIntObject(String attributeName, Integer anInt) throws SQLException
setIntObject
in interface PersistentStoreIfc
attributeName
- a class attribute nameanInt
- the parameter value
SQLException
- if a database-access error occurs.public void setLong(String attributeName, long aLong) throws SQLException
setLong
in interface PersistentStoreIfc
attributeName
- a class attribute nameaLong
- the parameter value
SQLException
- if a database-access error occurs.public void setLongObject(String attributeName, Long aLong) throws SQLException
setLongObject
in interface PersistentStoreIfc
attributeName
- a class attribute nameaLong
- the parameter value
SQLException
- if a database-access error occurs.public void setNull(String attributeName, int sqltype) throws SQLException
setNull
in interface PersistentStoreIfc
attributeName
- a class attribute namesqltype
- the SQL type of the attribute
SQLException
- if a database-access error occurs.public void setObject(String attributeName, Object anObj) throws SQLException
setObject
in interface PersistentStoreIfc
attributeName
- a class attribute nameanObj
- the parameter value
SQLException
- if a database-access error occurs.public void setSmallObject(String attributeName, Serializable anObj) throws SQLException, DatastoreException
setSmallObject
in interface PersistentStoreIfc
attributeName
- a class attribute nameanObj
- the parameter value
SQLException
- if a database-access error occurs.
DatastoreException
public void setShort(String attributeName, short aShort) throws SQLException
setShort
in interface PersistentStoreIfc
attributeName
- a class attribute nameaShort
- the parameter value
SQLException
- if a database-access error occurs.public void setShortObject(String attributeName, Short aShort) throws SQLException
setShortObject
in interface PersistentStoreIfc
attributeName
- a class attribute nameaShort
- the parameter value
SQLException
- if a database-access error occurs.public void setString(String attributeName, String aString) throws SQLException
setString
in interface PersistentStoreIfc
attributeName
- a class attribute nameaString
- the parameter value
SQLException
- if a database-access error occurs.public void setTime(String attributeName, Time aTime) throws SQLException
setTime
in interface PersistentStoreIfc
attributeName
- a class attribute nameaTime
- the parameter value
SQLException
- if a database-access error occurs.public void setTimestamp(String attributeName, Timestamp aTimestamp) throws SQLException
setTimestamp
in interface PersistentStoreIfc
attributeName
- a class attribute nameaTimestamp
- the parameter value
SQLException
- if a database-access error occurs.public void setUnicodeStream(String attributeName, InputStream aStream, int len) throws SQLException
setUnicodeStream
in interface PersistentStoreIfc
attributeName
- a class attribute nameaStream
- the parameter value
SQLException
- if a database-access error occurs.public void setLobLocator(String attributeName, LobLocator aLL) throws SQLException
setLobLocator
in interface PersistentStoreIfc
attributeName
- a class attribute nameaLL
- the parameter value
SQLException
- if a database-access error occurs.public void writeObject(String attribute_name, ObjectMappable obj, Class concrete_class, boolean isRequired) throws SQLException, DatastoreException
writeExternal
method.
writeObject
in interface PersistentStoreIfc
attribute_name
- a class attribute nameobj
- the nested objectconcrete_class
- the class of the object (in case obj is null)
SQLException
- if a database-access error occurs.
DatastoreException
public String getContainer()
writeObject
.
getContainer
in interface PersistentStoreIfc
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |