org.objectweb.easybeans.ds
Class DummyDataSource

java.lang.Object
  extended by org.objectweb.easybeans.dbpool.ConnectionManager
      extended by org.objectweb.easybeans.ds.DummyDataSource
All Implemented Interfaces:
java.io.Serializable, java.util.EventListener, javax.naming.Referenceable, javax.sql.ConnectionEventListener, javax.sql.DataSource, javax.sql.XADataSource

public class DummyDataSource
extends ConnectionManager

Defines a dummy datasource implementation based on HSQL in memory server.

Author:
florent
See Also:
Serialized Form

Field Summary
private static int DEFAULT_POOLSIZE
          Default pool size.
private static int DEFAULT_PSTMT
          Default prepared statement.
private static long serialVersionUID
          Id for serializable class.
 
Constructor Summary
DummyDataSource(java.lang.String name)
          Constructor.
Init the driver.
 
Method Summary
 
Methods inherited from class org.objectweb.easybeans.dbpool.ConnectionManager
adjust, checkConnection, closeAllConnection, connectionClosed, connectionErrorOccurred, freeConnections, getBusyMaxRecent, getBusyMinRecent, getCheckLevel, getClassName, getConnection, getConnection, getConnectionFailures, getConnectionLeaks, getConnectionManager, getCurrentBusy, getCurrentInTx, getCurrentOpened, getCurrentWaiters, getDatasourceName, getDSName, getLoginTimeout, getLogWriter, getMaxAge, getMaxAgeMilli, getMaxOpenTime, getMaxOpenTimeMilli, getMaxWaiters, getMaxWaitTime, getOpenedCount, getPassword, getPoolMax, getPoolMin, getPstmtMax, getReference, getRejectedFull, getRejectedOpen, getRejectedOther, getRejectedTimeout, getSamplingPeriod, getServedOpen, getTestStatement, getTransactionIsolation, getUrl, getUserName, getWaiterCount, getWaitersHigh, getWaitersHighRecent, getWaitingHigh, getWaitingHighRecent, getWaitingTime, getXAConnection, getXAConnection, openConnection, poolConfigure, recomputeBusy, sampling, setCheckLevel, setClassName, setDatasourceName, setDSName, setLoginTimeout, setLogWriter, setMaxAge, setMaxOpenTime, setMaxWaiters, setMaxWaitTime, setPassword, setPoolMax, setPoolMin, setPstmtMax, setSamplingPeriod, setTestStatement, setTm, setTransactionIsolation, setUrl, setUserName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Id for serializable class.

See Also:
Constant Field Values

DEFAULT_POOLSIZE

private static final int DEFAULT_POOLSIZE
Default pool size.

See Also:
Constant Field Values

DEFAULT_PSTMT

private static final int DEFAULT_PSTMT
Default prepared statement.

See Also:
Constant Field Values
Constructor Detail

DummyDataSource

public DummyDataSource(java.lang.String name)
Constructor.
Init the driver.

Parameters:
name - used for the instance name.