com.inet.ora
Class XDataSource
java.lang.Object
com.inet.ora.OraDriver
com.inet.ora.OraDataSource
com.inet.ora.XDataSource
- All Implemented Interfaces:
- java.lang.Cloneable, javax.sql.DataSource, java.sql.Driver, javax.naming.Referenceable, java.lang.Runnable, java.io.Serializable, javax.sql.XADataSource
- public class XDataSource
- extends OraDataSource
- implements javax.sql.XADataSource
This class implements the interface XADataSource. This class is very important
if you want use a JDBC 2.0 driver with a application server.
- See Also:
- Serialized Form
Fields inherited from class com.inet.ora.OraDriver |
CURSOR |
Method Summary |
java.sql.Connection |
getConnection()
throws ever a SQLException |
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password)
throws ever a SQLException |
javax.sql.XAConnection |
getXAConnection()
Attempt to establish a database connection. |
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String password)
Attempt to establish a database connection. |
Methods inherited from class com.inet.ora.OraDataSource |
clone, equals, getAlterSession, getCaseSensitive, getColumnsCaseSensitive, getDedicated, getDescription, getFailover, getHost1, getIgnoreScale, getInitSQL, getLoadbalance, getLogging, getLoginTimeout, getLogonMode, getLogWriter, getMapNumbers, getOpencursors, getPassword, getPort, getPort1, getPortNumber, getProgramName, getProperties, getProperty, getProtocol, getQueryTimeout, getReference, getReportUnsupportedMethods, getSduSize, getServerName, getServiceName, getSid, getStreamstolob, getTables, getTimestampToDate, getTraceLevel, getTracePackets, getTraceToSysStream, getUser, setAlterSession, setCaseSensitive, setColumnsCaseSensitive, setDedicated, setDescription, setFailover, setHost1, setIgnoreScale, setInitSQL, setLoadbalance, setLogging, setLoginTimeout, setLogonMode, setLogWriter, setMapNumbers, setOpencursors, setPassword, setPort, setPort1, setPortNumber, setProgramName, setProperties, setProperty, setProperty, setProperty, setProtocol, setQueryTimeout, setReportUnsupportedMethods, setSduSize, setSduSize, setServerName, setServiceName, setSid, setStreamstolob, setTables, setTimestampToDate, setTraceLevel, setTraceLevel, setTracePackets, setTraceToSysStream, setUser, toString |
Methods inherited from class com.inet.ora.OraDriver |
acceptsURL, connect, getMajorVersion, getMinorVersion, getPropertyInfo, jdbcCompliant, run |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.sql.XADataSource |
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
XDataSource
public XDataSource()
getConnection
public java.sql.Connection getConnection()
throws java.sql.SQLException
- throws ever a SQLException
- Specified by:
getConnection
in interface javax.sql.DataSource
- Overrides:
getConnection
in class OraDataSource
- Returns:
- a Connection to the database.
- Throws:
java.sql.SQLException
getConnection
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
- throws ever a SQLException
- Specified by:
getConnection
in interface javax.sql.DataSource
- Overrides:
getConnection
in class OraDataSource
- Parameters:
username
- the database user on whose behalf the Connection is being made.password
- the user's password.
- Returns:
- a Connection to the database.
- Throws:
java.sql.SQLException
getXAConnection
public javax.sql.XAConnection getXAConnection()
throws java.sql.SQLException
- Attempt to establish a database connection.
- Specified by:
getXAConnection
in interface javax.sql.XADataSource
- Returns:
- a Connection to the database
- Throws:
java.sql.SQLException
getXAConnection
public javax.sql.XAConnection getXAConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
- Attempt to establish a database connection.
- Specified by:
getXAConnection
in interface javax.sql.XADataSource
- Parameters:
user
- the database user on whose behalf the Connection is being madepassword
- the user's password
- Returns:
- a Connection to the database
- Throws:
java.sql.SQLException
copyright by i-net software