Public Member Functions | |
Archiver (ContainerServices containerServices) throws Exception | |
Creates an Archiver, i.e. | |
String | getID () throws NotAvailable |
Returns an Archive uid. | |
String[] | getUIDs (String query, String schema) throws ArchiveException |
Returns an array of all the Archive uids of stored document having a given schema and verifying a given XPath expression. | |
String | query (String aQuery, String schema, int maxRes) |
Returns a string containing pieces of XML code verifying an XPath expression in the documents stored in the Archive with a given schema. | |
String | retrieve (String uid) throws ArchiveException |
Returns an XML document stored in the archive given its Archive uid. | |
String | store (String xmlString, String schema) throws ArchiveException |
Stores an XML document in the archive. | |
void | store (String xmlString, String schema, String uid) throws ArchiveException |
Stores an XML document in the archive. | |
void | update (String uid, String xmlString) throws ArchiveException |
Updates a XML document archived with a given Archive uid. | |
void | binStore (String uid, byte[] data) throws ArchiveException |
byte[] | binRetrieve (String uid) throws ArchiveException |
void | done () throws ArchiveInternalError |
void | finalize () throws ArchiveInternalError |
Package Attributes | |
Administrative | m_admin |
|
Creates an Archiver, i.e. a connection to a database and a collection of methods to store, retrieve, update, list XML documents stored in this databse.
|
|
Returns an Archive uid.
|
|
Returns an array of all the Archive uids of stored document having a given schema and verifying a given XPath expression.
|
|
Returns a string containing pieces of XML code verifying an XPath expression in the documents stored in the Archive with a given schema. The maximum of number of results is defined by a parameter.
|
|
Returns an XML document stored in the archive given its Archive uid.
|
|
Stores an XML document in the archive. The XML document is assumed to be conform with the schema whose name is passed in argument.
|
|
Stores an XML document in the archive. The XML document is assumed to be conform with the schema whose name is passed as a parameter. Returns the Archive uid assigned to the archived document.
|
|
Updates a XML document archived with a given Archive uid.
|