|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.bm.utils.BasicDataSource
public class BasicDataSource
Basic implementation of javax.sql.DataSource
that is
configured via Ejb3Prop properties.
Constructor Summary | |
---|---|
BasicDataSource(Ejb3UnitCfg config)
Constructor. |
Method Summary | ||
---|---|---|
java.sql.Connection |
getConnection()
The connection. |
|
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password)
|
|
int |
getLoginTimeout()
|
|
java.io.PrintWriter |
getLogWriter()
|
|
boolean |
isWrapperFor(java.lang.Class<?> forInterface)
Does not wrap anything. |
|
void |
setLoginTimeout(int arg0)
|
|
void |
setLogWriter(java.io.PrintWriter logger)
|
|
void |
shutdownInMemoryDatabase()
If the datasource is in memory this will shutdown the database. |
|
|
unwrap(java.lang.Class<T> arg0)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BasicDataSource(Ejb3UnitCfg config)
config
- -
die konfiguration.Method Detail |
---|
public java.sql.Connection getConnection() throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
DataSource.getConnection()
public java.sql.Connection getConnection(java.lang.String username, java.lang.String password) throws java.sql.SQLException
getConnection
in interface javax.sql.DataSource
java.sql.SQLException
public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
getLogWriter
in interface javax.sql.DataSource
java.sql.SQLException
public void setLogWriter(java.io.PrintWriter logger) throws java.sql.SQLException
setLogWriter
in interface javax.sql.DataSource
java.sql.SQLException
public void setLoginTimeout(int arg0) throws java.sql.SQLException
setLoginTimeout
in interface javax.sql.DataSource
java.sql.SQLException
public int getLoginTimeout() throws java.sql.SQLException
getLoginTimeout
in interface javax.sql.DataSource
java.sql.SQLException
public void shutdownInMemoryDatabase() throws java.lang.Exception
java.lang.Exception
public boolean isWrapperFor(java.lang.Class<?> forInterface) throws java.sql.SQLException
forInterface
- for which interface
java.sql.SQLException
public <T> T unwrap(java.lang.Class<T> arg0) throws java.sql.SQLException
java.sql.SQLException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |