(on insert of XML document)
Generates a unique Accession Number or if provided check it
for uniqueness and register it into the db connection
(on update or delete of XML document)
Check for existance of provided Accession Number
format a simple free-text value query as an XML document that conforms
to the pathquery.dtd and is appropriate for submission to the DBQuery
structured query engine
format a simple free-text value query as an XML document that conforms
to the pathquery.dtd and is appropriate for submission to the DBQuery
structured query engine
format a structured query as an XML document that conforms to the
pathquery.dtd and is appropriate for submission to the DBQuery
structured query engine
A database aware Class implementing DTDHandler interface for the SAX
parser to call when processing the XML stream and intercepting notations
and unparsed entities
A database aware Class implementing EntityResolver interface for the SAX
parser to call when processing the XML stream and intercepting any
external entities (including the external DTD subset and external
parameter entities, if any) before including them.
A Class that searches a relational DB for elements and attributes that have
free text matches a query string, or structured query matches to a path
specified node in the XML hierarchy.
A database aware Class implementing callback bethods for the SAX parser to
call when processing the XML stream and generating events
Here is the rules for user which has write permission in top level access
rules(he can update metadata but can't update access module) try to update
a document:
1.
To a given docid, found a dataset docid which conatains the the given doicd
This will be done by searching xml_relation table
If couldn't find, null will be return
Get last revision number from database for a docid If couldn't find an
entry, -1 will return The return value is integer because we want compare
it to there new one
The Oracle unique ID generator through use of sequences
The name of the sequence used to generate the unique id
is made from the name of the table that uses the id by
appending "_id_seq" to it.
The PostgreSQL unique ID /sequence generator
The name of the sequence used to generate the unique id
is made from the name of the table that uses the id by
appending "_id_seq" to it.
This interface provides methods for initializing and logging in to a
Metacat server, and then querying, reading, transforming, inserting,
updating and deleting documents from that server.
This interface provides methods for initializing and logging in to a
Metacat server, and then querying, reading, transforming, inserting,
updating and deleting documents from that server.
This interface provides methods for initializing and logging in to a
Metacat server, and then querying, reading, transforming, inserting,
updating and deleting documents from that server.
This interface provides methods for initializing and logging in to a
Metacat server, and then querying, reading, transforming, inserting,
updating and deleting documents from that server.
This method prints sql that finds the values of attributes in the xml
documents based upon the whether the returnfield tag in the pathquery
document has an attribute symbol (@).
This method prints sql that finds the values of attributes in the xml
documents based upon the whether the returnfield tag in the pathquery
document has an attribute symbol (@).
The Parser call this method before opening any external entity
except the top-level document entity (including the external DTD subset,
external entities referenced within the DTD, and external entities
referenced within the document element)
Method to decrease dbconnection pool size when all dbconnections are idle
If all connections are free and connection pool size greater than
initial value, shrink connection pool size to intital value
Method to decrease dbconnection pool size when all dbconnections are idle
If all connections are free and connection pool size greater than
initial value, shrink connection pool size to intital value
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