|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.jca.adapters.jdbc.JBossWrapper
org.jboss.jca.adapters.jdbc.WrapperDataSource
public class WrapperDataSource

WrapperDataSource
| Constructor Summary | |
|---|---|
protected |
WrapperDataSource(BaseWrapperManagedConnectionFactory mcf,
javax.resource.spi.ConnectionManager cm)
Constructor |
| Method Summary | |
|---|---|
protected void |
checkTransactionActive()
Check whether a tranasction is active |
Connection |
getConnection()
|
Connection |
getConnection(String user,
String password)
|
int |
getLoginTimeout()
|
PrintWriter |
getLogWriter()
|
Logger |
getParentLogger()
|
Reference |
getReference()
|
protected int |
getTimeLeftBeforeTransactionTimeout()
Get the time left before a transaction timeout |
void |
setLoginTimeout(int param1)
|
void |
setLogWriter(PrintWriter pw)
|
void |
setReference(Reference reference)
|
| Methods inherited from class org.jboss.jca.adapters.jdbc.JBossWrapper |
|---|
getWrappedObject, isWrapperFor, unwrap |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Constructor Detail |
|---|
protected WrapperDataSource(BaseWrapperManagedConnectionFactory mcf,
javax.resource.spi.ConnectionManager cm)
mcf - The managed connection factorycm - The connection manager| Method Detail |
|---|
public PrintWriter getLogWriter()
throws SQLException
getLogWriter in interface CommonDataSourceSQLException
public void setLogWriter(PrintWriter pw)
throws SQLException
setLogWriter in interface CommonDataSourceSQLException
public int getLoginTimeout()
throws SQLException
getLoginTimeout in interface CommonDataSourceSQLException
public void setLoginTimeout(int param1)
throws SQLException
setLoginTimeout in interface CommonDataSourceSQLException
public Logger getParentLogger()
throws SQLFeatureNotSupportedException
SQLFeatureNotSupportedException
public Connection getConnection()
throws SQLException
getConnection in interface DataSourceSQLException
public Connection getConnection(String user,
String password)
throws SQLException
getConnection in interface DataSourceSQLExceptionpublic void setReference(Reference reference)
public Reference getReference()
getReference in interface Referenceable
protected int getTimeLeftBeforeTransactionTimeout()
throws SQLException
-1 if no timeout
SQLException - Thrown if an error occurs
protected void checkTransactionActive()
throws SQLException
SQLException - if the transaction is not active, preparing, prepared or committing or
for any error in the transaction manager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||