uk.co.lakesidetech.springxmldb.connectionpool
Class DelegatingCollection
java.lang.Object
uk.co.lakesidetech.springxmldb.connectionpool.DelegatingCollection
- All Implemented Interfaces:
- org.xmldb.api.base.Collection, org.xmldb.api.base.Configurable
- Direct Known Subclasses:
- PoolableCollection
- public class DelegatingCollection
- extends java.lang.Object
- implements org.xmldb.api.base.Collection
The DelegatingCollection
implements a XML:DB collection which
delegates to an underlying connection object supplied in the constructor
- Author:
- Stuart Eccles
Field Summary |
protected org.xmldb.api.base.Collection |
collection
the underlying collection |
Constructor Summary |
DelegatingCollection(org.xmldb.api.base.Collection collection)
create a delegating collection using an underlying collection |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
collection
protected org.xmldb.api.base.Collection collection
- the underlying collection
DelegatingCollection
public DelegatingCollection(org.xmldb.api.base.Collection collection)
- create a delegating collection using an underlying collection
getDelegate
public org.xmldb.api.base.Collection getDelegate()
- Returns:
- Returns the collection.
setDelegate
public void setDelegate(org.xmldb.api.base.Collection collection)
- Parameters:
collection
- The collection to set.
close
public void close()
throws org.xmldb.api.base.XMLDBException
- Specified by:
close
in interface org.xmldb.api.base.Collection
- Throws:
org.xmldb.api.base.XMLDBException
createId
public java.lang.String createId()
throws org.xmldb.api.base.XMLDBException
- Specified by:
createId
in interface org.xmldb.api.base.Collection
- Returns:
-
- Throws:
org.xmldb.api.base.XMLDBException
createResource
public org.xmldb.api.base.Resource createResource(java.lang.String arg0,
java.lang.String arg1)
throws org.xmldb.api.base.XMLDBException
- Specified by:
createResource
in interface org.xmldb.api.base.Collection
- Parameters:
arg0
- arg1
-
- Returns:
-
- Throws:
org.xmldb.api.base.XMLDBException
equals
public boolean equals(java.lang.Object arg0)
getChildCollection
public org.xmldb.api.base.Collection getChildCollection(java.lang.String arg0)
throws org.xmldb.api.base.XMLDBException
- Specified by:
getChildCollection
in interface org.xmldb.api.base.Collection
- Parameters:
arg0
-
- Returns:
-
- Throws:
org.xmldb.api.base.XMLDBException
getChildCollectionCount
public int getChildCollectionCount()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getChildCollectionCount
in interface org.xmldb.api.base.Collection
- Returns:
-
- Throws:
org.xmldb.api.base.XMLDBException
getName
public java.lang.String getName()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getName
in interface org.xmldb.api.base.Collection
- Returns:
-
- Throws:
org.xmldb.api.base.XMLDBException
getParentCollection
public org.xmldb.api.base.Collection getParentCollection()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getParentCollection
in interface org.xmldb.api.base.Collection
- Returns:
-
- Throws:
org.xmldb.api.base.XMLDBException
getProperty
public java.lang.String getProperty(java.lang.String arg0)
throws org.xmldb.api.base.XMLDBException
- Specified by:
getProperty
in interface org.xmldb.api.base.Configurable
- Parameters:
arg0
-
- Returns:
-
- Throws:
org.xmldb.api.base.XMLDBException
getResource
public org.xmldb.api.base.Resource getResource(java.lang.String arg0)
throws org.xmldb.api.base.XMLDBException
- Specified by:
getResource
in interface org.xmldb.api.base.Collection
- Parameters:
arg0
-
- Returns:
-
- Throws:
org.xmldb.api.base.XMLDBException
getResourceCount
public int getResourceCount()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getResourceCount
in interface org.xmldb.api.base.Collection
- Returns:
-
- Throws:
org.xmldb.api.base.XMLDBException
getService
public org.xmldb.api.base.Service getService(java.lang.String arg0,
java.lang.String arg1)
throws org.xmldb.api.base.XMLDBException
- Specified by:
getService
in interface org.xmldb.api.base.Collection
- Parameters:
arg0
- arg1
-
- Returns:
-
- Throws:
org.xmldb.api.base.XMLDBException
getServices
public org.xmldb.api.base.Service[] getServices()
throws org.xmldb.api.base.XMLDBException
- Specified by:
getServices
in interface org.xmldb.api.base.Collection
- Returns:
-
- Throws:
org.xmldb.api.base.XMLDBException
hashCode
public int hashCode()
isOpen
public boolean isOpen()
throws org.xmldb.api.base.XMLDBException
- Specified by:
isOpen
in interface org.xmldb.api.base.Collection
- Returns:
-
- Throws:
org.xmldb.api.base.XMLDBException
listChildCollections
public java.lang.String[] listChildCollections()
throws org.xmldb.api.base.XMLDBException
- Specified by:
listChildCollections
in interface org.xmldb.api.base.Collection
- Returns:
-
- Throws:
org.xmldb.api.base.XMLDBException
listResources
public java.lang.String[] listResources()
throws org.xmldb.api.base.XMLDBException
- Specified by:
listResources
in interface org.xmldb.api.base.Collection
- Returns:
-
- Throws:
org.xmldb.api.base.XMLDBException
removeResource
public void removeResource(org.xmldb.api.base.Resource arg0)
throws org.xmldb.api.base.XMLDBException
- Specified by:
removeResource
in interface org.xmldb.api.base.Collection
- Parameters:
arg0
-
- Throws:
org.xmldb.api.base.XMLDBException
setProperty
public void setProperty(java.lang.String arg0,
java.lang.String arg1)
throws org.xmldb.api.base.XMLDBException
- Specified by:
setProperty
in interface org.xmldb.api.base.Configurable
- Parameters:
arg0
- arg1
-
- Throws:
org.xmldb.api.base.XMLDBException
storeResource
public void storeResource(org.xmldb.api.base.Resource arg0)
throws org.xmldb.api.base.XMLDBException
- Specified by:
storeResource
in interface org.xmldb.api.base.Collection
- Parameters:
arg0
-
- Throws:
org.xmldb.api.base.XMLDBException
toString
public java.lang.String toString()