|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.nxqd.NxqdConsumer net.sf.nxqd.NxqdContainer
public class NxqdContainer
The class NxqdContainer
is the for
interacting with Nxqd containers, such as adding or deleting documents.
Method Summary | |
---|---|
boolean |
blobExists(String blobId)
The blobExists method checks if
the specified blob exists. |
void |
deleteBlob(String blobId)
The deleteBlob method deletes the specified blob from this
container using the specified blobId. |
void |
deleteDocument(String documentId)
The deleteDocument method deletes the specified document from this
container using the specified documentId. |
boolean |
documentExists(String documentId)
The documentExists method checks if
the specified document exists. |
NxqdBlobValue |
getBlob(String blobId)
The getBlob method retrieves the specified blob from the database. |
NxqdXMLValue |
getDocument(String documentId)
The getDocument method retrieves the specified document from this
container using the specified documentId. |
String |
getName()
The getName method returns the name of this Container. |
long |
getNumDocuments()
Returns the number of XML Documents in this container. |
List |
listBlobs()
The listBlobs method lists the id's of
the blobs managed by this container. |
List |
listDocuments()
The listDocuments method returns a List containing
the document id's managed by the server. |
void |
putBlob(String blobId,
NxqdBlobValue blob)
The putBlob method stores the specified blob object as a binary
resources in the database under the specified id. |
void |
putDocument(String documentId,
NxqdXMLValue document)
The putDocument method adds the document to this
container using the specified documentId. |
Methods inherited from class net.sf.nxqd.NxqdConsumer |
---|
getNxqdManager, setNxqdManager |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public final String getName()
getName
method returns the name of this Container.
String
valuepublic long getNumDocuments() throws NxqdException
long
value
XmlException
- if an error occurs
NxqdException
public void putDocument(String documentId, NxqdXMLValue document) throws NxqdException
putDocument
method adds the document to this
container using the specified documentId. An exception is thrown if
the specified documentId already exists.
documentId
- a String
valuedocument
- a NxqdXMLValue
value
NxqdException
- if an error occurspublic NxqdXMLValue getDocument(String documentId) throws NxqdException
getDocument
method retrieves the specified document from this
container using the specified documentId. An exception is thrown if
the specified documentId does not exist.
documentId
- a String
value
NxqdXMLValue
value
NxqdException
- if an error occurspublic void deleteDocument(String documentId) throws NxqdException
deleteDocument
method deletes the specified document from this
container using the specified documentId. An exception is thrown if
an error occurred while deleting the document.
documentId
- a String
value
NxqdException
- if an error occurspublic boolean documentExists(String documentId) throws NxqdException
documentExists
method checks if
the specified document exists. It will return
true if the document exists, false otherwise.
A NxqdException is thrown if other errors occur.
documentId
- a String
value
boolean
value
NxqdException
- if an error occurspublic List listDocuments() throws NxqdException
listDocuments
method returns a List containing
the document id's managed by the server. This list may
be empty, but it will never be null, and contains String
values.
List
value
NxqdException
- if an error occurspublic void putBlob(String blobId, NxqdBlobValue blob) throws NxqdException
putBlob
method stores the specified blob object as a binary
resources in the database under the specified id.
blobId
- a String
valueblob
- a NxqdBlobValue
value
NxqdException
- if an error occurspublic NxqdBlobValue getBlob(String blobId) throws NxqdException
getBlob
method retrieves the specified blob from the database.
blobId
- a String
value
NxqdBlobValue
value
NxqdException
- if an error occurspublic void deleteBlob(String blobId) throws NxqdException
deleteBlob
method deletes the specified blob from this
container using the specified blobId. An exception is thrown if
an error occurred while deleting the document.
blobId
- a String
value
NxqdException
- if an error occurspublic List listBlobs() throws NxqdException
listBlobs
method lists the id's of
the blobs managed by this container.
List
value
NxqdException
- if an error occurspublic boolean blobExists(String blobId) throws NxqdException
blobExists
method checks if
the specified blob exists. It will return
true if the blob exists, false otherwise.
A NxqdException is thrown if other errors occur.
blobId
- a String
value
boolean
value
NxqdException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |