|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.omg.PortableServer.Servant | +--org.apache.xindice.client.corba.db.CollectionPOA | +--org.apache.xindice.client.corba.CollectionServant
Provides access to Collection instances through CORBA.
Collection
Constructor Summary | |
CollectionServant(Collection collection)
Constructor for the CollectionServant object |
Method Summary | |
java.lang.String |
createNewOID()
Creates a new unique OID for this collection. |
java.lang.String |
getCanonicalName()
Returns the Canonical Name of the Collection |
Collection |
getCollection(java.lang.String path)
Retrieves a new Collection instance for the named collection. |
CollectionManager |
getCollectionManager()
Returns a CollectionManager instance for this collection. |
EncodedBuffer |
getDocument(java.lang.String id,
long stamp)
Retrieves a document from the collection |
int |
getDocumentCount()
Returns the number of documents stored in this collection. |
DocumentSet |
getDocuments()
Returns a set containing all documents in the collection. |
java.lang.String |
getName()
Gets the Name of the Collection |
Collection |
getParentCollection()
Gets the parent Collection for this Collection |
java.lang.String |
insertDocument(java.lang.String nam,
EncodedBuffer doc)
Inserts a new document into the collection |
EncodedBuffer |
invokeXMLObject(java.lang.String uri)
Invokes an XMLObject using the uri provided. |
java.lang.String[] |
listCollections()
Lists all child collections under this collection |
java.lang.String[] |
listDocuments()
Returns a set containing all documents in the collection. |
EncodedBuffer |
queryCollection(java.lang.String style,
java.lang.String query,
NamedVal[] namespaces,
long stamp)
Executes an query against a this collection |
EncodedBuffer |
queryDocument(java.lang.String style,
java.lang.String query,
NamedVal[] namespaces,
java.lang.String id,
long stamp)
Executes a query against a Document in this collection |
void |
remove()
Releases all resources associated with this object. |
void |
removeDocument(java.lang.String id)
Deletes a document from the collection. |
void |
setDocument(java.lang.String id,
EncodedBuffer doc)
Sets a document in the collection. |
Methods inherited from class org.apache.xindice.client.corba.db.CollectionPOA |
_all_interfaces, _invoke, _this, _this |
Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface_def, _get_interface, _is_a, _non_existent, _object_id, _orb, _orb, _poa, _set_delegate, _this_object, _this_object |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CollectionServant(Collection collection)
collection
- The collection that is being wrapped.Method Detail |
public void setDocument(java.lang.String id, EncodedBuffer doc) throws APIException
id
- The key for the Document to setdoc
- The Document value to setAPIException
- Thrown for all errors check faultCode for details.public java.lang.String getName() throws APIException
APIException
- Thrown for all errors check faultCode for details.public java.lang.String getCanonicalName() throws APIException
APIException
- Thrown for all errors check faultCode for details.public CollectionManager getCollectionManager() throws APIException
APIException
- Thrown for all errors check faultCode for details.public Collection getParentCollection() throws APIException
APIException
- Thrown for all errors check faultCode for details.public Collection getCollection(java.lang.String path) throws APIException
path
- The path of the collection to retrieveAPIException
- Thrown for all errors check faultCode for details.public EncodedBuffer getDocument(java.lang.String id, long stamp) throws APIException
id
- The id of the document to retrieve.APIException
- Thrown for all errors check faultCode for details.public DocumentSet getDocuments() throws APIException
APIException
- Thrown for all errors check faultCode for details.public int getDocumentCount() throws APIException
APIException
- Thrown for all errors check faultCode for details.public java.lang.String[] listCollections() throws APIException
APIException
- Thrown for all errors check faultCode for details.public java.lang.String insertDocument(java.lang.String nam, EncodedBuffer doc) throws APIException
nam
- The key to store the document under. If nam is empty a new
key value will be generated.doc
- The Document instance to storeAPIException
- Thrown for all errors check faultCode for details.public void removeDocument(java.lang.String id) throws APIException
id
- The key for the document to deleteAPIException
- Thrown for all errors check faultCode for details.public java.lang.String[] listDocuments() throws APIException
APIException
- Thrown for all errors check faultCode for details.public java.lang.String createNewOID() throws APIException
APIException
- Thrown for all errors check faultCode for details.public EncodedBuffer queryCollection(java.lang.String style, java.lang.String query, NamedVal[] namespaces, long stamp) throws APIException
style
- The query style to usequery
- The xpath query string to use.APIException
- Thrown for all errors check faultCode for details.public EncodedBuffer queryDocument(java.lang.String style, java.lang.String query, NamedVal[] namespaces, java.lang.String id, long stamp) throws APIException
style
- The query style to usequery
- The xpath query string to use.APIException
- Thrown for all errors check faultCode for details.public EncodedBuffer invokeXMLObject(java.lang.String uri) throws APIException
uri
- The URI to use to locate and invoke the XMLObjectAPIException
- Thrown for all errors check faultCode for details.public void remove()
|
Xindice API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |