org.kuali.rice.student.core.database
Class DerbyXAPoolDataSource

java.lang.Object
  extended by org.enhydra.jdbc.util.JdbcUtil
      extended by org.enhydra.jdbc.core.CoreDataSource
          extended by org.enhydra.jdbc.pool.StandardPoolDataSource
              extended by org.enhydra.jdbc.pool.StandardXAPoolDataSource
                  extended by org.kuali.rice.core.database.XAPoolDataSource
                      extended by org.kuali.rice.student.core.database.DerbyXAPoolDataSource
All Implemented Interfaces:
Serializable, Wrapper, EventListener, Referenceable, ObjectFactory, CommonDataSource, ConnectionEventListener, DataSource, org.enhydra.jdbc.pool.PoolHelper, DisposableBean, InitializingBean

public class DerbyXAPoolDataSource
extends XAPoolDataSource

This extends the rice XAPoolDataSource and checks to see if a connection is being made using derby client driver. If a client driver is used and a connection cannot be obtained, means a derby server has not been started. In such a case must switch to use the embedded driver instead. If derby is set to startup in server mode, the embedded db will be reachable via a network connection.

Author:
Kuali Student Team
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.kuali.rice.core.database.XAPoolDataSource
DRIVER_CLASS_NAME, MAX_SIZE, MAX_WAIT, MIN_SIZE, PASSWORD, URL, USERNAME, VALIDATION_QUERY
 
Fields inherited from class org.enhydra.jdbc.pool.StandardXAPoolDataSource
glog, transactionManager, xads
 
Fields inherited from class org.enhydra.jdbc.pool.StandardPoolDataSource
cpds, dataSourceName, ictx, jdbcTestStmt, onOff, pool
 
Fields inherited from class org.enhydra.jdbc.core.CoreDataSource
logWriter, password, user
 
Fields inherited from class org.enhydra.jdbc.util.JdbcUtil
log
 
Constructor Summary
DerbyXAPoolDataSource()
           
 
Method Summary
 void afterPropertiesSet()
           
 
Methods inherited from class org.kuali.rice.core.database.XAPoolDataSource
destroy, getDriverClassName, getMaxWait, getUrl, getUsername, getValidationQuery, isStarted, setBeanName, setDriverClassName, setMaxWait, setPassword, setPreparedStmtCacheSize, setTransactionManager, setUrl, setUsername, setValidationQuery
 
Methods inherited from class org.enhydra.jdbc.pool.StandardXAPoolDataSource
connectionClosed, create, getDataSource, getObjectInstance, getReference, setDataSource, testThisObject, toString
 
Methods inherited from class org.enhydra.jdbc.pool.StandardPoolDataSource
checkThisObject, connectionErrorOccurred, create, expire, getCheckLevelObject, getConnection, getConnection, getDataSourceName, getDeadLockMaxWait, getDeadLockRetryWait, getGeneration, getJdbcTestStmt, getLifeTime, getLockedObjectCount, getLogWriter, getMaxSize, getMinSize, getSleepTime, getUnlockedObjectCount, isGC, setCheckLevelObject, setDataSourceName, setDeadLockMaxWait, setDeadLockRetryWait, setDebug, setGC, setGeneration, setJdbcTestStmt, setLifeTime, setLogWriter, setMaxSize, setMinSize, setSleepTime, setThreadFactory, shutdown, stopPool
 
Methods inherited from class org.enhydra.jdbc.core.CoreDataSource
getDescription, getLoginTimeout, getPassword, getThreadFactory, getUser, isDebug, isVerbose, setDescription, setLoginTimeout, setUser, setVerbose
 
Methods inherited from class org.enhydra.jdbc.util.JdbcUtil
setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.sql.CommonDataSource
getLoginTimeout, setLoginTimeout
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Constructor Detail

DerbyXAPoolDataSource

public DerbyXAPoolDataSource()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class XAPoolDataSource
Throws:
Exception


Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.