|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwt.xml.io.DOMTreeDecoder
Field Summary | |
private Node |
ActiveNode
|
private DOMTreeDecoderCallback |
callback
|
private boolean |
callbackFinished
|
private NodeList |
ChildNodeList
|
private Stack |
ChildNodes
|
private Vector |
ChildNodesFilled
|
private Stack |
ChildNodesUseStack
|
private static boolean |
DEBUG
|
private int |
iNrChildren
|
private Stack |
Nodes
|
private int |
readObjectDepth
|
private Node |
tree
|
Fields inherited from interface wt.pds.PersistentRetrieveIfc |
versionID |
Fields inherited from interface wt.util.xml.XMLMechanismConstants |
ATTLIST_ATTRIBUTE_NAME, ATTLIST_CLASS_NAME, ATTLIST_ENCODING_TYPE, ATTLIST_OID, DEFAULT_XML_PARSER_IMPLEMENTATION, DOCUMENT_ELEMENT_NAME, SELF_DESCRIBING_XML, XML_FILE_EXT |
Constructor Summary | |
private |
DOMTreeDecoder()
|
|
DOMTreeDecoder(Element tree)
|
|
DOMTreeDecoder(Element tree,
DOMTreeDecoderCallback callback)
|
Method Summary | |
void |
close()
Immediately release a ResultSet's datastore and connection resources |
private Object |
deserializeObject(byte[] bArray)
|
private Node |
findNode(String tagName)
|
private Node |
findNode(String tagName,
String tagAttributeValue)
|
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. |
private byte[] |
getByteData(Node theNode)
|
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. |
String |
getContainer()
Get the current container name. |
private String |
getData(Node theNode)
|
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 attribute_name,
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. |
Node |
getTree()
|
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. |
protected void |
initDecoder(Node tree)
|
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. |
private boolean |
popEm()
|
private boolean |
pushEm()
|
ObjectMappable |
readObject(String attribute_name,
ObjectMappable obj,
Class concrete_class,
boolean is_required)
Get the values corresponding to a nested ObjectMappable Object. |
void |
reset(Element tree)
|
private void |
setNodeStructures(Node thisNode)
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final boolean DEBUG
private Node tree
private Node ActiveNode
private NodeList ChildNodeList
private Vector ChildNodesFilled
private int iNrChildren
private Stack Nodes
private Stack ChildNodes
private Stack ChildNodesUseStack
private DOMTreeDecoderCallback callback
private int readObjectDepth
private boolean callbackFinished
Constructor Detail |
private DOMTreeDecoder()
public DOMTreeDecoder(Element tree) throws XMLIOException
public DOMTreeDecoder(Element tree, DOMTreeDecoderCallback callback) throws XMLIOException
Method Detail |
public Node getTree() throws XMLIOException
XMLIOException
public void reset(Element tree) throws XMLIOException
XMLIOException
protected void initDecoder(Node tree)
private void setNodeStructures(Node thisNode) throws XMLIOException
XMLIOException
private boolean pushEm() throws XMLIOException
XMLIOException
private boolean popEm()
private Node findNode(String tagName) throws XMLIOException
XMLIOException
private Node findNode(String tagName, String tagAttributeValue) throws XMLIOException
XMLIOException
private String getData(Node theNode) throws XMLIOException
XMLIOException
private byte[] getByteData(Node theNode) throws XMLIOException
XMLIOException
private Object deserializeObject(byte[] bArray) throws XMLIOException
XMLIOException
public InputStream getAsciiStream(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getAsciiStream
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public BigDecimal getBigDecimal(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getBigDecimal
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public InputStream getBinaryStream(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getBinaryStream
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public boolean getBoolean(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getBoolean
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public Boolean getBooleanObject(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getBooleanObject
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public byte getByte(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getByte
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public Byte getByteObject(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getByteObject
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public byte[] getBytes(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getBytes
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public char getChar(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getChar
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public Character getCharObject(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getCharObject
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public Date getDate(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getDate
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public double getDouble(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getDouble
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public Double getDoubleObject(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getDoubleObject
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public float getFloat(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getFloat
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public Float getFloatObject(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getFloatObject
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public Object getInlineObject(String attribute_name, String blobAttributeName) throws XMLIOException
PersistentRetrieveIfc
getInlineObject
in interface PersistentRetrieveIfc
attribute_name
- a class attribute nameblobAttributeName
- a blob attribute name
XMLIOException
public int getInt(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getInt
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public Integer getIntObject(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getIntObject
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public long getLong(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getLong
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public Long getLongObject(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getLongObject
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public Object getObject(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getObject
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public Object getSmallObject(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getSmallObject
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public short getShort(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getShort
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public Short getShortObject(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getShortObject
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public String getString(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getString
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public Time getTime(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getTime
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public Timestamp getTimestamp(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getTimestamp
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public InputStream getUnicodeStream(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getUnicodeStream
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public LobLocator getLobLocator(String attribute_name) throws XMLIOException
PersistentRetrieveIfc
getLobLocator
in interface PersistentRetrieveIfc
attribute_name
- a class attribute name
XMLIOException
public ObjectMappable readObject(String attribute_name, ObjectMappable obj, Class concrete_class, boolean is_required) throws XMLIOException
PersistentRetrieveIfc
readExternal
method.
readObject
in interface PersistentRetrieveIfc
attribute_name
- a class attribute nameobj
- the nested objectconcrete_class
- the class to instantiate if needed
XMLIOException
public String getContainer()
PersistentRetrieveIfc
readObject
.
getContainer
in interface PersistentRetrieveIfc
public boolean next()
PersistentRetrieveIfc
next
in interface PersistentRetrieveIfc
public void close()
PersistentRetrieveIfc
close
in interface PersistentRetrieveIfc
public boolean wasNull()
PersistentRetrieveIfc
wasNull
in interface PersistentRetrieveIfc
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |