org.makumba.db.makumba.sql
Class DbcpDatabase
java.lang.Object
org.makumba.db.makumba.Database
org.makumba.db.makumba.sql.Database
org.makumba.db.makumba.sql.DbcpDatabase
public class DbcpDatabase
- extends Database
the database adapter for PostgreSQL
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 |
DbcpDatabase
public DbcpDatabase(Properties p)
- simply calls super
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