uk.ac.bbk.dcs.automed.hdmstore
Class HdmWrapperFactory
java.lang.Object
|
+--uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory
|
+--uk.ac.bbk.dcs.automed.hdmstore.HdmWrapperFactory
- public class HdmWrapperFactory
- extends AutoMedWrapperFactory
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HdmWrapperFactory
public HdmWrapperFactory()
build
public HdmWrapper build(java.lang.String schemaName)
throws IntegrityException,
DataSourceException
IntegrityException
DataSourceException
getModel
public Model getModel()
- Description copied from class:
AutoMedWrapperFactory
- Return the source oriented
Model used to represent the
Schema of the datasource. For some wrappers, this may be
the same as AutoMed oriented Model returned by
AutoMedWrapperFactory.getAutoMedModel()
- Specified by:
getModel in class AutoMedWrapperFactory
getAutoMedModel
public Model getAutoMedModel()
- Description copied from class:
AutoMedWrapperFactory
- Return the AutoMed oriented
Model used to represent the
Schema of the datasource.
- Specified by:
getAutoMedModel in class AutoMedWrapperFactory
populateSchema
protected void populateSchema(AutoMedWrapper arg0)
throws DataSourceException
- Description copied from class:
AutoMedWrapperFactory
- Read the metadata from the wrapper connection, and store in
existing Schema within the wrapper. To be called by
AutoMedWrapper
instances as part of the wrapper creation process.
- Specified by:
populateSchema in class AutoMedWrapperFactory
DataSourceException
createAutoMedSchema
public Schema createAutoMedSchema(AutoMedWrapper arg0,
java.lang.String arg1)
throws IntegrityException,
NotFoundException
- Description copied from class:
AutoMedWrapperFactory
- Create an AutoMed oriented schema from the source
oriented schema.
- Specified by:
createAutoMedSchema in class AutoMedWrapperFactory
- Parameters:
arg0 - A wrapper containing the source oriented Schema from which the AutoMed oriented Schema should be
produced.arg1 - name of the new AutoMed construct oriented schema
that is to be created from the source oriented schema. This schema must
not yet exist.
- Throws:
NotFoundException - if you have not previously wrapped the
datasource as a source oriented schema, using either #AutoMedWrapper.getSchema(String) or #AutoMedWrapper.selectNewAutoMedWrapper
IntegrityException - if schemaName already exists.