|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectuk.ac.ic.doc.automed.wrappers.AutoMedWrapper
uk.ac.bbk.dcs.automed.hdmstore.HdmWrapper
public class HdmWrapper
A Wrapper for the HDM data store.
| Field Summary |
|---|
| Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper |
|---|
am, awf, debug, driver, emptyKeyProtection, emptyKeys, optionKeyProtection, optionKeys, password, protocol, s, url, username |
| Constructor Summary | |
|---|---|
HdmWrapper(AccessMethod am,
java.lang.String password)
|
|
| Method Summary | |
|---|---|
protected void |
connect()
Use the connection details held with this wrapper to connect to the data source. |
boolean |
deleteIQL(ASG q)
Take the query and attempt to insert each of the values in the list into the database. |
ASG |
executeIQL(ASG queryASG)
Takes ASG query and passes it to a LowLevelWrapperHdm
for processing. |
AutoMedResult |
executeLocalQuery(AutoMedQuery arg0)
This is a stub required as the AutoMedWrapper requires it |
protected AutoMedWrapperFactory |
getDefaultWrapperFactory()
Returns a new instance of the default wrapper factory for this wrapper |
java.lang.String |
getProtocolName()
The name of the Protocol in the
repository used to represent
the HDM store. |
void |
getSODefinition(QuerySubGoal qsg)
Implement AutoMedWrapper abstract method |
boolean |
insertIQL(ASG q)
Take the query and attempt to insert each of the values in the list into the database. |
void |
setHdmStore(HdmStore pHdmStore)
Set the HdmStore that this wrapper will use |
void |
setSchema(java.lang.String schemaName)
Set the value of the schema that this wrapper is for |
boolean |
validQuery(ASG q)
check that the given ASG is a valid query |
| Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper |
|---|
atDebugLevel, cacheWrapper, executeIQL, getAccessMethod, getAutoMedWrapper, getAutoMedWrapper, getAutoMedWrapperFactory, getDrivers, getOption, getOptionKeyProtection, getOptionKeys, getProtocol, getQueryCache, getQueryCache, getQueryParser, getSchema, getSchema, getSODefinition, newAutoMedSchema, newAutoMedWrapper, newAutoMedWrapper, newAutoMedWrapper, registerWrapper, selectNewAutoMedWrapper, selectNewAutoMedWrapper, setDebugLevel, setOption, updateCache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HdmWrapper(AccessMethod am,
java.lang.String password)
throws DataSourceException
DataSourceException| Method Detail |
|---|
protected void connect()
AutoMedWrapper
connect in class AutoMedWrapper
public ASG executeIQL(ASG queryASG)
throws DataSourceException
ASG query and passes it to a LowLevelWrapperHdm
for processing.
executeIQL in class AutoMedWrapperqueryASG - An IQL query held in an ASG which complies with
the limitations of what this wrapper is able to process
ASG containing the results of the query
DataSourceException
public AutoMedResult executeLocalQuery(AutoMedQuery arg0)
throws DataSourceException
executeLocalQuery in class AutoMedWrapperDataSourceExceptionpublic void setHdmStore(HdmStore pHdmStore)
public void setSchema(java.lang.String schemaName)
public boolean insertIQL(ASG q)
throws DataSourceException
insertIQL in class AutoMedWrapperq - is the ASG representation of an IQL
query of the form
sub [t1, ..., tn] s
where:The semantics and execution of the insert request will depend on the data source e.g. for a relational database it could be translated into a series of INSERT requests within a single transaction, which may fail or succeeed as a whole (and thus return False or True respectively from the insertIQL method). For a non-transactional repository like the HDM or XML flat files, we may choose to allow partial updates e.g. some of a set of tuples are inserted, while some already exist or violate some constraint or another.
DataSourceException
public boolean deleteIQL(ASG q)
throws DataSourceException
deleteIQL in class AutoMedWrapperDataSourceExceptionpublic boolean validQuery(ASG q)
protected AutoMedWrapperFactory getDefaultWrapperFactory()
getDefaultWrapperFactory in class AutoMedWrapperpublic java.lang.String getProtocolName()
Protocol in the
repository used to represent
the HDM store.
getProtocolName in class AutoMedWrapper
public void getSODefinition(QuerySubGoal qsg)
throws DataSourceException
getSODefinition in class AutoMedWrapperDataSourceException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||