|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--uk.ac.ic.doc.automed.wrappers.AutoMedWrapper
|
+--uk.ac.ic.doc.automed.wrappers.SQLWrapper
An AutoMed high wrapper for connecting to SQL databases that have a JBDC driver. Note that specific lower level wrapper must be instantiated in order to use a particular database.
| Field Summary | |
static java.lang.String |
OPTION_SCHEMA_NAME
An option key setting, the value of which should be the SQL schema which is the only one to be mapped in this wrapping |
| Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper |
am, awf, debug, driver, password, protocol, s, url, username |
| Constructor Summary | |
SQLWrapper()
|
|
| Method Summary | |
protected void |
connect()
Connect to a JDBC database in the standard way. |
ASG |
executeIQL(ASG q)
Execute an IQL query on the datasource. |
AutoMedResult |
executeLocalQuery(AutoMedQuery q)
Execute a query in the datasource's native query language, and obtain a result in an AutoMedResult class |
SQLResult |
executeSQLQuery(SQLQuery q)
Execute a query on the data source, returning the result in the standard format for instances of SQL queries. |
java.lang.String[] |
getOptionKeys()
Return the list of option setting key provided by the wrapper. |
java.lang.String |
getProtocolName()
The name of the Protocol in the repository used to represent
JDBC connections. |
| Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper |
atDebugLevel, cacheWrapper, deleteIQL, getAccessMethod, getAutoMedWrapper, getAutoMedWrapper, getAutoMedWrapperFactory, getDefaultWrapperFactory, getOption, getProtocol, getSchema, getSchema, insertIQL, newAutoMedSchema, newAutoMedWrapper, newAutoMedWrapper, registerWrapper, selectNewAutoMedWrapper, selectNewAutoMedWrapper, setDebugLevel, setOption |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String OPTION_SCHEMA_NAME
| Constructor Detail |
public SQLWrapper()
| Method Detail |
public java.lang.String getProtocolName()
Protocol in the repository used to represent
JDBC connections.
getProtocolName in class AutoMedWrapper
public ASG executeIQL(ASG q)
throws DataSourceException
AutoMedWrapper
executeIQL in class AutoMedWrapperq - 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 q)
throws DataSourceException
AutoMedWrapper
executeLocalQuery in class AutoMedWrapperDataSourceException
protected void connect()
throws DataSourceException
connect in class AutoMedWrapperDataSourceException - if unable to connect to the data source
public SQLResult executeSQLQuery(SQLQuery q)
throws DataSourceException
DataSourceExceptionpublic java.lang.String[] getOptionKeys()
getOptionKeys in class AutoMedWrapper
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||