Skip navigation links

Oracle® TimesTen In-Memory Database JDBC Extensions Java API Reference
11g Release 2 (11.2.2)

E21647-03


com.timesten.jdbc.xa
Class TimesTenXADataSource

java.lang.Object
  extended by com.timesten.jdbc.JdbcOdbcObject
      extended by com.timesten.jdbc.TimesTenDriverBase
          extended by com.timesten.jdbc.TimesTenDataSource
              extended by com.timesten.jdbc.xa.TimesTenXADataSource

All Implemented Interfaces:
java.io.Serializable, java.sql.Wrapper, javax.sql.CommonDataSource, javax.sql.DataSource, javax.sql.XADataSource

public class TimesTenXADataSource
extends TimesTenDataSource
implements javax.sql.XADataSource, java.io.Serializable

Implements the javax.sql.XADataSource interface.

See Also:
Serialized Form

Field Summary

 

Fields inherited from class com.timesten.jdbc.JdbcOdbcObject
TT_JAVA_TIME_DIFFERENCE

 

Constructor Summary
TimesTenXADataSource()
          Creates new XADataSource.

 

Method Summary
 javax.sql.XAConnection getXAConnection()
          This method is a required part of the XADataSource interface.
 javax.sql.XAConnection getXAConnection(java.lang.String user, java.lang.String password)
          This method is a required part of the XADataSource interface.

 

Methods inherited from class com.timesten.jdbc.TimesTenDataSource
getConnection, getConnection, getDescription, getLoginTimeout, getLogWriter, getOraclePassword, getPassword, getUrl, getUser, isWrapperFor, setDescription, setLoginTimeout, setLogWriter, setOraclePassword, setPassword, setUrl, setUser, unwrap

 

Methods inherited from class com.timesten.jdbc.TimesTenDriverBase
getProtocol, getSubName, getSubProtocol, getSubProtocolType, isCSConnection, isDirectConnection

 

Methods inherited from class com.timesten.jdbc.JdbcOdbcObject
BytesToChars, CharsToBytes, CharsToBytes, hexPad, hexPairToInt, hexStringToByteArray, isConnectionBroken, toHex

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Methods inherited from interface javax.sql.CommonDataSource
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter

 

Constructor Detail

TimesTenXADataSource

public TimesTenXADataSource()
Creates new XADataSource. Currently does nothing because the superclass TimesTenDataSource does everything necessary.

Method Detail

getXAConnection

public javax.sql.XAConnection getXAConnection()
                                       throws java.sql.SQLException
This method is a required part of the XADataSource interface. Attempts to establish a physical database connection that can *be used in a distributed transaction.
Specified by:
getXAConnection in interface javax.sql.XADataSource
Returns:
an XAConnection object, which represents a physical connection to a data source, that can be used in a distributed transaction
Throws:
java.sql.SQLException - if a database access error occurs

getXAConnection

public javax.sql.XAConnection getXAConnection(java.lang.String user,
                                              java.lang.String password)
                                       throws java.sql.SQLException
This method is a required part of the XADataSource interface. Attempts to establish a physical database connection, using the given user name and password. The connection that is returned is one that can be used in a distributed transaction.
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:
an XAConnection object, which represents a physical connection to a data source, that can be used in a distributed transaction
Throws:
java.sql.SQLException - if a database access error occurs

Skip navigation links

Oracle® TimesTen In-Memory Database JDBC Extensions Java API Reference
11g Release 2 (11.2.2)

E21647-03


Copyright © 1999, 2013, Oracle and/or its affiliates. All rights reserved.