org.objectweb.medor.datasource.api
Interface WrapperFactory
- MedorWrapperFactory
public interface WrapperFactory
A WrapperFactory is called at evaluation time by the QueryEvaluator when
reaching a QueryLeaf. The WrapperFactory generates the appropriate
Wrapper for the QueryLeaf.
It maintains its pool of Wrappers.
- Sebastien Chassande-Barrioz
bindDataStoreToWrapper
public void bindDataStoreToWrapper(short dataStoreType,
java.lang.Class wrapperClass)
throws DataSourceException
For a given data store type, associates a Wrapper class.
This will be used by the evaluator to associate the right Wrapper to
each query leaf (data store).
The Wrapper class must have an empty constructor (because it is
instanciated using newInstance).
dataStoreType
- is the type of data store
(DataStore.getDataStoreType())wrapperClass
- is the java Class for the associated Wrapper.