PostgresWrapper
Keywords: uk.ac.ic.doc.automed.wrappers.PostgresWrapper 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 PostgresWrapper

    java.lang.Object
      uk.ac.ic.doc.automed.wrappers.AutoMedWrapper
          uk.ac.ic.doc.automed.wrappers.SQLWrapper
              uk.ac.ic.doc.automed.wrappers.PostgresWrapper

    public class PostgresWrapper

extends SQLWrapper

A lower level wrapper for the conforming to the AutoMed SQL high level wrapper for Postgres 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, emptyKeyProtection, emptyKeys, optionKeyProtection, optionKeys, password, protocol, s, url, username`

Constructor Summary
`PostgresWrapper()`
`PostgresWrapper(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
`java.lang.String` | `escapedSQLID(java.lang.Object o)` Ensure that Postgres table names and column names starting in capitals are put in double quotes
`protected AutoMedWrapperFactory` | `getDefaultWrapperFactory()` Returns a new instance of the default wrapper factory for this wrapper

Methods inherited from class uk.ac.ic.doc.automed.wrappers.SQLWrapper
`connect, executeIQL, executeLocalQuery, executeSQLQuery, getProtocolName, getQueryParser`

Methods inherited from class uk.ac.ic.doc.automed.wrappers.AutoMedWrapper
`atDebugLevel, cacheWrapper, deleteIQL, getAccessMethod, getAutoMedWrapper, getAutoMedWrapper, getAutoMedWrapperFactory, getDrivers, getOption, getOptionKeyProtection, getOptionKeys, getProtocol, getSchema, getSchema, insertIQL, newAutoMedSchema, newAutoMedWrapper, 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

### PostgresWrapper

    public PostgresWrapper()

### PostgresWrapper

    public PostgresWrapper(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 `PostgresWrapperFactory#build`

  Throws:
    `DataSourceException`

Method Detail

### getDefaultWrapperFactory

    protected AutoMedWrapperFactory getDefaultWrapperFactory()

  Returns a new instance of the default wrapper factory for this wrapper

  Overrides:
    `getDefaultWrapperFactory` in class `SQLWrapper`

### escapedSQLID

    public java.lang.String escapedSQLID(java.lang.Object o)

  Ensure that Postgres table names and column names starting in capitals are put in double quotes

  Overrides:
    `escapedSQLID` in class `SQLWrapper`

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