org.sixdml.excelon
Class xlnSixdmlCollectionManagementService
java.lang.Object
|
+--org.sixdml.excelon.xlnServiceBase
|
+--org.sixdml.excelon.xlnSixdmlCollectionManagementService
- All Implemented Interfaces:
- org.xmldb.api.modules.CollectionManagementService, org.xmldb.api.base.Configurable, org.xmldb.api.base.Service, org.sixdml.dbmanagement.SixdmlCollectionManagementService, org.sixdml.SixdmlConstants
- public class xlnSixdmlCollectionManagementService
- extends xlnServiceBase
- implements org.sixdml.dbmanagement.SixdmlCollectionManagementService, org.sixdml.SixdmlConstants
xlnSixdmlCollectionManagementService.java
Manages the creation and deletion of collections in the database.
Created: Mon Jan 14 22:58:23 2002
| Fields inherited from interface org.sixdml.SixdmlConstants |
SIXDML_NS, SIXDML_VERSION |
|
Method Summary |
org.xmldb.api.base.Collection |
createCollection(java.lang.String name)
Creates a new Collection in the database. |
org.xmldb.api.base.Collection |
createCollection(java.lang.String name,
java.net.URL schemaFile)
Creates a collection that is constrained by a particular schema. |
java.lang.String |
getName()
Gets the name of the service. |
static void |
main(java.lang.String[] args)
Main used for testing class. |
void |
removeCollection(java.lang.String name)
Removes a collection from the database. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.sixdml.dbmanagement.SixdmlCollectionManagementService |
createIndex, getSupportedIndexTypes |
| Methods inherited from interface org.xmldb.api.base.Service |
getVersion, setCollection |
| Methods inherited from interface org.xmldb.api.base.Configurable |
getProperty, setProperty |
createCollection
public org.xmldb.api.base.Collection createCollection(java.lang.String name)
throws org.xmldb.api.base.XMLDBException
- Creates a new Collection in the database.
- Specified by:
createCollection in interface org.xmldb.api.modules.CollectionManagementService
- Parameters:
name - The name of the collection to create.- Returns:
- The created Collection instance.
- Throws:
org.xmldb.api.base.XMLDBException - if the collection already exists or
one of the collections in the path given does not exist.- See Also:
ErrorCodes.NO_SUCH_COLLECTION,
ErrorMessages.DUPLICATE_COLLECTION
createCollection
public org.xmldb.api.base.Collection createCollection(java.lang.String name,
java.net.URL schemaFile)
throws org.xmldb.api.base.XMLDBException,
java.io.IOException,
org.sixdml.exceptions.InvalidSchemaException
- Creates a collection that is constrained by a particular schema.
- Specified by:
createCollection in interface org.sixdml.dbmanagement.SixdmlCollectionManagementService
- Parameters:
name - The name of the collection to create.schemaFile - the location of the schema file either on the local file
system or over the internet.- Throws:
org.xmldb.api.base.XMLDBException - if the collection already exists or
one of the collections in the path given does not exist.java.io.IOException - if an error occurs while trying to retrieve the file.org.sixdml.exceptions.InvalidSchemaException - if the schema is invalid.- See Also:
ErrorCodes.NO_SUCH_COLLECTION,
ErrorMessages.DUPLICATE_COLLECTION
removeCollection
public void removeCollection(java.lang.String name)
throws org.xmldb.api.base.XMLDBException
- Removes a collection from the database.
- Specified by:
removeCollection in interface org.xmldb.api.modules.CollectionManagementService
- Parameters:
name - The name of the collection to delete.- Throws:
org.xmldb.api.base.XMLDBException - if the path is invalid.- See Also:
ErrorCodes.NO_SUCH_COLLECTION
getName
public java.lang.String getName()
- Gets the name of the service.
- Specified by:
getName in interface org.xmldb.api.base.Service- Overrides:
getName in class xlnServiceBase
- Returns:
- the name of the service.
main
public static void main(java.lang.String[] args)
throws java.lang.Exception
- Main used for testing class.
- Parameters:
args - IGNORED