|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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.
Method Summary | |
java.lang.Object |
getContent()
Retrieves the content from the resource. |
java.lang.String |
getId()
Returns the unique id for this Resource or null if the resource is anonymous. |
Collection |
getParentCollection()
Returns the Collection instance that this resource is
associated with. |
java.lang.String |
getResourceType()
Returns the resource type for this Resource. |
void |
setContent(java.lang.Object value)
Sets the content for this resource. |
Method Detail |
public Collection getParentCollection() throws XMLDBException
Collection
instance that this resource is
associated with. All resources must exist within the context of a
collection
.
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public java.lang.String getId() throws XMLDBException
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public java.lang.String getResourceType() throws XMLDBException
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public java.lang.Object getContent() throws XMLDBException
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.public void setContent(java.lang.Object value) throws XMLDBException
value
- the content value to set for the resource.
XMLDBException
- with expected error codes.ErrorCodes.VENDOR_ERROR
for any vendor
specific errors that occur.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |