org.broadleafcommerce.openadmin.server.service.persistence.datasource
Class SandBoxDataSource
java.lang.Object
org.broadleafcommerce.openadmin.server.service.persistence.datasource.SandBoxDataSource
- All Implemented Interfaces:
- Wrapper, CommonDataSource, DataSource
public class SandBoxDataSource
- extends Object
- implements DataSource
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DRIVERNAME
public static final String DRIVERNAME
- See Also:
- Constant Field Values
DEFAULTPORT
public static final int DEFAULTPORT
- See Also:
- Constant Field Values
DEFAULTADDRESS
public static final String DEFAULTADDRESS
- See Also:
- Constant Field Values
server
public static org.hsqldb.Server server
logWriter
protected PrintWriter logWriter
loginTimeout
protected int loginTimeout
sandboxDataBasePool
protected org.apache.commons.pool.impl.GenericObjectPool sandboxDataBasePool
port
protected int port
address
protected String address
uuid
protected String uuid
SandBoxDataSource
public SandBoxDataSource()
close
public void close()
getPort
public int getPort()
setPort
public void setPort(int port)
getAddress
public String getAddress()
setAddress
public void setAddress(String address)
returnObject
public void returnObject(Object obj)
throws Exception
- Throws:
Exception
getMaxActive
public int getMaxActive()
setMaxActive
public void setMaxActive(int maxActive)
getWhenExhaustedAction
public byte getWhenExhaustedAction()
setWhenExhaustedAction
public void setWhenExhaustedAction(byte whenExhaustedAction)
getMaxWait
public long getMaxWait()
setMaxWait
public void setMaxWait(long maxWait)
getMaxIdle
public int getMaxIdle()
setMaxIdle
public void setMaxIdle(int maxIdle)
setMinIdle
public void setMinIdle(int poolSize)
getMinIdle
public int getMinIdle()
getTimeBetweenEvictionRunsMillis
public long getTimeBetweenEvictionRunsMillis()
setTimeBetweenEvictionRunsMillis
public void setTimeBetweenEvictionRunsMillis(long timeBetweenEvictionRunsMillis)
getMinEvictableIdleTimeMillis
public long getMinEvictableIdleTimeMillis()
setMinEvictableIdleTimeMillis
public void setMinEvictableIdleTimeMillis(long minEvictableIdleTimeMillis)
getLogWriter
public PrintWriter getLogWriter()
throws SQLException
- Specified by:
getLogWriter in interface CommonDataSource
- Throws:
SQLException
setLogWriter
public void setLogWriter(PrintWriter out)
throws SQLException
- Specified by:
setLogWriter in interface CommonDataSource
- Throws:
SQLException
setLoginTimeout
public void setLoginTimeout(int seconds)
throws SQLException
- Specified by:
setLoginTimeout in interface CommonDataSource
- Throws:
SQLException
getLoginTimeout
public int getLoginTimeout()
throws SQLException
- Specified by:
getLoginTimeout in interface CommonDataSource
- Throws:
SQLException
unwrap
public <T> T unwrap(Class<T> iface)
throws SQLException
- Specified by:
unwrap in interface Wrapper
- Throws:
SQLException
isWrapperFor
public boolean isWrapperFor(Class<?> iface)
throws SQLException
- Specified by:
isWrapperFor in interface Wrapper
- Throws:
SQLException
getConnection
public Connection getConnection()
throws SQLException
- Specified by:
getConnection in interface DataSource
- Throws:
SQLException
getConnection
public Connection getConnection(String username,
String password)
throws SQLException
- Specified by:
getConnection in interface DataSource
- Throws:
SQLException
getJDBCUrl
public String getJDBCUrl()
Copyright © 2012. All Rights Reserved.