|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.noaa.gdsg.xmldbremote.xmldbClient.XmldbClientCollection
public class XmldbClientCollection
This class wraps the SOAP calls into the XML:DB Database API.
| Constructor Summary | |
|---|---|
XmldbClientCollection(gov.noaa.gdsg.xmldbremote.Collection collectionTransport,
gov.noaa.gdsg.xmldbremote.NmmrdbSoapBindingStub stub)
Creates a new instance of Collection |
|
| Method Summary | |
|---|---|
void |
close()
Closes the this collection and releases the resources. |
java.lang.String |
createId()
Creates a new ID which is used to create a resource. |
org.xmldb.api.base.Resource |
createResource(java.lang.String id,
java.lang.String type)
Creates a new empty resource with the given id |
org.xmldb.api.base.Collection |
getChildCollection(java.lang.String name)
Return the child collection by name |
int |
getChildCollectionCount()
Returns the number of child collections. |
gov.noaa.gdsg.xmldbremote.Collection |
getCollectionTransport()
Returns the collection transport object associated with this Collection |
java.lang.String |
getName()
Returns the name of this collection |
org.xmldb.api.base.Collection |
getParentCollection()
Returns the parent collection associated with this collection |
java.lang.String |
getProperty(java.lang.String str)
Throws a NOT_IMPLEMETED exception. |
org.xmldb.api.base.Resource |
getResource(java.lang.String id)
Returns the resource Idenitifed by the specified string. |
int |
getResourceCount()
Returns the number of resource in this record set |
org.xmldb.api.base.Service |
getService(java.lang.String name,
java.lang.String version)
Returns the specified service. |
org.xmldb.api.base.Service[] |
getServices()
Returns all know services associated with this collection. |
boolean |
isOpen()
Determines if this collection is open. |
java.lang.String[] |
listChildCollections()
Returns a list of child collections |
java.lang.String[] |
listResources()
Lists all resources associated with this collection. |
void |
removeResource(org.xmldb.api.base.Resource resource)
Removes the specified resource from this collection. |
void |
setProperty(java.lang.String str,
java.lang.String str1)
Throws a NOT_IMPLEMENTED exception. |
void |
storeResource(org.xmldb.api.base.Resource resource)
Stores the specified resource in this collection. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmldbClientCollection(gov.noaa.gdsg.xmldbremote.Collection collectionTransport,
gov.noaa.gdsg.xmldbremote.NmmrdbSoapBindingStub stub)
collectionTransport - The transport object used to identify the remote object.stub - The stub used to call the remote method.| Method Detail |
|---|
public void close()
throws org.xmldb.api.base.XMLDBException
close in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public java.lang.String createId()
throws org.xmldb.api.base.XMLDBException
createId in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public org.xmldb.api.base.Resource createResource(java.lang.String id,
java.lang.String type)
throws org.xmldb.api.base.XMLDBException
createResource in interface org.xmldb.api.base.Collectionid - The id of the new resourcetype - The type of resource to create
org.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public org.xmldb.api.base.Collection getChildCollection(java.lang.String name)
throws org.xmldb.api.base.XMLDBException
getChildCollection in interface org.xmldb.api.base.Collectionname - The name of the child collection
org.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public int getChildCollectionCount()
throws org.xmldb.api.base.XMLDBException
getChildCollectionCount in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public java.lang.String getName()
throws org.xmldb.api.base.XMLDBException
getName in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public org.xmldb.api.base.Collection getParentCollection()
throws org.xmldb.api.base.XMLDBException
getParentCollection in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public java.lang.String getProperty(java.lang.String str)
throws org.xmldb.api.base.XMLDBException
getProperty in interface org.xmldb.api.base.Configurablestr - Ignored.
org.xmldb.api.base.XMLDBException - with ErrorCodes.NOT_IMPLEMENTED.
public org.xmldb.api.base.Resource getResource(java.lang.String id)
throws org.xmldb.api.base.XMLDBException
getResource in interface org.xmldb.api.base.Collectionid - The id of the resource to find.
org.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public int getResourceCount()
throws org.xmldb.api.base.XMLDBException
getResourceCount in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public org.xmldb.api.base.Service getService(java.lang.String name,
java.lang.String version)
throws org.xmldb.api.base.XMLDBException
getService in interface org.xmldb.api.base.Collectionname - The name of the Serviceversion - The Service version
org.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public org.xmldb.api.base.Service[] getServices()
throws org.xmldb.api.base.XMLDBException
getServices in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public boolean isOpen()
throws org.xmldb.api.base.XMLDBException
isOpen in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public java.lang.String[] listChildCollections()
throws org.xmldb.api.base.XMLDBException
listChildCollections in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public java.lang.String[] listResources()
throws org.xmldb.api.base.XMLDBException
listResources in interface org.xmldb.api.base.Collectionorg.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public void removeResource(org.xmldb.api.base.Resource resource)
throws org.xmldb.api.base.XMLDBException
removeResource in interface org.xmldb.api.base.Collectionresource - The resource to remove.
org.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.
public void setProperty(java.lang.String str,
java.lang.String str1)
throws org.xmldb.api.base.XMLDBException
setProperty in interface org.xmldb.api.base.Configurablestr - Ignoredstr1 - Ignored.
org.xmldb.api.base.XMLDBException - as ErrorCodes.NOT_IMPLEMENTED
public void storeResource(org.xmldb.api.base.Resource resource)
throws org.xmldb.api.base.XMLDBException
storeResource in interface org.xmldb.api.base.Collectionresource - The resource to store.
org.xmldb.api.base.XMLDBException - All exception are caught and rethrown as one.public gov.noaa.gdsg.xmldbremote.Collection getCollectionTransport()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||