public class DBSAXNode extends BasicNode
Constructor and Description |
---|
DBSAXNode(DBConnection conn,
java.lang.String docid)
Construct a new node instance for DOCUMENT nodes
|
DBSAXNode(DBConnection conn,
java.lang.String qName,
java.lang.String lName,
DBSAXNode parentNode,
long rootnodeid,
java.lang.String docid,
java.lang.String doctype)
Construct a new node instance for ELEMENT nodes
|
DBSAXNode(DBConnection conn,
java.lang.String docName,
java.lang.String publicId,
java.lang.String systemId,
DBSAXNode parentNode,
long rootnodeid,
java.lang.String docid)
Construct a new node instance for DTD nodes
This Node will write docname, publicId and systemId into db.
|
Modifier and Type | Method and Description |
---|---|
DBSAXNode |
getParentNode()
get the parent of this node
|
long |
setAttribute(java.lang.String attName,
java.lang.String attValue,
java.lang.String docid)
Add a new attribute to this node, or set its value
|
long |
setNamespace(java.lang.String prefix,
java.lang.String uri,
java.lang.String docid)
Add a namespace to this node
|
void |
updateNodeIndex(DBConnection conn,
java.lang.String docid,
java.lang.String doctype)
USED FROM SEPARATE THREAD RUNNED from DBSAXHandler on endDocument()
Update the node index (xml_index) for this node by generating
test strings that represent all of the relative and absolute
paths through the XML tree from document root to this node
|
void |
updateRootNodeID(long nodeid)
update rootnodeid=nodeid for 'DOCUMENT' type of nodes only
|
long |
writeChildNodeToDB(java.lang.String nodetype,
java.lang.String nodename,
java.lang.String data,
java.lang.String docid)
creates SQL code and inserts new node into DB connection
|
long |
writeChildNodeToDBDataLimited(java.lang.String nodetype,
java.lang.String nodename,
java.lang.String data,
java.lang.String docid)
creates SQL code and inserts new node into DB connection
|
long |
writeDTDNodeToDB(java.lang.String nodename,
java.lang.String data,
java.lang.String docid)
creates SQL code and inserts new node into DB connection
|
void |
writeNodename(java.lang.String nodename)
creates SQL code to put nodename for the document node
into DB connection
|
addChildNode, getAttribute, getAttributes, getChildren, getDocID, getNamespace, getNodeID, getNodeIndex, getNodeType, getParentID, getRootNodeID, getTagName, incChildNum, setAttribute, setDocID, setNamespace, setNodeID, setNodeIndex, setNodeType, setParentID, setRootNodeID, setTagName
public DBSAXNode(DBConnection conn, java.lang.String docid) throws org.xml.sax.SAXException
conn
- the JDBC Connection to which all information is writtenorg.xml.sax.SAXException
public DBSAXNode(DBConnection conn, java.lang.String qName, java.lang.String lName, DBSAXNode parentNode, long rootnodeid, java.lang.String docid, java.lang.String doctype) throws org.xml.sax.SAXException
conn
- the JDBC Connection to which all information is writtentagname
- the name of the nodeparentNode
- the parent node for this node being createdorg.xml.sax.SAXException
public DBSAXNode(DBConnection conn, java.lang.String docName, java.lang.String publicId, java.lang.String systemId, DBSAXNode parentNode, long rootnodeid, java.lang.String docid) throws org.xml.sax.SAXException
conn
- the JDBC Connection to which all information is writtentagname
- the name of the nodeparentNode
- the parent node for this node being createdorg.xml.sax.SAXException
public long writeChildNodeToDB(java.lang.String nodetype, java.lang.String nodename, java.lang.String data, java.lang.String docid) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public long writeChildNodeToDBDataLimited(java.lang.String nodetype, java.lang.String nodename, java.lang.String data, java.lang.String docid) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void updateRootNodeID(long nodeid) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void writeNodename(java.lang.String nodename) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public long writeDTDNodeToDB(java.lang.String nodename, java.lang.String data, java.lang.String docid) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public long setAttribute(java.lang.String attName, java.lang.String attValue, java.lang.String docid) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public long setNamespace(java.lang.String prefix, java.lang.String uri, java.lang.String docid) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public void updateNodeIndex(DBConnection conn, java.lang.String docid, java.lang.String doctype) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public DBSAXNode getParentNode()
Copyright © 2020 Regents of the University of California. All Rights Reserved.