| |
|
| org.xmldb.api.base.Resource
Resource | public interface Resource (Code) | | Resource is a container for data stored within the database. Raw resources
are not particulary useful. It is necessary to have a resource implementation
that provides handling for a specific content type before anything useful can
be done.
|
getContent | Object getContent() throws XMLDBException(Code) | | Retrieves the content from the resource. The type of the content varies
depending what type of resource is being used.
the content of the resource. exception: XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendorspecific errors that occur. |
getId | String getId() throws XMLDBException(Code) | | Returns the unique id for this Resource or null if the resource is
anonymous.
the id for the Resource or null if no id exists. exception: XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendorspecific errors that occur. |
getParentCollection | Collection getParentCollection() throws XMLDBException(Code) | | Returns the Collection instance that this resource is
associated with. All resources must exist within the context of a
collection .
the collection associated with the resource. exception: XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendorspecific errors that occur. |
getResourceType | String getResourceType() throws XMLDBException(Code) | | Returns the resource type for this Resource.
XML:DB defined resource types are:
XMLResource - all XML data stored in the database
BinaryResource - Binary blob data stored in the database
the resource type for the Resource. exception: XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendorspecific errors that occur. |
setContent | void setContent(Object value) throws XMLDBException(Code) | | Sets the content for this resource. The type of content that can be set
depends on the type of resource being used.
Parameters: value - the content value to set for the resource. exception: XMLDBException - with expected error codes.
ErrorCodes.VENDOR_ERROR for any vendorspecific errors that occur. |
|
|
|