org.sixdml.dbmanagement
Interface SixdmlCollectionManagementService

All Superinterfaces:
CollectionManagementService, Configurable, Service
All Known Implementing Classes:
xlnSixdmlCollectionManagementService

public interface SixdmlCollectionManagementService
extends CollectionManagementService

 SixdmlCollectionManagementService.java

 This is a Service that enables the basic management of collections within a 
 database. 

 Created: Fri Jan 11 01:07:58 2002
 

Version:
1.0
Author:
Dare Obasanjo

Method Summary
 Collection createCollection(String name, URL schemaFile)
          Creates a collection that is constrained by a particular schema.
 
Methods inherited from interface org.xmldb.api.modules.CollectionManagementService
createCollection, removeCollection
 
Methods inherited from interface org.xmldb.api.base.Service
getName, getVersion, setCollection
 
Methods inherited from interface org.xmldb.api.base.Configurable
getProperty, setProperty
 

Method Detail

createCollection

public Collection createCollection(String name,
                                   URL schemaFile)
                            throws XMLDBException,
                                   IOException,
                                   InvalidSchemaException
Creates a collection that is constrained by a particular schema.

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:
XMLDBException - if a database error occurs.
IOException - if an error occurs while trying to retrieve the file.
InvalidSchemaException - if the schema is invalid.