|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.backsource.xindice.XindiceAdapter
An adapter agains Xincice.
Farefully a ripp of from XmlBlaster: org.xmlBlaster.engine.persistence.xmldb.xindice.XindiceProxy.
| Constructor Summary | |
XindiceAdapter(java.lang.String url,
java.lang.String col)
|
|
| Method Summary | |
void |
addDocument(org.w3c.dom.Node data,
java.lang.String id)
|
void |
addDocument(org.w3c.dom.Node data,
java.lang.String id,
boolean update)
Adds a document to the database. |
void |
addDocument(java.lang.String data,
java.lang.String id)
Allows to add a document to the collection The database needs to be running see Xindice for details. |
void |
closeCollection()
Allows to close a collection The database needs to be running see Xindice for details. |
void |
createCollection(java.lang.String colName)
Allows to create a collection The database needs to be running see Xindice for details. |
void |
deleteCollection(java.lang.String colName)
Allows to delete a collection The database needs to be running see Xindice for details. |
void |
deleteDocument(java.lang.String id)
Allows to delete a document in the collection The database needs to be running see Xindice for details. |
java.lang.String |
getCollection()
Allows to get the name of a collection |
java.lang.String |
getCollectionName()
Get the collection name, not including the base url. |
boolean |
hasDocument(java.lang.String id)
Checks if this collection has a document matching the specified key. |
java.lang.String[] |
listCollection()
Allows to list a collection The database needs to be running see Xindice for details. |
java.lang.String[] |
listDocuments()
Allows to list all document of the collection The database needs to be running see Xindice for details. |
void |
openCollection()
Allows to open a collection. |
void |
openCollection(java.lang.String path)
Allows to set the path of a collection and to open it. |
org.xmldb.api.base.ResourceSet |
query(java.lang.String xpath)
|
org.xmldb.api.base.ResourceSet |
query(java.lang.String id,
java.lang.String xpath)
|
java.lang.String |
retrieveDocument(java.lang.String id)
Allows to retrieve a document from the collection The database needs to be running see Xindice for details. |
void |
setCollection(java.lang.String path)
Allows to set the name of the collection |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public XindiceAdapter(java.lang.String url,
java.lang.String col)
throws XindiceException
| Method Detail |
public void createCollection(java.lang.String colName)
throws XindiceException
colName - The Name of the collection
XindiceException
public void deleteCollection(java.lang.String colName)
throws XindiceException
colName - The Name of the collection
XindiceException
public void openCollection(java.lang.String path)
throws XindiceException
path - The Path of the collection i.e. xmldb:xindice:///db/xmlBlaster
XindiceException
public void openCollection()
throws XindiceException
XindiceException
public void closeCollection()
throws XindiceException
XindiceException
public java.lang.String[] listCollection()
throws XindiceException
XindiceExceptionpublic void setCollection(java.lang.String path)
path - The Path of the collection i.e. xmldb:xindice:///db/xmlBlasterpublic java.lang.String getCollection()
public java.lang.String getCollectionName()
public void addDocument(java.lang.String data,
java.lang.String id)
throws XindiceException
data - The data to be storedid - The unique id of the stored data
XindiceException
public void addDocument(org.w3c.dom.Node data,
java.lang.String id)
throws XindiceException
XindiceException
public void addDocument(org.w3c.dom.Node data,
java.lang.String id,
boolean update)
throws XindiceException
data - is the documentid - is the Xindice keyupdate - indicates whether to update the document or not.
XindiceException
public boolean hasDocument(java.lang.String id)
throws XindiceException
id - is the document key
XindiceException
public java.lang.String retrieveDocument(java.lang.String id)
throws XindiceException
id - The unique id of the stored data
XindiceException
public org.xmldb.api.base.ResourceSet query(java.lang.String xpath)
throws XindiceException
XindiceException
public org.xmldb.api.base.ResourceSet query(java.lang.String id,
java.lang.String xpath)
throws XindiceException
XindiceException
public void deleteDocument(java.lang.String id)
throws XindiceException
id - The unique id of the document to delete
XindiceException
public java.lang.String[] listDocuments()
throws XindiceException
XindiceException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||