uk.ac.bbk.dcs.automed.wrappers
Class MSAccessWrapperFactory

java.lang.Object
  extended by uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory
      extended by uk.ac.ic.doc.automed.wrappers.SQLWrapperFactory
          extended by uk.ac.bbk.dcs.automed.wrappers.MSAccessWrapperFactory

public class MSAccessWrapperFactory
extends SQLWrapperFactory

A lower level wrapper factory for Postgres SQL databases conforming to the AutoMed SQL high level wrapper factory.

Author:
Peter McBrien (pjm@doc.ic.ac.uk)

Field Summary
 
Fields inherited from class uk.ac.ic.doc.automed.wrappers.SQLWrapperFactory
automed, AUTOMED_SQL_MODEL_COLUMN, AUTOMED_SQL_MODEL_FOREIGN_KEY, AUTOMED_SQL_MODEL_INDEX, AUTOMED_SQL_MODEL_NOTNULL_CONSTRAINT, AUTOMED_SQL_MODEL_PRIMARY_KEY, AUTOMED_SQL_MODEL_TABLE, COLUMN_POSITION, DATA_SIZE, DATA_TYPE, FOREIGN_KEY, INDEX, justTableName, NONSCALAR_COMPOUND_KEY, NULL_CONSTRAINT, primary_key, PRIMARY_KEY, ROOT_TYPE_NAME, SCHEMA_AWARE, SCHEMA_MERGING, source_background_colour, sql, SQL_MODEL_FOREIGN_KEY, SQL_MODEL_INDEX, SQL_MODEL_PRIMARY_KEY, SQL_MODEL_TABLE, table, tableSchemeLength
 
Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory
automedModelName, baseName, empty, factoryInUse, modelName, SOURCE_PREFIX
 
Constructor Summary
MSAccessWrapperFactory()
           
 
Method Summary
 java.lang.String getDefaultSchemaName(AutoMedWrapper wrapper)
          Return the name of the default schema for the type of database being wrapped.
protected  AutoMedWrapper newAutoMedWrapper()
          Create a new empty wrapper instance that this wrapper factory is then able to populate.
protected  void populateSchema(AutoMedWrapper wrapper)
          Read the metadata from the wrapper connection, and store in existing Schema within the wrapper.
 
Methods inherited from class uk.ac.ic.doc.automed.wrappers.SQLWrapperFactory
createAutoMedModel, createAutoMedSchema, createModel, getAutoMedModel, getColumnDetailsSchemeLength, getFeatureNames, getModel, getSQLTableReference, getTableDetailsSchemeLength, setFeatures
 
Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory
clearFeatures, getAttributeDomains, getAutoMedModelName, getFeatures, getModelBaseName, getModelName, isFeatureInUse, safeIQL, setAttributeDomains, setFeatures, setModelBaseName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MSAccessWrapperFactory

public MSAccessWrapperFactory()
Method Detail

getDefaultSchemaName

public java.lang.String getDefaultSchemaName(AutoMedWrapper wrapper)
Description copied from class: SQLWrapperFactory
Return the name of the default schema for the type of database being wrapped.

Overrides:
getDefaultSchemaName in class SQLWrapperFactory

newAutoMedWrapper

protected AutoMedWrapper newAutoMedWrapper()
Description copied from class: AutoMedWrapperFactory
Create a new empty wrapper instance that this wrapper factory is then able to populate.

Overrides:
newAutoMedWrapper in class SQLWrapperFactory

populateSchema

protected void populateSchema(AutoMedWrapper wrapper)
                       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.

Overrides:
populateSchema in class SQLWrapperFactory
Throws:
DataSourceException