Package com.nuodb.jdbc
Class NuoXADataSource
- java.lang.Object
-
- com.nuodb.jdbc.DataSource
-
- com.nuodb.jdbc.NuoXADataSource
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Wrapper,CommonDataSource,ConnectionPoolDataSource,DataSource,XADataSource
public class NuoXADataSource extends DataSource implements XADataSource
-
-
Field Summary
-
Fields inherited from class com.nuodb.jdbc.DataSource
ALL_PROPERTIES, DEFAULT_INITIALSIZE, DEFAULT_MAXSTATEMENTS, DEFAULT_MAXSTATEMENTSPERCONNECTION, DEFAULT_URL, DRIVER_CLASS_NAME, DRIVER_URL_PREFIX, HIBERNATE_DRIVER_CLASS_NAME, HIBERNATE_DRIVER_URL_PREFIX, PROP_DEFAULTAUTOCOMMIT, PROP_DEFAULTREADONLY, PROP_IDLEVALIDATIONINTERVAL, PROP_INITIALSIZE, PROP_MAXACTIVE, PROP_MAXAGE, PROP_MAXIDLE, PROP_MAXSTATEMENTS, PROP_MAXSTATEMENTSPERCONNECTION, PROP_MAXWAIT, PROP_MINIDLE, PROP_PASSWORD, PROP_SCHEMA, PROP_SQL_ENGINE, PROP_TESTONBORROW, PROP_TESTONRETURN, PROP_TESTWHILEIDLE, PROP_URL, PROP_URLDELIMITER, PROP_USER, PROP_USERNAME, PROP_VALIDATIONINTERVAL, PROP_VALIDATIONQUERY
-
-
Constructor Summary
Constructors Constructor Description NuoXADataSource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description XAConnectiongetXAConnection()XAConnectiongetXAConnection(String user, String pwd)Returns an XAConnection setting the specified user and password-
Methods inherited from class com.nuodb.jdbc.DataSource
close, connectionsAreIdentical, createConnectionHelper, getConnection, getConnection, getLoginTimeout, getLogWriter, getParentLogger, getPoolActiveConnectionSize, getPooledConnection, getPooledConnection, getPoolIdleConnectionSize, isWrapperFor, setDefaultAutoCommit, setDefaultReadOnly, setDefaultSchema, setInitialSize, setLoginTimeout, setLogWriter, setMaxActive, setMaxAge, setMaxIdle, setMaxStatementsPerConnection, setMaxWait, setMinIdle, setPassword, setProperties, setSchema, setSQLEngine, setTestOnBorrow, setTestOnReturn, setTestWhileIdle, setTimeBetweenEvictionRunsMillis, setUrl, setUrlDelimiter, setUser, setUsername, setValidationInterval, setValidationQuery, toString, unwrap
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.sql.CommonDataSource
createShardingKeyBuilder, getParentLogger
-
Methods inherited from interface javax.sql.ConnectionPoolDataSource
createPooledConnectionBuilder
-
Methods inherited from interface javax.sql.DataSource
createConnectionBuilder
-
Methods inherited from interface javax.sql.XADataSource
createXAConnectionBuilder, getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter
-
-
-
-
Method Detail
-
getXAConnection
public XAConnection getXAConnection() throws SQLException
- Specified by:
getXAConnectionin interfaceXADataSource- Throws:
SQLException
-
getXAConnection
public XAConnection getXAConnection(String user, String pwd) throws SQLException
Returns an XAConnection setting the specified user and password- Specified by:
getXAConnectionin interfaceXADataSource- Parameters:
user- the database user on whose behalf the connection is being madepwd- the user's password- Returns:
- a XAConnection to the data source
- Throws:
SQLException- if a database access error occurs
-
-