i-net JDBC drivers for Sybase

com.inet.syb
Class XDataSource

java.lang.Object
  extended bycom.inet.syb.SybDriver
      extended bycom.inet.syb.SybDataSource
          extended bycom.inet.syb.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 SybDataSource
implements javax.sql.XADataSource

This class implements the interface XADataSource. This class is very importand if you want use a JDBC 2.0 driver with an application server.

See Also:
Serialized Form

Constructor Summary
XDataSource()
           
 
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.syb.SybDataSource
clone, equals, getAppname, getChained, getCharset, getDatabaseName, getDescription, getImpltran, getLogging, getLoginTimeout, getLogWriter, getPassword, getPort, getPortNumber, getProperties, getProperty, getReference, getServerName, getUser, setAppname, setChained, setCharset, setDatabaseName, setDescription, setImpltran, setLogging, setLoginTimeout, setLogWriter, setPassword, setPort, setPortNumber, setProperties, setProperty, setProperty, setServerName, setUser, toString
 
Methods inherited from class com.inet.syb.SybDriver
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
 

Constructor Detail

XDataSource

public XDataSource()
Method Detail

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 SybDataSource
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 SybDataSource
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 made
password - the user's password
Returns:
a Connection to the database
Throws:
java.sql.SQLException

i-net JDBC drivers for Sybase


copyright by i-net software