org.makumba.db.makumba.sql
Class DbcpDatabase

java.lang.Object
  extended by org.makumba.db.makumba.Database
      extended by org.makumba.db.makumba.sql.Database
          extended by org.makumba.db.makumba.sql.DbcpDatabase

public class DbcpDatabase
extends Database

the database adapter for PostgreSQL


Field Summary
 
Fields inherited from class org.makumba.db.makumba.sql.Database
addUnderscore, catalog, connectionConfig, DESIRED_TRANSACTION_LEVEL, eng, pooledDataSource, sqlDrivers, url
 
Fields inherited from class org.makumba.db.makumba.Database
nr, requestForeignKeys, requestUTF8, tp
 
Constructor Summary
DbcpDatabase(Properties p)
          simply calls super
 
Method Summary
protected  void checkState(SQLException e, String state)
          the postgres jdbc driver does not return sql states... we just let every state pass, but print the exception
protected  String getFieldName(String s)
          column names are case-insensitive
protected  String getJdbcUrl(Properties p)
          builds a JDBC Connection URL given the host, sqlEngine and database properties
 
Methods inherited from class org.makumba.db.makumba.sql.Database
checkState, closeResourcePool, exec, getDuplicateFields, getEngine, getEngineProperty, getIdleConnections, getLimitSyntax, getMaxPointerValue, getMinPointerValue, getNameResolverHook, getOpenedConnections, getPointer, getPooledDBConnection, getResourcePoolSize, getTableClass, getTableClassConfigured, getWrappedStatementToString, isDuplicateException, isForeignKeyViolationException, isLimitOffsetFirst, logException, logException, logException, makeDBConnection, OQLDate, parseReadableForeignKeyErrorMessage, prepareQueryImpl, prepareUpdateImpl, readCatalog, SQLEscape, supportsForeignKeys, supportsLimitInQuery, supportsUTF8
 
Methods inherited from class org.makumba.db.makumba.Database
checkForeignKeys, close, copyFrom, copyFrom, copyFrom, copyFrom, copyFrom, deleteFrom, deleteFrom, deleteFrom, deleteFrom, finalize, findConfig, getConfiguration, getConfigurationProperties, getDBConnection, getDBConnection, getDbsv, getFieldNameInSource, getName, getNameResolver, getTable, getTable, getTypeNameInSource, initialiseTables, isAutoIncrement, makePseudoTable, openTable, openTables, usesHibernateIndexes
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbcpDatabase

public DbcpDatabase(Properties p)
simply calls super

Method Detail

getFieldName

protected String getFieldName(String s)
column names are case-insensitive


checkState

protected void checkState(SQLException e,
                          String state)
the postgres jdbc driver does not return sql states... we just let every state pass, but print the exception

Overrides:
checkState in class Database

getJdbcUrl

protected String getJdbcUrl(Properties p)
Description copied from class: Database
builds a JDBC Connection URL given the host, sqlEngine and database properties

Overrides:
getJdbcUrl in class Database