(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
Adds a new feature (from a SpatialDocument)
This is faster than insertOrUpdate but
relying on this method might cause duplication
of docids in the spatial cache.
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.
DBQuery() -
Constructor for class edu.ucsb.nceas.metacat.DBQuery
Construct an instance of DBQuery Class
BUT accept a docid Vector that will supersede
the query.printSQL() method
If a docid Vector is passed in,
the docids will be used to create a simple IN query
without the multiple subselects of the printSQL() method
Using this constructor, we just check for
a docidOverride Vector in the findResultDoclist() method
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
Generate all of the sitemap files needed to list the URLs from this
instance of Metacat, using the open sitemap format described here:
URLs are written to a single file, unless the maximum number of URLs
allowed inthe sitemap file is exceeded, in which subsequent numbered
files are created.
A bean may have a "default" property that is the property that will
mostly commonly be initially chosen for update by human's who are
customizing the bean.
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.
PathIndexEntry contains all of the data fields needed to insert an path into
the xml_index table or the xml_path_index table, depending on which
constructor is used.
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
site -
Variable in class edu.ucsb.nceas.metacat.advancedsearch.LTERSite
A Sitemap represents a document that lists all of the content of the Metacat
server for use by harvesting spiders that wish to index the contents of the
Metacat site.
Class to generate Styled Layer Descriptors allowing geoserver to
filter the feature rendering based on various contraints
such as permissions, non-spatial queries and skin configuration.
Creates the XML string that represents this AdvancedSearchQueryGroup,
including the querygroups and queryterms that are descendants of this
querygroup.
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