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, dataSourceFoundctx| 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, terminatecreateDatabaseAccess, doInConnection, getDatabaseAccess, getDatabasePassword, initialize, postInitializeprivate 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 BasePooledAccessprotected void initializeImpl(java.lang.String propertyPrefix,
java.lang.String dataSourceName)
initializeImpl in class BasePooledAccesspublic DatabaseAccess.DatabaseType getType()
getType in class DatabaseAccessprotected java.lang.String getDriverClassName()
getDriverClassName in class BasePooledAccessprotected void createSchema(java.lang.String scriptFile)
createSchema in class BasePooledAccessprotected boolean newDatabaseCheck(com.serotonin.db.spring.ExtendedJdbcTemplate ejt)
newDatabaseCheck in class DatabaseAccesspublic double applyBounds(double value)
applyBounds in class DatabaseAccesspublic void executeCompress(com.serotonin.db.spring.ExtendedJdbcTemplate ejt)
executeCompress in class DatabaseAccesspublic java.sql.PreparedStatement prepareStatement(java.sql.Connection connection,
java.lang.String sql,
java.lang.String generatedKey)
throws java.sql.SQLException
prepareStatement in class DatabaseAccesssql - 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