|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.AbstractPersistentStore
wt.pds.WTPreparedStatement
WTPreparedStatement
Field Summary | |
protected Map |
attributeMap
|
private static Hashtable |
cache
|
private ClassInfo |
classInfo
|
private static String |
CLASSNAME
|
private String |
container
|
static boolean |
DEBUG
|
protected int |
idx
|
protected Map |
lobMap
|
protected ObjectIdentifier |
lobOid
|
private static DebugWriter |
LOG
|
private static int |
MAX_SQL_STRING_SIZE
|
private String[] |
namesByOffset
|
private static Object |
NULL_LOB
|
private int |
offset
|
private static String |
RESOURCE
|
private static String |
SEPARATOR
|
private int[] |
sizesByOffset
|
protected boolean |
skip
|
private int[] |
sqlTypes
|
protected PreparedStatement |
stmt
|
private String |
topContainer
|
protected ObjectMappable |
topObject
|
Fields inherited from class wt.pds.AbstractPersistentStore |
INLINE_BLOB_OVERFLOW |
Fields inherited from interface wt.util.WTAttributeNameIfc |
CREATE_STAMP_NAME, ID_NAME, LATEST_ITERATION, LINK_REFA, LINK_REFB, MODIFY_STAMP_NAME, OBJECT_IDENTIFIER, OID_CLASSNAME, PERSIST_INFO, REF_CLASSNAME, REF_OBJECT_ID, REF_SUFFIX, ROLE_AOBJECT_ROLE, ROLE_BOBJECT_ROLE, ROLEA_CLASSNAME, ROLEA_OBJECT_ID, ROLEA_VERSION_ID, ROLEB_CLASSNAME, ROLEB_OBJECT_ID, ROLEB_VERSION_ID, UPDATE_COUNT_NAME, UPDATE_STAMP_NAME |
Fields inherited from interface wt.pds.PersistentStoreIfc |
versionID |
Constructor Summary | |
WTPreparedStatement()
Constructors |
|
WTPreparedStatement(PreparedStatement aStmt,
Map aMap)
|
Method Summary | |
void |
clearParameters()
Utilities |
protected int |
findColumn(String columnName)
|
Map |
getAttributeMap()
|
(package private) int |
getBindParameterIndex()
|
List |
getBindParameters()
|
String |
getContainer()
Get the current container name. |
protected String |
getDescriptorName(ClassInfo aCI,
String fullName)
|
protected String |
getFullAttrName(String attrName)
|
protected Map |
getLobMap()
|
PreparedStatement |
getStatement()
|
int |
indexOf(String attribute)
Private methods |
boolean |
isSkip()
|
void |
postProcessLobs(WTConnection a_connection,
Map a_lobAttributeMap)
|
void |
setAsciiStream(String attrName,
InputStream aStream,
int len)
parameter setters |
void |
setAttributeMap(Map aMap)
|
void |
setBigDecimal(String attrName,
BigDecimal aBigDecimal)
Set the value to a BigDecimal. |
void |
setBinaryStream(String attrName,
InputStream aStream,
int len)
Set the value to a binary stream. |
void |
setBoolean(String attrName,
boolean aBool)
Set the value to a Java boolean. |
void |
setBooleanObject(String attrName,
Boolean aBool)
Set the value to a Boolean. |
void |
setByte(String attrName,
byte aByte)
Set the value to a Java byte. |
void |
setByteObject(String attrName,
Byte aByte)
Set the value to a Byte. |
abstract void |
setBytes(String attrName,
byte[] bArray)
Set the value to a Java byte array. |
void |
setChar(String attrName,
char aChar)
Set the value to a Java char. |
void |
setCharObject(String attrName,
Character aChar)
Set the value to a Character. |
void |
setDate(String attrName,
Date aDate)
Set the value to a java.util.Date. |
void |
setDouble(String attrName,
double aDbl)
Set the value to a Java double. |
void |
setDoubleObject(String attrName,
Double aDouble)
Set the value to a Double. |
void |
setFloat(String attrName,
float aFloat)
Set the value to a Java float. |
void |
setFloatObject(String attrName,
Float aFloat)
Set the value to a Float. |
void |
setInt(String attrName,
int anInt)
Set the value to a Java int. |
void |
setIntObject(String attrName,
Integer anInt)
Set the value to a Integer. |
abstract void |
setLobLocator(String attrName,
LobLocator aLobLocator)
Set the value to a Lob locator. |
void |
setLoggingEnabled(boolean a_enabled)
|
void |
setLong(String attrName,
long aLong)
Set the value to a Java long. |
void |
setLongObject(String attrName,
Long aLong)
Set the value to a Long. |
void |
setNull(int idx,
int sqlType)
|
void |
setNull(String attrName,
int sqlType)
Set the value to a null. |
abstract void |
setObject(String attrName,
Object anObj)
Set the value to a Java object. |
void |
setShort(String attrName,
short aShort)
Set the value to a Java short. |
void |
setShortObject(String attrName,
Short aShort)
Set the value to a Short. |
void |
setSmallObject(String attrName,
Serializable anObj)
Set the value to a Java object. |
void |
setStatement(PreparedStatement aStmt)
|
void |
setString(int idx,
String a_string)
|
void |
setString(String attrName,
String aString)
Set the value to a Java String. |
void |
setTime(String attrName,
Time aTime)
Set the value to a Java Timee. |
void |
setTimestamp(String attrName,
Timestamp aTS)
Set the value to a Java Timestamp. |
void |
setUnicodeStream(String attrName,
InputStream aStream,
int len)
Set the value to a Java Unicode stream. |
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 wt.pds.AbstractPersistentStore |
getUserConnection, setInlineObject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final String SEPARATOR
private static final Object NULL_LOB
protected PreparedStatement stmt
protected Map attributeMap
protected Map lobMap
protected ObjectIdentifier lobOid
private static Hashtable cache
private ClassInfo classInfo
private String topContainer
private String container
private String[] namesByOffset
private int[] sizesByOffset
private int[] sqlTypes
private int offset
protected boolean skip
protected ObjectMappable topObject
protected int idx
private static final String RESOURCE
private static final int MAX_SQL_STRING_SIZE
private static final String CLASSNAME
public static final boolean DEBUG
private static final DebugWriter LOG
Constructor Detail |
public WTPreparedStatement()
public WTPreparedStatement(PreparedStatement aStmt, Map aMap)
Method Detail |
public PreparedStatement getStatement()
public Map getAttributeMap()
public List getBindParameters()
public void setStatement(PreparedStatement aStmt)
public void setAttributeMap(Map aMap)
public void setLoggingEnabled(boolean a_enabled)
protected Map getLobMap()
int getBindParameterIndex()
public void setAsciiStream(String attrName, InputStream aStream, int len) throws SQLException
setAsciiStream
in interface PersistentStoreIfc
setAsciiStream
in class AbstractPersistentStore
attrName
- a class attribute nameaStream
- the parameter valuelen
- the length of the input stream
SQLException
- if a database-access error occurs.public void setBigDecimal(String attrName, BigDecimal aBigDecimal) throws SQLException
AbstractPersistentStore
setBigDecimal
in interface PersistentStoreIfc
setBigDecimal
in class AbstractPersistentStore
attrName
- a class attribute nameaBigDecimal
- the parameter value
SQLException
- if a database-access error occurs.public void setBinaryStream(String attrName, InputStream aStream, int len) throws SQLException
AbstractPersistentStore
setBinaryStream
in interface PersistentStoreIfc
setBinaryStream
in class AbstractPersistentStore
attrName
- a class attribute nameaStream
- the parameter valuelen
- the length of the input stream
SQLException
- if a database-access error occurs.public void setBoolean(String attrName, boolean aBool) throws SQLException
AbstractPersistentStore
setBoolean
in interface PersistentStoreIfc
setBoolean
in class AbstractPersistentStore
attrName
- a class attribute nameaBool
- the parameter value
SQLException
- if a database-access error occurs.public void setBooleanObject(String attrName, Boolean aBool) throws SQLException
AbstractPersistentStore
setBooleanObject
in interface PersistentStoreIfc
setBooleanObject
in class AbstractPersistentStore
attrName
- a class attribute nameaBool
- the parameter value
SQLException
- if a database-access error occurs.public void setByte(String attrName, byte aByte) throws SQLException
AbstractPersistentStore
setByte
in interface PersistentStoreIfc
setByte
in class AbstractPersistentStore
attrName
- a class attribute nameaByte
- the parameter value
SQLException
- if a database-access error occurs.public void setByteObject(String attrName, Byte aByte) throws SQLException
AbstractPersistentStore
setByteObject
in interface PersistentStoreIfc
setByteObject
in class AbstractPersistentStore
attrName
- a class attribute nameaByte
- the parameter value
SQLException
- if a database-access error occurs.public abstract void setBytes(String attrName, byte[] bArray) throws SQLException
AbstractPersistentStore
setBytes
in interface PersistentStoreIfc
setBytes
in class AbstractPersistentStore
attrName
- a class attribute namebArray
- the parameter value
SQLException
- if a database-access error occurs.public void setChar(String attrName, char aChar) throws SQLException
AbstractPersistentStore
setChar
in interface PersistentStoreIfc
setChar
in class AbstractPersistentStore
attrName
- a class attribute nameaChar
- the parameter value
SQLException
- if a database-access error occurs.public void setCharObject(String attrName, Character aChar) throws SQLException
AbstractPersistentStore
setCharObject
in interface PersistentStoreIfc
setCharObject
in class AbstractPersistentStore
attrName
- a class attribute nameaChar
- the parameter value
SQLException
- if a database-access error occurs.public void setDate(String attrName, Date aDate) throws SQLException
AbstractPersistentStore
setDate
in interface PersistentStoreIfc
setDate
in class AbstractPersistentStore
attrName
- a class attribute nameaDate
- the parameter value
SQLException
- if a database-access error occurs.public void setDouble(String attrName, double aDbl) throws SQLException
AbstractPersistentStore
setDouble
in interface PersistentStoreIfc
setDouble
in class AbstractPersistentStore
attrName
- a class attribute nameaDbl
- the parameter value
SQLException
- if a database-access error occurs.public void setDoubleObject(String attrName, Double aDouble) throws SQLException
AbstractPersistentStore
setDoubleObject
in interface PersistentStoreIfc
setDoubleObject
in class AbstractPersistentStore
attrName
- a class attribute nameaDouble
- the parameter value
SQLException
- if a database-access error occurs.public void setFloat(String attrName, float aFloat) throws SQLException
AbstractPersistentStore
setFloat
in interface PersistentStoreIfc
setFloat
in class AbstractPersistentStore
attrName
- a class attribute nameaFloat
- the parameter value
SQLException
- if a database-access error occurs.public void setFloatObject(String attrName, Float aFloat) throws SQLException
AbstractPersistentStore
setFloatObject
in interface PersistentStoreIfc
setFloatObject
in class AbstractPersistentStore
attrName
- a class attribute nameaFloat
- the parameter value
SQLException
- if a database-access error occurs.public void setInt(String attrName, int anInt) throws SQLException
AbstractPersistentStore
setInt
in interface PersistentStoreIfc
setInt
in class AbstractPersistentStore
attrName
- a class attribute nameanInt
- the parameter value
SQLException
- if a database-access error occurs.public void setIntObject(String attrName, Integer anInt) throws SQLException
AbstractPersistentStore
setIntObject
in interface PersistentStoreIfc
setIntObject
in class AbstractPersistentStore
attrName
- a class attribute nameanInt
- the parameter value
SQLException
- if a database-access error occurs.public void setLong(String attrName, long aLong) throws SQLException
AbstractPersistentStore
setLong
in interface PersistentStoreIfc
setLong
in class AbstractPersistentStore
attrName
- a class attribute nameaLong
- the parameter value
SQLException
- if a database-access error occurs.public void setLongObject(String attrName, Long aLong) throws SQLException
AbstractPersistentStore
setLongObject
in interface PersistentStoreIfc
setLongObject
in class AbstractPersistentStore
attrName
- a class attribute nameaLong
- the parameter value
SQLException
- if a database-access error occurs.public void setNull(String attrName, int sqlType) throws SQLException
AbstractPersistentStore
setNull
in interface PersistentStoreIfc
setNull
in class AbstractPersistentStore
attrName
- a class attribute namesqlType
- the SQL type of the attribute
SQLException
- if a database-access error occurs.public void setNull(int idx, int sqlType) throws SQLException
setNull
in class AbstractPersistentStore
SQLException
public abstract void setObject(String attrName, Object anObj) throws SQLException
AbstractPersistentStore
setObject
in interface PersistentStoreIfc
setObject
in class AbstractPersistentStore
attrName
- a class attribute nameanObj
- the parameter value
SQLException
- if a database-access error occurs.public void setSmallObject(String attrName, Serializable anObj) throws SQLException, DatastoreException
AbstractPersistentStore
setSmallObject
in interface PersistentStoreIfc
setSmallObject
in class AbstractPersistentStore
attrName
- a class attribute nameanObj
- the parameter value
SQLException
- if a database-access error occurs.
DatastoreException
public void setShort(String attrName, short aShort) throws SQLException
AbstractPersistentStore
setShort
in interface PersistentStoreIfc
setShort
in class AbstractPersistentStore
attrName
- a class attribute nameaShort
- the parameter value
SQLException
- if a database-access error occurs.public void setShortObject(String attrName, Short aShort) throws SQLException
AbstractPersistentStore
setShortObject
in interface PersistentStoreIfc
setShortObject
in class AbstractPersistentStore
attrName
- a class attribute nameaShort
- the parameter value
SQLException
- if a database-access error occurs.public void setString(String attrName, String aString) throws SQLException
AbstractPersistentStore
setString
in interface PersistentStoreIfc
setString
in class AbstractPersistentStore
attrName
- a class attribute nameaString
- the parameter value
SQLException
- if a database-access error occurs.public void setTime(String attrName, Time aTime) throws SQLException
AbstractPersistentStore
setTime
in interface PersistentStoreIfc
setTime
in class AbstractPersistentStore
attrName
- a class attribute nameaTime
- the parameter value
SQLException
- if a database-access error occurs.public void setTimestamp(String attrName, Timestamp aTS) throws SQLException
AbstractPersistentStore
setTimestamp
in interface PersistentStoreIfc
setTimestamp
in class AbstractPersistentStore
attrName
- a class attribute nameaTS
- the parameter value
SQLException
- if a database-access error occurs.public void setUnicodeStream(String attrName, InputStream aStream, int len) throws SQLException
AbstractPersistentStore
setUnicodeStream
in interface PersistentStoreIfc
setUnicodeStream
in class AbstractPersistentStore
attrName
- a class attribute nameaStream
- the parameter value
SQLException
- if a database-access error occurs.public abstract void setLobLocator(String attrName, LobLocator aLobLocator) throws SQLException
AbstractPersistentStore
setLobLocator
in interface PersistentStoreIfc
setLobLocator
in class AbstractPersistentStore
attrName
- a class attribute nameaLobLocator
- the parameter value
SQLException
- if a database-access error occurs.public void postProcessLobs(WTConnection a_connection, Map a_lobAttributeMap) throws WTException
WTException
public void writeObject(String attribute_name, ObjectMappable obj, Class concrete_class, boolean is_required) throws SQLException, DatastoreException
AbstractPersistentStore
writeExternal
method.
writeObject
in interface PersistentStoreIfc
writeObject
in class AbstractPersistentStore
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()
AbstractPersistentStore
writeObject
.
getContainer
in interface PersistentStoreIfc
getContainer
in class AbstractPersistentStore
public void clearParameters() throws SQLException
SQLException
public int indexOf(String attribute)
indexOf
in class AbstractPersistentStore
protected int findColumn(String columnName)
protected String getFullAttrName(String attrName)
protected String getDescriptorName(ClassInfo aCI, String fullName)
public boolean isSkip()
isSkip
in class AbstractPersistentStore
public void setString(int idx, String a_string) throws SQLException
setString
in class AbstractPersistentStore
SQLException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |