|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.jonas.jdbc_xa.XADataSourceImpl
The XADataSource implementation in our pseudo JDBC-XA driver. Acts as a factory for XAConnection objects. Created by our DataSource implementation, in the JOnAS Server. There is one XADataSource for each DataSource JDBC which do not have this kind of driver in standard (all databases today!)
Constructor Summary | |
XADataSourceImpl()
Constructor for Factory |
Method Summary | |
java.lang.String |
getClassName()
|
java.lang.String |
getDataSourceName()
|
int |
getLoginTimeout()
Gets the maximum time in seconds that this data source can wait while attempting to connect to a database. |
java.io.PrintWriter |
getLogWriter()
Get the log writer for this data source. |
java.lang.String |
getPassword()
|
java.lang.String |
getUrl()
|
java.lang.String |
getUserName()
|
javax.sql.XAConnection |
getXAConnection()
Attempt to establish a database connection. |
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String passwd)
Attempt to establish a database connection. |
void |
setClassName(java.lang.String s)
|
void |
setDataSourceName(java.lang.String s)
|
void |
setLoginTimeout(int seconds)
Sets the maximum time in seconds that this data source will wait while attempting to connect to a database. |
void |
setLogWriter(java.io.PrintWriter out)
Set the log writer for this data source. |
void |
setPassword(java.lang.String s)
|
void |
setTransactionIsolation(int level)
|
void |
setUrl(java.lang.String s)
|
void |
setUserName(java.lang.String s)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XADataSourceImpl()
Method Detail |
public java.lang.String getDataSourceName()
public void setDataSourceName(java.lang.String s)
public java.lang.String getUrl()
public void setUrl(java.lang.String s)
public java.lang.String getClassName()
public void setClassName(java.lang.String s)
public java.lang.String getUserName()
public void setUserName(java.lang.String s)
public java.lang.String getPassword()
public void setPassword(java.lang.String s)
public void setTransactionIsolation(int level)
public javax.sql.XAConnection getXAConnection() throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
java.sql.SQLException
- if a database-access error occurs.public javax.sql.XAConnection getXAConnection(java.lang.String user, java.lang.String passwd) throws java.sql.SQLException
getXAConnection
in interface javax.sql.XADataSource
user
- The database user on whose behalf the Connection is being madepasswd
- the user's passwordjava.sql.SQLException
- if a database-access error occurs.public java.io.PrintWriter getLogWriter() throws java.sql.SQLException
getLogWriter
in interface javax.sql.XADataSource
java.sql.SQLException
- if a database-access error occurs.public void setLogWriter(java.io.PrintWriter out) throws java.sql.SQLException
setLogWriter
in interface javax.sql.XADataSource
out
- the new log writer; to disable, set to nulljava.sql.SQLException
- if a database-access error occurs.public void setLoginTimeout(int seconds) throws java.sql.SQLException
setLoginTimeout
in interface javax.sql.XADataSource
seconds
- the data source login time limitjava.sql.SQLException
- if a database-access error occurs.public int getLoginTimeout() throws java.sql.SQLException
getLoginTimeout
in interface javax.sql.XADataSource
java.sql.SQLException
- if a database-access error occurs.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |