|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.pds.AbstractPersistentRetrieve
wt.pds.WTResultSet
WTResultSet
Field Summary | |
(package private) ResultSet |
aResultSet
|
(package private) Map |
attributeMap
|
private boolean |
autoNavigate
|
private static Hashtable |
autoNavigateCache
|
(package private) int |
base
|
private boolean |
blobRewriteEnabled
|
private boolean |
buildMaps
|
private static Hashtable |
cache
|
private static Hashtable |
constrainedClassMap
|
private String |
container
|
private Class |
currentContainerClass
|
private static RoleDescriptor[] |
EMPTY_AUTO_NAVIGATE_ROLES
|
private static Object |
EMPTY_MAP_VALUE
|
private String[] |
namesByOffset
|
(package private) ObjectTable |
objectTable
|
private int |
offset
|
private HashMap |
offsetByName
|
private int[] |
sizesByOffset
|
private static String |
SURROGATE_CLASS_NAME
|
private String |
topContainerOidName
|
private ObjectMappable |
topObject
|
Fields inherited from class wt.pds.AbstractPersistentRetrieve |
LOBS_DISABLED_KEY |
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.PersistentRetrieveIfc |
versionID |
Constructor Summary | |
WTResultSet(ResultSet aRS,
Map aMap)
|
|
WTResultSet(ResultSet aRS,
Map aMap,
ObjectTable aObjectTable,
int base)
|
Method Summary | |
private String |
buildFullAttrName(String attrName)
|
void |
clearWarnings()
|
void |
close()
Immediately release a ResultSet's datastore and connection resources |
private ObjectMappable |
createObject(String a_attributeName,
Class a_staticClass)
|
int |
findColumn(String columnName)
|
InputStream |
getAsciiStream(String attrName)
Getters |
Map |
getAttributeMap()
|
boolean |
getAutoNavigate()
|
BigDecimal |
getBigDecimal(String attrName)
Get the value of a column in the current row as a BigDecimal |
InputStream |
getBinaryStream(String attrName)
Get the value of a column in the current row as a stream of uninterpreted bytes. |
boolean |
getBlobRewriteEnabled()
|
boolean |
getBoolean(String attrName)
Get the value of a column in the current row as a Java boolean. |
Boolean |
getBooleanObject(String attrName)
Get the value of a column in the current row as a Boolean. |
boolean |
getBuildMaps()
|
byte |
getByte(String attrName)
Get the value of a column in the current row as a Java byte. |
Byte |
getByteObject(String attrName)
Get the value of a column in the current row as a Byte. |
byte[] |
getBytes(String attrName)
Get the value of a column in the current row as a Java byte array. |
char |
getChar(String attrName)
Get the value of a column in the current row as a Java char. |
Character |
getCharObject(String attrName)
Get the value of a column in the current row as a Character. |
String |
getContainer()
Get the current container name. |
String |
getCursorName()
|
Date |
getDate(String attrName)
Get the value of a column in the current row as a java.sql.Date object. |
private String |
getDescriptorName(ClassInfo aCI,
String fullName)
|
double |
getDouble(String attrName)
Get the value of a column in the current row as a Java double. |
Double |
getDoubleObject(String attrName)
Get the value of a column in the current row as a Double. |
float |
getFloat(String attrName)
Get the value of a column in the current row as a Java float. |
Float |
getFloatObject(String attrName)
Get the value of a column in the current row as a Float. |
String |
getFullAttrName(String attrName)
|
int |
getInt(String attrName)
Get the value of a column in the current row as a Java int. |
Integer |
getIntObject(String attrName)
Get the value of a column in the current row as an Integer. |
private byte[] |
getLobAsByteArray(WTConnection connection,
Object b)
|
private Object |
getLobAsObject(WTConnection connection,
Object b)
|
LobLocator |
getLobLocator(String attrName)
Get a LobLocator for the given attribute. |
long |
getLong(String attrName)
Get the value of a column in the current row as a Java long. |
Long |
getLongObject(String attrName)
Get the value of a column in the current row as a Long. |
ResultSetMetaData |
getMetaData()
|
Object |
getObject(String attrName)
Get the value of a column in the current row as a Java object. |
short |
getShort(String attrName)
Get the value of a column in the current row as a Java short. |
Short |
getShortObject(String attrName)
Get the value of a column in the current row as a Short. |
Object |
getSmallObject(String attrName)
Get the value of a column in the current row as a Java object. |
String |
getString(String attrName)
Get the value of a column in the current row as a Java String. |
Time |
getTime(String attrName)
Get the value of a column in the current row as a java.sql.Time object. |
Timestamp |
getTimestamp(String attrName)
Get the value of a column in the current row as a java.sql.Timestamp object. |
ObjectMappable |
getTopObject()
|
InputStream |
getUnicodeStream(String attrName)
Get the value of a column in the current row as a stream of Unicode characters and then read in chunks. |
SQLWarning |
getWarnings()
Utilities |
private int |
indexOf(String attribute)
|
boolean |
next()
Positioning , Testing |
ObjectMappable |
readObject(String attribute_name,
ObjectMappable obj,
Class concrete_class,
boolean is_required)
Get the values corresponding to a nested ObjectMappable Object. |
void |
setAutoNavigate(boolean autoNavigate)
|
static boolean |
setLobsDisabled(boolean disabled)
|
private void |
setOffset(String attrName)
Private methods |
boolean |
wasNull()
A column may have the value of SQL NULL; wasNull reports whether the last column read had this special value. |
Methods inherited from class wt.pds.AbstractPersistentRetrieve |
getInlineObject, getLobsDisabled, getUserConnection, rewriteBlob |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static Hashtable constrainedClassMap
private static final Object EMPTY_MAP_VALUE
ResultSet aResultSet
Map attributeMap
ObjectTable objectTable
int base
private static Hashtable cache
private static Hashtable autoNavigateCache
private static final RoleDescriptor[] EMPTY_AUTO_NAVIGATE_ROLES
private String container
private String[] namesByOffset
private int[] sizesByOffset
private HashMap offsetByName
private int offset
private ObjectMappable topObject
private boolean autoNavigate
private boolean buildMaps
private Class currentContainerClass
private String topContainerOidName
private final boolean blobRewriteEnabled
private static final String SURROGATE_CLASS_NAME
Constructor Detail |
public WTResultSet(ResultSet aRS, Map aMap)
public WTResultSet(ResultSet aRS, Map aMap, ObjectTable aObjectTable, int base)
Method Detail |
public InputStream getAsciiStream(String attrName) throws SQLException
getAsciiStream
in interface PersistentRetrieveIfc
getAsciiStream
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public InputStream getBinaryStream(String attrName) throws SQLException
AbstractPersistentRetrieve
getBinaryStream
in interface PersistentRetrieveIfc
getBinaryStream
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public boolean getBoolean(String attrName) throws SQLException
AbstractPersistentRetrieve
getBoolean
in interface PersistentRetrieveIfc
getBoolean
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public byte getByte(String attrName) throws SQLException
AbstractPersistentRetrieve
getByte
in interface PersistentRetrieveIfc
getByte
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public byte[] getBytes(String attrName) throws SQLException, DatastoreException
AbstractPersistentRetrieve
getBytes
in interface PersistentRetrieveIfc
getBytes
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.
DatastoreException
public char getChar(String attrName) throws SQLException
AbstractPersistentRetrieve
getChar
in interface PersistentRetrieveIfc
getChar
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public BigDecimal getBigDecimal(String attrName) throws SQLException
AbstractPersistentRetrieve
getBigDecimal
in interface PersistentRetrieveIfc
getBigDecimal
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public Date getDate(String attrName) throws SQLException
AbstractPersistentRetrieve
getDate
in interface PersistentRetrieveIfc
getDate
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public double getDouble(String attrName) throws SQLException
AbstractPersistentRetrieve
getDouble
in interface PersistentRetrieveIfc
getDouble
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public float getFloat(String attrName) throws SQLException
AbstractPersistentRetrieve
getFloat
in interface PersistentRetrieveIfc
getFloat
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public int getInt(String attrName) throws SQLException
AbstractPersistentRetrieve
getInt
in interface PersistentRetrieveIfc
getInt
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public long getLong(String attrName) throws SQLException
AbstractPersistentRetrieve
getLong
in interface PersistentRetrieveIfc
getLong
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public Object getObject(String attrName) throws SQLException, DatastoreException
AbstractPersistentRetrieve
getObject
in interface PersistentRetrieveIfc
getObject
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.
DatastoreException
public Object getSmallObject(String attrName) throws SQLException, DatastoreException
AbstractPersistentRetrieve
getSmallObject
in interface PersistentRetrieveIfc
getSmallObject
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.
DatastoreException
public short getShort(String attrName) throws SQLException
AbstractPersistentRetrieve
getShort
in interface PersistentRetrieveIfc
getShort
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public String getString(String attrName) throws SQLException
AbstractPersistentRetrieve
getString
in interface PersistentRetrieveIfc
getString
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public Time getTime(String attrName) throws SQLException
AbstractPersistentRetrieve
getTime
in interface PersistentRetrieveIfc
getTime
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public Timestamp getTimestamp(String attrName) throws SQLException
AbstractPersistentRetrieve
getTimestamp
in interface PersistentRetrieveIfc
getTimestamp
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public InputStream getUnicodeStream(String attrName) throws SQLException
AbstractPersistentRetrieve
getUnicodeStream
in interface PersistentRetrieveIfc
getUnicodeStream
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public LobLocator getLobLocator(String attrName) throws SQLException, DatastoreException
AbstractPersistentRetrieve
getLobLocator
in interface PersistentRetrieveIfc
getLobLocator
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.
DatastoreException
public Boolean getBooleanObject(String attrName) throws SQLException
AbstractPersistentRetrieve
getBooleanObject
in interface PersistentRetrieveIfc
getBooleanObject
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public Byte getByteObject(String attrName) throws SQLException
AbstractPersistentRetrieve
getByteObject
in interface PersistentRetrieveIfc
getByteObject
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public Character getCharObject(String attrName) throws SQLException
AbstractPersistentRetrieve
getCharObject
in interface PersistentRetrieveIfc
getCharObject
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public Double getDoubleObject(String attrName) throws SQLException
AbstractPersistentRetrieve
getDoubleObject
in interface PersistentRetrieveIfc
getDoubleObject
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public Float getFloatObject(String attrName) throws SQLException
AbstractPersistentRetrieve
getFloatObject
in interface PersistentRetrieveIfc
getFloatObject
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public Integer getIntObject(String attrName) throws SQLException
AbstractPersistentRetrieve
getIntObject
in interface PersistentRetrieveIfc
getIntObject
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public Long getLongObject(String attrName) throws SQLException
AbstractPersistentRetrieve
getLongObject
in interface PersistentRetrieveIfc
getLongObject
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public Short getShortObject(String attrName) throws SQLException
AbstractPersistentRetrieve
getShortObject
in interface PersistentRetrieveIfc
getShortObject
in class AbstractPersistentRetrieve
attrName
- a class attribute name
SQLException
- if a database-access error occurs.public ObjectMappable readObject(String attribute_name, ObjectMappable obj, Class concrete_class, boolean is_required) throws SQLException, DatastoreException
AbstractPersistentRetrieve
readExternal
method.
readObject
in interface PersistentRetrieveIfc
readObject
in class AbstractPersistentRetrieve
attribute_name
- a class attribute nameobj
- the nested objectconcrete_class
- the class to instantiate if needed
SQLException
- if a database-access error occurs.
DatastoreException
- if any other internal error occurs.public String getContainer()
AbstractPersistentRetrieve
readObject
.
getContainer
in interface PersistentRetrieveIfc
getContainer
in class AbstractPersistentRetrieve
private ObjectMappable createObject(String a_attributeName, Class a_staticClass) throws InstantiationException, IllegalAccessException
InstantiationException
IllegalAccessException
public boolean next() throws SQLException
next
in interface PersistentRetrieveIfc
next
in class AbstractPersistentRetrieve
SQLException
- if a database-access error occurs.public void close() throws SQLException
AbstractPersistentRetrieve
close
in interface PersistentRetrieveIfc
close
in class AbstractPersistentRetrieve
SQLException
- if a database-access error occurs.public boolean wasNull() throws SQLException
AbstractPersistentRetrieve
wasNull
in interface PersistentRetrieveIfc
wasNull
in class AbstractPersistentRetrieve
SQLException
- if a database-access error occurs.public SQLWarning getWarnings() throws SQLException
SQLException
public void clearWarnings() throws SQLException
SQLException
public String getCursorName() throws SQLException
SQLException
public ResultSetMetaData getMetaData() throws SQLException
SQLException
public int findColumn(String columnName)
public Map getAttributeMap()
private byte[] getLobAsByteArray(WTConnection connection, Object b) throws DatastoreException
DatastoreException
private Object getLobAsObject(WTConnection connection, Object b) throws DatastoreException
DatastoreException
public boolean getAutoNavigate()
public void setAutoNavigate(boolean autoNavigate)
private void setOffset(String attrName)
private int indexOf(String attribute)
public boolean getBuildMaps()
getBuildMaps
in class AbstractPersistentRetrieve
public String getFullAttrName(String attrName)
getFullAttrName
in class AbstractPersistentRetrieve
private String buildFullAttrName(String attrName)
private String getDescriptorName(ClassInfo aCI, String fullName)
public ObjectMappable getTopObject()
getTopObject
in class AbstractPersistentRetrieve
public boolean getBlobRewriteEnabled()
getBlobRewriteEnabled
in class AbstractPersistentRetrieve
public static boolean setLobsDisabled(boolean disabled)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |