SQLWrapper
Keywords: uk.ac.ic.doc.automed.wrappers.SQLWrapper,SQLWrapper class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uk.ac.ic.doc.automed.wrappers
Class SQLWrapper

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

Direct Known Subclasses:
  PostgresWrapper

public abstract class SQLWrapper
extends AutoMedWrapper

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.

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

Field Summary
`static java.lang.String` | `JDBC_PROTOCOL_NAME` The name of the `Protocol` in the repository used to represent JDBC connections.

Constructor Summary
`SQLWrapper()`

Method Summary
`ASG` | `executeIQL(ASG q)` Execute an IQL query on the datasource.
`AutoMedResult` | `executeLocalQuery(AutoMedQuery q)`
`abstract SQLResult` | `executeSQLQuery(SQLQuery q)`

Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper
`atDebugLevel, getAccessMethod, getAutoMedWrapper, getSchema, setDebugLevel`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### JDBC_PROTOCOL_NAME

    public static final java.lang.String JDBC_PROTOCOL_NAME

  The name of the `Protocol` in the repository used to represent JDBC connections.

  See Also:
    Constant Field Values

Constructor Detail

### SQLWrapper

    public SQLWrapper()

Method Detail

### executeIQL

    public ASG executeIQL(ASG q)
                   throws DataSourceException

  Execute an IQL query on the datasource.

  Specified by:
    `executeIQL` in class `AutoMedWrapper`
  Parameters:
    `q` - An IQL query held in an `ASG` which complies with the limitations of what this wrapper is able to process
  Returns:
    An `ASG` containing the results of the query
    `DataSourceException`

### executeSQLQuery

    public abstract SQLResult executeSQLQuery(SQLQuery q)
                                       throws DataSourceException

    `DataSourceException`

### executeLocalQuery

    public AutoMedResult executeLocalQuery(AutoMedQuery q)
                                    throws DataSourceException

  Specified by:
    `executeLocalQuery` in class `AutoMedWrapper`
    `DataSourceException`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD