|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jboss.minerva.xa.XADataSourceImpl
Transactional DataSource wrapper for JDBC 1.0 drivers. This is very lightweight - it just passes requests through to an underlying driver, and wraps the results with an XAConnection. The XAConnection and corresponding XAResource are responsible for closing the connection when appropriate. Note that the underlying driver may perform pooling, but need not. This class does not add any pooling capabilities.
Constructor Summary | |
XADataSourceImpl()
Empty constructure for beans, reflection, etc. |
|
XADataSourceImpl(java.lang.String url,
java.util.Properties properties)
Specifies the URL and properties to connect to the underlying driver. |
Method Summary | |
int |
getLoginTimeout()
This is not used by the current implementation, since the effect would differ depending on the underlying driver. |
java.io.PrintWriter |
getLogWriter()
Gets the log writer used to record when XAConnections are opened. |
java.lang.String |
getPassword()
Gets the JDBC password used to open an underlying connection. |
java.util.Properties |
getProperties()
Gets the JDBC properties used to open an underlying connection. |
java.lang.String |
getURL()
Gets the JDBC URL used to open an underlying connection. |
java.lang.String |
getUser()
Gets the JDBC user name used to open an underlying connection. |
javax.sql.XAConnection |
getXAConnection()
Gets an XAConnection. |
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String password)
Gets an XAConnection. |
void |
setLoginTimeout(int timeout)
This is not used by the current implementation, since the effect would differ depending on the underlying driver. |
void |
setLogWriter(java.io.PrintWriter writer)
Sets a log writer used to record when XAConnections are opened. |
void |
setPassword(java.lang.String password)
Sets the JDBC password used to open an underlying connection. |
void |
setProperties(java.util.Properties properties)
Sets the JDBC properties used to open an underlying connection. |
void |
setURL(java.lang.String url)
Sets the JDBC URL used to open an underlying connection. |
void |
setUser(java.lang.String user)
Sets the JDBC user name used to open an underlying connection. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XADataSourceImpl()
public XADataSourceImpl(java.lang.String url, java.util.Properties properties)
Method Detail |
public java.lang.String getURL()
public void setURL(java.lang.String url)
public java.lang.String getUser()
public void setUser(java.lang.String user)
public java.lang.String getPassword()
public void setPassword(java.lang.String password)
public java.util.Properties getProperties()
public void setProperties(java.util.Properties properties)
public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
getLogWriter
in interface javax.sql.XADataSource
public void setLogWriter(java.io.PrintWriter writer) throws java.sql.SQLException
setLogWriter
in interface javax.sql.XADataSource
public int getLoginTimeout() throws java.sql.SQLException
getLoginTimeout
in interface javax.sql.XADataSource
public void setLoginTimeout(int timeout) throws java.sql.SQLException
setLoginTimeout
in interface javax.sql.XADataSource
public javax.sql.XAConnection getXAConnection() throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
public javax.sql.XAConnection getXAConnection(java.lang.String user, java.lang.String password) throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |