public abstract class BasePooledAccess extends DatabaseAccess
DatabaseAccess.DatabaseType| Modifier and Type | Field and Description |
|---|---|
protected javax.sql.DataSource |
dataSource |
protected boolean |
dataSourceFound |
private org.apache.commons.logging.Log |
log |
ctx| Constructor and Description |
|---|
BasePooledAccess(javax.servlet.ServletContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createSchema(java.lang.String scriptFile) |
java.io.File |
getDataDirectory() |
javax.sql.DataSource |
getDataSource() |
protected abstract java.lang.String |
getDriverClassName() |
protected java.lang.String |
getUrl(java.lang.String propertyPrefix) |
protected void |
initializeImpl(java.lang.String propertyPrefix) |
protected void |
initializeImpl(java.lang.String propertyPrefix,
java.lang.String dataSourceName) |
void |
runScript(java.lang.String[] script,
java.io.OutputStream out) |
void |
terminate() |
applyBounds, createDatabaseAccess, doInConnection, executeCompress, getDatabaseAccess, getDatabasePassword, getType, initialize, newDatabaseCheck, postInitialize, prepareStatementprivate final org.apache.commons.logging.Log log
protected javax.sql.DataSource dataSource
protected boolean dataSourceFound
protected void initializeImpl(java.lang.String propertyPrefix,
java.lang.String dataSourceName)
initializeImpl in class DatabaseAccessprotected void initializeImpl(java.lang.String propertyPrefix)
initializeImpl in class DatabaseAccessprotected java.lang.String getUrl(java.lang.String propertyPrefix)
protected abstract java.lang.String getDriverClassName()
public void runScript(java.lang.String[] script,
java.io.OutputStream out)
runScript in class DatabaseAccessprotected void createSchema(java.lang.String scriptFile)
public void terminate()
terminate in class DatabaseAccesspublic javax.sql.DataSource getDataSource()
getDataSource in class DatabaseAccesspublic java.io.File getDataDirectory()
getDataDirectory in class DatabaseAccess