Skip navigation links


com.essbase.eas.server.dao.jdbc.dbPool
Class DatabaseConnectionPool

java.lang.Object
  extended by java.lang.Thread
      extended by com.essbase.eas.server.dao.jdbc.dbPool.AbstractResourcePool
          extended by com.essbase.eas.server.dao.jdbc.dbPool.DatabaseConnectionPool

All Implemented Interfaces:
ResourcePool, java.lang.Runnable

public class DatabaseConnectionPool
extends AbstractResourcePool

Nested Class Summary

 

Nested classes/interfaces inherited from class java.lang.Thread
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler

 

Field Summary

 

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY

 

Constructor Summary
DatabaseConnectionPool(java.util.Properties creationProps)
           
DatabaseConnectionPool(java.util.Properties creationProps, int poolSize)
           
DatabaseConnectionPool(java.util.Properties creationProps, int poolSize, long sleepIntervalInMillis)
           

 

Method Summary
 Resource createResource(java.util.Properties props)
          Creates a new PooledConnection for the pool.
 void executeSQLUpdate(java.lang.String stmt)
           
 void executeSQLUpdate(java.lang.String stmt, java.lang.Object[] objs)
           
static DatabaseConnectionPool getDatabaseConnectionPool()
          Gets the current Database Connection Pool.
 PooledConnection getPooledConnection()
          Gets a Pooled Connection from the Resouce Pool.

 

Methods inherited from class com.essbase.eas.server.dao.jdbc.dbPool.AbstractResourcePool
closeAll, getCreationProperties, getPool, getPoolSize, getResource, getSleepTimeInMillis, initPool, printStatus, printStatus, recycleResource, run, setCreationProperties, setPoolSize, setSleepTimeInMillis

 

Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield

 

Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Constructor Detail

DatabaseConnectionPool

public DatabaseConnectionPool(java.util.Properties creationProps)
                       throws DataAccessException
Throws:
DataAccessException

DatabaseConnectionPool

public DatabaseConnectionPool(java.util.Properties creationProps,
                              int poolSize)
                       throws DataAccessException
Throws:
DataAccessException

DatabaseConnectionPool

public DatabaseConnectionPool(java.util.Properties creationProps,
                              int poolSize,
                              long sleepIntervalInMillis)
                       throws DataAccessException
Throws:
DataAccessException

Method Detail

createResource

public Resource createResource(java.util.Properties props)
                        throws DataAccessException
Creates a new PooledConnection for the pool. This is required.
Throws:
DataAccessException

getDatabaseConnectionPool

public static DatabaseConnectionPool getDatabaseConnectionPool()
                                                        throws DataAccessException
Gets the current Database Connection Pool. This method is unnecessary as the calling class could do the same thing. This just makes it easier on the calling class as it doesn't have to do as much in the way of casting.
Throws:
DataAccessException

getPooledConnection

public PooledConnection getPooledConnection()
                                     throws DataAccessException
Gets a Pooled Connection from the Resouce Pool. This method is unnecessary as the calling class could do the same thing. This just makes it easier on the calling class as it doesn't have to do as much in the way of casting.
Throws:
DataAccessException

executeSQLUpdate

public void executeSQLUpdate(java.lang.String stmt,
                             java.lang.Object[] objs)
                      throws DataAccessException
Throws:
DataAccessException

executeSQLUpdate

public void executeSQLUpdate(java.lang.String stmt)
                      throws DataAccessException
Throws:
DataAccessException

Skip navigation links


Copyright © 2001, 2012, Oracle. All rights reserved.