org.kuali.student.common.test.spring
Class UniqueResourceAtomikosDataSourceBean

java.lang.Object
  extended by com.atomikos.jdbc.AbstractDataSourceBean
      extended by com.atomikos.jdbc.AtomikosDataSourceBean
          extended by org.kuali.student.common.test.spring.UniqueResourceAtomikosDataSourceBean
All Implemented Interfaces:
com.atomikos.datasource.pool.ConnectionPoolProperties, com.atomikos.jdbc.HeuristicDataSource, Serializable, Wrapper, Referenceable, CommonDataSource, DataSource

public class UniqueResourceAtomikosDataSourceBean
extends com.atomikos.jdbc.AtomikosDataSourceBean

This class generates a (mostly) unique resource name for use in testing when the testing framework forks tests and two tests using the same dataSource name run into conflicts

See Also:
Serialized Form

Field Summary
private static int count
           
private static long serialVersionUID
           
 
Constructor Summary
UniqueResourceAtomikosDataSourceBean()
           
 
Method Summary
 void setUniqueResourceName(String resourceName)
           
 
Methods inherited from class com.atomikos.jdbc.AtomikosDataSourceBean
doClose, doInit, getXaDataSource, getXaDataSourceClassName, getXaProperties, printXaProperties, setXaDataSource, setXaDataSourceClassName, setXaProperties, toString
 
Methods inherited from class com.atomikos.jdbc.AbstractDataSourceBean
close, getBorrowConnectionTimeout, getConnection, getConnection, getConnection, getConnection, getConnection, getConnection, getLocalTransactionMode, getLoginTimeout, getLogWriter, getMaintenanceInterval, getMaxIdleTime, getMaxPoolSize, getMinPoolSize, getReapTimeout, getReference, getTestQuery, getUniqueResourceName, init, poolAvailableSize, poolTotalSize, setBorrowConnectionTimeout, setLoginTimeout, setLogWriter, setMaintenanceInterval, setMaxIdleTime, setMaxPoolSize, setMinPoolSize, setPoolSize, setReapTimeout, setTestQuery, throwAtomikosSQLException, throwAtomikosSQLException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.sql.Wrapper
isWrapperFor, unwrap
 

Field Detail

count

private static int count

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values
Constructor Detail

UniqueResourceAtomikosDataSourceBean

public UniqueResourceAtomikosDataSourceBean()
Method Detail

setUniqueResourceName

public void setUniqueResourceName(String resourceName)
Overrides:
setUniqueResourceName in class com.atomikos.jdbc.AbstractDataSourceBean


Copyright © 2007-2011 The Kuali Foundation. All Rights Reserved.