public class Oracle11GAccess extends BasePooledAccess
Modifier and Type | Class and Description |
---|---|
private static class |
Oracle11GAccess.ErrorCode |
DatabaseAccess.DatabaseType
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
CREATE_SCHEMA_SCRIPT_PATH |
private org.apache.commons.logging.Log |
log |
private static java.lang.String |
ORACLE_DRIVER_CLASS |
dataSource, dataSourceFound
ctx
Constructor and Description |
---|
Oracle11GAccess(javax.servlet.ServletContext ctx) |
Modifier and Type | Method and Description |
---|---|
double |
applyBounds(double value) |
protected void |
createSchema(java.lang.String scriptFile) |
void |
executeCompress(com.serotonin.db.spring.ExtendedJdbcTemplate ejt) |
protected java.lang.String |
getDriverClassName() |
DatabaseAccess.DatabaseType |
getType() |
protected void |
initializeImpl(java.lang.String propertyPrefix) |
protected void |
initializeImpl(java.lang.String propertyPrefix,
java.lang.String dataSourceName) |
protected boolean |
newDatabaseCheck(com.serotonin.db.spring.ExtendedJdbcTemplate ejt) |
java.sql.PreparedStatement |
prepareStatement(java.sql.Connection connection,
java.lang.String sql,
java.lang.String generatedKey)
Prepares the statement to insert operation that returning the
auto-generated key from the inserted row
|
getDataDirectory, getDataSource, getUrl, runScript, terminate
createDatabaseAccess, doInConnection, getDatabaseAccess, getDatabasePassword, initialize, postInitialize
private static final java.lang.String CREATE_SCHEMA_SCRIPT_PATH
private static final java.lang.String ORACLE_DRIVER_CLASS
private final org.apache.commons.logging.Log log
protected void initializeImpl(java.lang.String propertyPrefix)
initializeImpl
in class BasePooledAccess
protected void initializeImpl(java.lang.String propertyPrefix, java.lang.String dataSourceName)
initializeImpl
in class BasePooledAccess
public DatabaseAccess.DatabaseType getType()
getType
in class DatabaseAccess
protected java.lang.String getDriverClassName()
getDriverClassName
in class BasePooledAccess
protected void createSchema(java.lang.String scriptFile)
createSchema
in class BasePooledAccess
protected boolean newDatabaseCheck(com.serotonin.db.spring.ExtendedJdbcTemplate ejt)
newDatabaseCheck
in class DatabaseAccess
public double applyBounds(double value)
applyBounds
in class DatabaseAccess
public void executeCompress(com.serotonin.db.spring.ExtendedJdbcTemplate ejt)
executeCompress
in class DatabaseAccess
public java.sql.PreparedStatement prepareStatement(java.sql.Connection connection, java.lang.String sql, java.lang.String generatedKey) throws java.sql.SQLException
prepareStatement
in class DatabaseAccess
sql
- an SQL statement that may contain one or more '?' IN parameter
placeholdersgeneratedKey
- name of the generated column that should be returned from the
inserted row or rowsPreparedStatement
object, containing the
pre-compiled statement, that is capable of returning the
auto-generated key designated by the generated column name.java.sql.SQLException