org.objectweb.jonas.jdbc_xa.XADataSourceImpl Class Reference

List of all members.

Public Member Functions

 XADataSourceImpl ()
XAConnection getXAConnection () throws SQLException
XAConnection getXAConnection (String user, String passwd) throws SQLException
PrintWriter getLogWriter () throws SQLException
void setLogWriter (PrintWriter out) throws SQLException
void setLoginTimeout (int seconds) throws SQLException
int getLoginTimeout () throws SQLException

Detailed Description

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!)

Author:
Philippe Durieux Contributor(s):

Definition at line 49 of file XADataSourceImpl.java.


Constructor & Destructor Documentation

org.objectweb.jonas.jdbc_xa.XADataSourceImpl.XADataSourceImpl  ) 
 

Constructor for Factory

Definition at line 73 of file XADataSourceImpl.java.


Member Function Documentation

int org.objectweb.jonas.jdbc_xa.XADataSourceImpl.getLoginTimeout  )  throws SQLException
 

Gets the maximum time in seconds that this data source can wait while attempting to connect to a database.

Returns:
the data source login time limit
Exceptions:
SQLException if a database-access error occurs.

Definition at line 256 of file XADataSourceImpl.java.

PrintWriter org.objectweb.jonas.jdbc_xa.XADataSourceImpl.getLogWriter  )  throws SQLException
 

Get the log writer for this data source.

Returns:
PrintWritert he log writer for this data source, null if disabled
Exceptions:
SQLException if a database-access error occurs.

Definition at line 220 of file XADataSourceImpl.java.

XAConnection org.objectweb.jonas.jdbc_xa.XADataSourceImpl.getXAConnection String  user,
String  passwd
throws SQLException
 

Attempt to establish a database connection.

Parameters:
user The database user on whose behalf the Connection is being made
passwd the user's password
Returns:
a Connection to the database
Exceptions:
SQLException if a database-access error occurs.

Definition at line 156 of file XADataSourceImpl.java.

XAConnection org.objectweb.jonas.jdbc_xa.XADataSourceImpl.getXAConnection  )  throws SQLException
 

Attempt to establish a database connection.

Returns:
a Connection to the database
Exceptions:
SQLException if a database-access error occurs.

Definition at line 140 of file XADataSourceImpl.java.

void org.objectweb.jonas.jdbc_xa.XADataSourceImpl.setLoginTimeout int  seconds  )  throws SQLException
 

Sets the maximum time in seconds that this data source will wait while attempting to connect to a database.

Parameters:
seconds the data source login time limit
Exceptions:
SQLException if a database-access error occurs.

Definition at line 244 of file XADataSourceImpl.java.

void org.objectweb.jonas.jdbc_xa.XADataSourceImpl.setLogWriter PrintWriter  out  )  throws SQLException
 

Set the log writer for this data source.

Parameters:
out the new log writer; to disable, set to null
Exceptions:
SQLException if a database-access error occurs.

Definition at line 231 of file XADataSourceImpl.java.


The documentation for this class was generated from the following file:
Generated on Tue Feb 15 15:06:57 2005 for JOnAS by  doxygen 1.3.9.1