|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.AbstractPersistentStore
Field Summary | |
static String |
INLINE_BLOB_OVERFLOW
|
static int |
MAX_SQL_STRING_SIZE
|
Fields inherited from interface wt.pds.PersistentStoreIfc |
versionID |
Constructor Summary | |
AbstractPersistentStore()
|
Method Summary | |
abstract String |
getContainer()
Get the current container name. |
WTConnection |
getUserConnection()
|
private static MethodContext |
getUserContext()
|
abstract int |
indexOf(String attrName)
|
abstract boolean |
isSkip()
|
abstract void |
setAsciiStream(String attributeName,
InputStream aStream,
int len)
Set the value to an ascii stream. |
abstract void |
setBigDecimal(String attributeName,
BigDecimal aBigDecimal)
Set the value to a BigDecimal. |
abstract void |
setBinaryStream(String attributeName,
InputStream aStream,
int len)
Set the value to a binary stream. |
abstract void |
setBoolean(String attributeName,
boolean aBool)
Set the value to a Java boolean. |
abstract void |
setBooleanObject(String attributeName,
Boolean aBool)
Set the value to a Boolean. |
abstract void |
setByte(String attributeName,
byte aByte)
Set the value to a Java byte. |
abstract void |
setByteObject(String attributeName,
Byte aByte)
Set the value to a Byte. |
abstract void |
setBytes(String attributeName,
byte[] bArray)
Set the value to a Java byte array. |
abstract void |
setChar(String attributeName,
char aChar)
Set the value to a Java char. |
abstract void |
setCharObject(String attributeName,
Character aChar)
Set the value to a Character. |
abstract void |
setDate(String attributeName,
Date aDate)
Set the value to a java.util.Date. |
abstract void |
setDouble(String attributeName,
double aDbl)
Set the value to a Java double. |
abstract void |
setDoubleObject(String attributeName,
Double aDbl)
Set the value to a Double. |
abstract void |
setFloat(String attributeName,
float aFloat)
Set the value to a Java float. |
abstract void |
setFloatObject(String attributeName,
Float aFloat)
Set the value to a Float. |
void |
setInlineObject(String attributeName,
String blobAttributeName,
Serializable anObj)
Set the value to a Java Serializable Object. |
abstract void |
setInt(String attributeName,
int anInt)
Set the value to a Java int. |
abstract void |
setIntObject(String attributeName,
Integer anInt)
Set the value to a Integer. |
abstract void |
setLobLocator(String attributeName,
LobLocator aLL)
Set the value to a Lob locator. |
abstract void |
setLong(String attributeName,
long aLong)
Set the value to a Java long. |
abstract void |
setLongObject(String attributeName,
Long aLong)
Set the value to a Long. |
abstract void |
setNull(int idx,
int sqlType)
|
abstract void |
setNull(String attributeName,
int sqltype)
Set the value to a null. |
abstract void |
setObject(String attributeName,
Object anObj)
Set the value to a Java object. |
abstract void |
setShort(String attributeName,
short aShort)
Set the value to a Java short. |
abstract void |
setShortObject(String attributeName,
Short aShort)
Set the value to a Short. |
abstract void |
setSmallObject(String attributeName,
Serializable anObj)
Set the value to a Java object. |
abstract void |
setString(int idx,
String a_string)
|
abstract void |
setString(String attributeName,
String aString)
Set the value to a Java String. |
abstract void |
setTime(String attributeName,
Time aTime)
Set the value to a Java Timee. |
abstract void |
setTimestamp(String attributeName,
Timestamp aTimestamp)
Set the value to a Java Timestamp. |
abstract void |
setUnicodeStream(String attributeName,
InputStream aStream,
int len)
Set the value to a Java Unicode stream. |
abstract 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 |
public static final String INLINE_BLOB_OVERFLOW
public static final int MAX_SQL_STRING_SIZE
Constructor Detail |
public AbstractPersistentStore()
Method Detail |
public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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
setInlineObject
in interface PersistentStoreIfc
attributeName
- a class attribute nameblobAttributeName
- a blob attribute nameanObj
- the serializable object
SQLException
- if a database-access error occurs.
PersistenceException
- if a database-access error occurs.
DatastoreException
public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract String getContainer()
writeObject
.
getContainer
in interface PersistentStoreIfc
public abstract int indexOf(String attrName)
public abstract boolean isSkip()
public abstract void setNull(int idx, int sqlType) throws SQLException
SQLException
public abstract void setString(int idx, String a_string) throws SQLException
SQLException
public WTConnection getUserConnection() throws DatastoreException
DatastoreException
private static MethodContext getUserContext()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |