net.sf.nxqd.xmldb
Class NxqdCollection

java.lang.Object
  extended by net.sf.nxqd.xmldb.NxqdService
      extended by net.sf.nxqd.xmldb.NxqdCollection
All Implemented Interfaces:
Collection, Configurable, Service

public class NxqdCollection
extends NxqdService
implements Collection

Version:
1.0
Author:
webhiker
See Also:
Collection

Field Summary
static String CollectionManagementServiceTag
           
static String XPathQueryServiceTag
           
static String XQueryServiceTag
           
static String XUpdateQueryServiceTag
           
 
Fields inherited from class net.sf.nxqd.xmldb.NxqdService
NAME, VERSION
 
Method Summary
 void close()
           
 String createId()
           
 Resource createResource(String id, String type)
           
 boolean equals(Object o)
           
 Collection getChildCollection(String name)
           
 int getChildCollectionCount()
           
 Collection getParentCollection()
           
 Resource getResource(String id)
           
 int getResourceCount()
           
 Service getService(String name, String version)
           
 Service[] getServices()
           
 boolean isOpen()
           
 String[] listChildCollections()
           
 String[] listResources()
           
 void removeResource(Resource res)
           
 void storeResource(Resource res)
           
 
Methods inherited from class net.sf.nxqd.xmldb.NxqdService
getName, getProperty, getVersion, keys, removeProperty, setCollection, setProperty
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xmldb.api.base.Collection
getName
 
Methods inherited from interface org.xmldb.api.base.Configurable
getProperty, setProperty
 

Field Detail

CollectionManagementServiceTag

public static final String CollectionManagementServiceTag
See Also:
Constant Field Values

XPathQueryServiceTag

public static final String XPathQueryServiceTag
See Also:
Constant Field Values

XUpdateQueryServiceTag

public static final String XUpdateQueryServiceTag
See Also:
Constant Field Values

XQueryServiceTag

public static final String XQueryServiceTag
See Also:
Constant Field Values
Method Detail

getServices

public Service[] getServices()
                      throws XMLDBException
Specified by:
getServices in interface Collection
Throws:
XMLDBException
See Also:
Collection.getServices()

getService

public Service getService(String name,
                          String version)
                   throws XMLDBException
Specified by:
getService in interface Collection
Throws:
XMLDBException
See Also:
Collection.getService(java.lang.String, java.lang.String)

getParentCollection

public Collection getParentCollection()
                               throws XMLDBException
Specified by:
getParentCollection in interface Collection
Throws:
XMLDBException
See Also:
Collection.getParentCollection()

getChildCollectionCount

public int getChildCollectionCount()
                            throws XMLDBException
Specified by:
getChildCollectionCount in interface Collection
Throws:
XMLDBException
See Also:
Collection.getChildCollectionCount()

listChildCollections

public String[] listChildCollections()
                              throws XMLDBException
Specified by:
listChildCollections in interface Collection
Throws:
XMLDBException
See Also:
Collection.listChildCollections()

getChildCollection

public Collection getChildCollection(String name)
                              throws XMLDBException
Specified by:
getChildCollection in interface Collection
Throws:
XMLDBException
See Also:
Collection.getChildCollection(java.lang.String)

getResourceCount

public int getResourceCount()
                     throws XMLDBException
Specified by:
getResourceCount in interface Collection
Throws:
XMLDBException
See Also:
Collection.getResourceCount()

listResources

public String[] listResources()
                       throws XMLDBException
Specified by:
listResources in interface Collection
Throws:
XMLDBException
See Also:
Collection.listResources()

createResource

public Resource createResource(String id,
                               String type)
                        throws XMLDBException
Specified by:
createResource in interface Collection
Throws:
XMLDBException
See Also:
Collection.createResource(java.lang.String, java.lang.String)

removeResource

public void removeResource(Resource res)
                    throws XMLDBException
Specified by:
removeResource in interface Collection
Throws:
XMLDBException
See Also:
Collection.removeResource(org.xmldb.api.base.Resource)

storeResource

public void storeResource(Resource res)
                   throws XMLDBException
Specified by:
storeResource in interface Collection
Throws:
XMLDBException
See Also:
Collection.storeResource(org.xmldb.api.base.Resource)

getResource

public Resource getResource(String id)
                     throws XMLDBException
Specified by:
getResource in interface Collection
Throws:
XMLDBException
See Also:
Collection.getResource(java.lang.String)

createId

public String createId()
                throws XMLDBException
Specified by:
createId in interface Collection
Throws:
XMLDBException
See Also:
Collection.createId()

isOpen

public boolean isOpen()
               throws XMLDBException
Specified by:
isOpen in interface Collection
Throws:
XMLDBException
See Also:
Collection.isOpen()

close

public void close()
           throws XMLDBException
Specified by:
close in interface Collection
Throws:
XMLDBException
See Also:
Collection.close()

equals

public boolean equals(Object o)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)


Copyright © 2005-2006 nxqd. All Rights Reserved.