|
||||||||
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.QueryCacheWrapperFactory
public class QueryCacheWrapperFactory
A high-level wrapper factory for creating QueryCacheWrapper
instances.
We consider a query cache as an SQL data source.
Field Summary | |
---|---|
private Model |
cacheModel
|
private Construct |
citem
|
Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory |
---|
modelDef |
Constructor Summary | |
---|---|
QueryCacheWrapperFactory()
|
Method Summary | |
---|---|
Schema |
createAutoMedSchema(AutoMedWrapper wrapper,
java.lang.String schemaName)
Create a new AutoMed-oriented schema for the cache by summarising the BAV rules of all distinct schema objects used in the materialised views |
Model |
getAutoMedModel()
Return the AutoMed oriented Model used to represent the
Schema of the datasource. |
Model |
getModel()
Return the source oriented Model used to represent the
Schema of the datasource. |
protected AutoMedWrapper |
newAutoMedWrapper()
Return a new instance of the QueryCacheWrapper |
protected void |
populateSchema(AutoMedWrapper wrapper)
Nothing done here |
Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapperFactory |
---|
createSchema, getAttributeDomains, getModelDefinition, safeIQL, setAttributeDomains, setModelDefinition |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private Model cacheModel
private Construct citem
Constructor Detail |
---|
public QueryCacheWrapperFactory()
Method Detail |
---|
protected void populateSchema(AutoMedWrapper wrapper) throws DataSourceException
populateSchema
in class AutoMedWrapperFactory
DataSourceException
public Schema createAutoMedSchema(AutoMedWrapper wrapper, java.lang.String schemaName) throws IntegrityException, NotFoundException
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()
QueryCacheWrapper
newAutoMedWrapper
in class AutoMedWrapperFactory
public Model getModel()
Model
used to represent the
Schema
of the datasource. For some wrappers, this may be
the same as AutoMed oriented Model
returned by
getAutoMedModel()
getModel
in class AutoMedWrapperFactory
public Model getAutoMedModel()
Model
used to represent the
Schema
of the datasource.
getAutoMedModel
in class AutoMedWrapperFactory
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |