|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory
uk.ac.ic.doc.automed.wrappers.P2PWrapperFactory
public class P2PWrapperFactory
A wrapper factory for P2P communication with other AutoMed repositories
Field Summary |
---|
Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory |
---|
automedModelName, baseName, empty, factoryInUse, modelName, SOURCE_PREFIX |
Constructor Summary | |
---|---|
P2PWrapperFactory()
|
Method Summary | |
---|---|
Schema |
createAutoMedSchema(AutoMedWrapper wrapper,
java.lang.String schemaName)
Create an AutoMed oriented schema from the source oriented schema. |
protected void |
createTypeHierarchy()
|
Model |
getAutoMedModel()
Always the same as getModel() for the P2PWrapperFactory. |
java.lang.String[] |
getFeatureNames()
Return the list of feature names provided by the wrapper factory. |
Model |
getModel()
Broken!! Until the P2P protocol package supports transfer of models this (incorrectly) returns null. |
protected AutoMedWrapper |
newAutoMedWrapper()
Create a new empty wrapper instance that this wrapper factory is then able to populate. |
protected void |
populateSchema(AutoMedWrapper wrapper)
Edited by Duc Le on 13/11/2005 to populate objects into a Schema object It uses SchemaGetter to do the task. |
Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory |
---|
clearFeatures, getAttributeDomains, getAutoMedModelName, getFeatures, getModelBaseName, getModelName, isFeatureInUse, safeIQL, setAttributeDomains, setFeatures, setFeatures, setModelBaseName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public P2PWrapperFactory()
Method Detail |
---|
protected void createTypeHierarchy() throws AutoMedException
AutoMedException
public java.lang.String[] getFeatureNames()
AutoMedWrapperFactory
#setFeature
methods. In particular you may use the list
on javax.swing.JList#setListData()
getFeatureNames
in class AutoMedWrapperFactory
public Model getModel()
getModel
in class AutoMedWrapperFactory
public Model getAutoMedModel()
getModel()
for the P2PWrapperFactory.
getAutoMedModel
in class AutoMedWrapperFactory
protected void populateSchema(AutoMedWrapper wrapper) throws DataSourceException
Schema
object SchemaGetter
to do the task.
populateSchema
in class AutoMedWrapperFactory
DataSourceException
public Schema createAutoMedSchema(AutoMedWrapper wrapper, java.lang.String schemaName) throws IntegrityException, NotFoundException
AutoMedWrapperFactory
createAutoMedSchema
in class AutoMedWrapperFactory
wrapper
- A wrapper containing the source oriented Schema
from which the AutoMed oriented Schema should be
produced.schemaName
- name of the new AutoMed construct oriented schema
that is to be created from the source oriented schema. This schema must
not yet exist.
IntegrityException
- if schemaName already exists.
NotFoundException
- if you have not previously wrapped the
datasource as a source oriented schema, using either #AutoMedWrapper.getSchema(String)
or #AutoMedWrapper.selectNewAutoMedWrapper
protected AutoMedWrapper newAutoMedWrapper()
AutoMedWrapperFactory
newAutoMedWrapper
in class AutoMedWrapperFactory
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |