|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.sixdml.excelon.xlnServiceBase
|
+--org.sixdml.excelon.xlnSixdmlCollectionManagementService
xlnSixdmlCollectionManagementService.java Manages the creation and deletion of collections in the database. Created: Mon Jan 14 22:58:23 2002
| Field Summary | |
private org.sixdml.excelon.xlnSixdmlCollection |
collection
The underlying collection object that provides the context for this service. |
| Fields inherited from class org.sixdml.excelon.xlnServiceBase |
properties |
| Fields inherited from interface org.sixdml.SixdmlConstants |
SIXDML_NS, SIXDML_VERSION |
| Constructor Summary | |
private |
xlnSixdmlCollectionManagementService()
Default constructor private because an instance of this class must always be instantiated with an underlying eXcelon DXE Session object. |
(package private) |
xlnSixdmlCollectionManagementService(org.sixdml.excelon.xlnSixdmlCollection collection)
Initializes the service. |
| Method Summary | |
Collection |
createCollection(String name)
Creates a new Collection in the database. |
Collection |
createCollection(String name,
URL schemaFile)
Creates a collection that is constrained by a particular schema. |
String |
getName()
Gets the name of the service. |
static void |
main(String[] args)
Main used for testing class. |
void |
removeCollection(String name)
Removes a collection from the database. |
| Methods inherited from class org.sixdml.excelon.xlnServiceBase |
getProperty, getVersion, setCollection, setProperty |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xmldb.api.base.Service |
getVersion, setCollection |
| Methods inherited from interface org.xmldb.api.base.Configurable |
getProperty, setProperty |
| Field Detail |
private org.sixdml.excelon.xlnSixdmlCollection collection
| Constructor Detail |
private xlnSixdmlCollectionManagementService()
xlnSixdmlCollectionManagementService(org.sixdml.excelon.xlnSixdmlCollection collection)
collection - the collection associated with this object.| Method Detail |
public Collection createCollection(String name)
throws XMLDBException
createCollection in interface CollectionManagementServicename - The name of the collection to create.
XMLDBException - if the collection already exists or
one of the collections in the path given does not exist.ErrorCodes.NO_SUCH_COLLECTION,
ErrorMessages.DUPLICATE_COLLECTION
public Collection createCollection(String name,
URL schemaFile)
throws XMLDBException,
IOException,
InvalidSchemaException
createCollection in interface SixdmlCollectionManagementServicename - The name of the collection to create.schemaFile - the location of the schema file either on the local file
system or over the internet.
XMLDBException - if the collection already exists or
one of the collections in the path given does not exist.
IOException - if an error occurs while trying to retrieve the file.
InvalidSchemaException - if the schema is invalid.ErrorCodes.NO_SUCH_COLLECTION,
ErrorMessages.DUPLICATE_COLLECTION
public void removeCollection(String name)
throws XMLDBException
removeCollection in interface CollectionManagementServicename - The name of the collection to delete.
XMLDBException - if the path is invalid.ErrorCodes.NO_SUCH_COLLECTIONpublic String getName()
getName in interface ServicegetName in class xlnServiceBase
public static void main(String[] args)
throws Exception
args - IGNORED
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||