uk.ac.ic.doc.automed.wrappers
Class TransactSQLWrapper

java.lang.Object
  |
  +--uk.ac.ic.doc.automed.wrappers.AutoMedWrapper
        |
        +--uk.ac.ic.doc.automed.wrappers.SQLWrapper
              |
              +--uk.ac.ic.doc.automed.wrappers.TransactSQLWrapper

public class TransactSQLWrapper
extends SQLWrapper

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

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

Field Summary
 
Fields inherited from class uk.ac.ic.doc.automed.wrappers.SQLWrapper
OPTION_SCHEMA_NAME
 
Fields inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper
am, awf, debug, driver, password, protocol, s, url, username
 
Constructor Summary
TransactSQLWrapper(AccessMethod am, java.lang.String password)
          Generate a new wrapper instance from information held in the repository about how to access a data source.
 
Method Summary
protected  AutoMedWrapperFactory getDefaultWrapperFactory()
          Returns a new instance of the default wrapper factory for this wrapper
static AutoMedWrapper newAutoMedWrapper(java.lang.String username, java.lang.String password, java.lang.String driver, java.lang.String url, java.lang.String schemaName, AutoMedWrapperFactory awf)
          Create an AutoMed Schema containing SchemaObjects that represent a database, in such a form that queries on that schema can be mapped by executeQuery in the query lanuage of the database.
 
Methods inherited from class uk.ac.ic.doc.automed.wrappers.SQLWrapper
connect, executeIQL, executeLocalQuery, executeSQLQuery, getOptionKeys, getProtocolName
 
Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper
atDebugLevel, cacheWrapper, deleteIQL, getAccessMethod, getAutoMedWrapper, getAutoMedWrapper, getAutoMedWrapperFactory, 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
 

Constructor Detail

TransactSQLWrapper

public TransactSQLWrapper(AccessMethod am,
                          java.lang.String password)
                   throws DataSourceException
Generate a new wrapper instance from information held in the repository about how to access a data source. Note that a suitable access AccessMethod and Schema can be created using TransactSQLWrapperFactory#build

Method Detail

newAutoMedWrapper

public static AutoMedWrapper newAutoMedWrapper(java.lang.String username,
                                               java.lang.String password,
                                               java.lang.String driver,
                                               java.lang.String url,
                                               java.lang.String schemaName,
                                               AutoMedWrapperFactory awf)
                                        throws IntegrityException,
                                               DataSourceException
Create an AutoMed Schema containing SchemaObjects that represent a database, in such a form that queries on that schema can be mapped by executeQuery in the query lanuage of the database. This should be called once per database, so as to configure the repository. Subsequent uses of the database should call the constructor for TransactSQLWrapper with the AccessMethod of the TransactSQLWrapper returned here.

IntegrityException
DataSourceException

getDefaultWrapperFactory

protected AutoMedWrapperFactory getDefaultWrapperFactory()
Returns a new instance of the default wrapper factory for this wrapper

Specified by:
getDefaultWrapperFactory in class AutoMedWrapper