|
Oracle® Universal Connection Pool for JDBC Java API Reference 11g Release 2 (11.2.0.4) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ucp.jdbc.PoolDataSourceImpl
oracle.ucp.jdbc.PoolXADataSourceImpl
public class PoolXADataSourceImpl
A connection pool-aware data source. This DataSource uses the Universal Connection Pool to get an XAconneciton, creating a proxy to that connection, and returning the proxy to the client. When the client calls close on the XAConnection proxy, the underlying physical connection is usually returned to the pool. Also see the proxy factory.
Besides other data source properties, applications must set the connection factory class name. The connection factory class is a class that implements javax.sql.XADataSource and does not implement its own connection pooling. The connection factory's getXAConnection(...) methods should return a physical XAConnection to the database. For example, "oracle.jdbc.xa.client.OracleXADataSource" is a valid connection factory class name.
| Field Summary |
|---|
| Fields inherited from class oracle.ucp.jdbc.PoolDataSourceImpl |
|---|
m_connectionFactory, m_connectionFactoryClassName, m_cp |
| Constructor Summary | |
|---|---|
PoolXADataSourceImpl()
|
|
| Method Summary | |
|---|---|
protected void |
createPoolWithDefaultProperties()
|
java.sql.Connection |
getConnection()
|
java.sql.Connection |
getConnection(java.util.Properties labels)
Attempts to obtain a database connection with the requested connection labels. |
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password)
|
java.sql.Connection |
getConnection(java.lang.String username,
java.lang.String password,
java.util.Properties labels)
Attempts to obtain a database connection with the requested connection labels. |
javax.sql.XAConnection |
getXAConnection()
Obtains an XAConnection from the embedded Universal Connection Pool instance. |
javax.sql.XAConnection |
getXAConnection(java.util.Properties labels)
Obtains an XAConnection from the embedded Universal Connection Pool instance, using the given connection labels. |
javax.sql.XAConnection |
getXAConnection(java.lang.String user,
java.lang.String password)
Obtains an XAConnection from the embedded Universal Connection Pool instance, using the given user name and password. |
javax.sql.XAConnection |
getXAConnection(java.lang.String username,
java.lang.String password,
java.util.Properties labels)
Obtains an XAConnection from the embedded Universal Connection Pool instance, using the given user name, password, and connection labels. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.sql.CommonDataSource |
|---|
getLoginTimeout, getLogWriter, setLoginTimeout, setLogWriter |
| Methods inherited from interface java.sql.Wrapper |
|---|
isWrapperFor, unwrap |
| Methods inherited from interface javax.naming.Referenceable |
|---|
getReference |
| Methods inherited from interface javax.naming.spi.ObjectFactory |
|---|
getObjectInstance |
| Methods inherited from interface oracle.ucp.UniversalConnectionPoolAdapter |
|---|
createUniversalConnectionPool, createUniversalConnectionPoolMBean |
| Constructor Detail |
|---|
public PoolXADataSourceImpl()
| Method Detail |
|---|
protected void createPoolWithDefaultProperties()
throws java.sql.SQLException
createPoolWithDefaultProperties in class PoolDataSourceImpljava.sql.SQLException
public java.sql.Connection getConnection()
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcegetConnection in class PoolDataSourceImpljava.sql.SQLException
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password)
throws java.sql.SQLException
getConnection in interface javax.sql.DataSourcegetConnection in class PoolDataSourceImpljava.sql.SQLException
public java.sql.Connection getConnection(java.util.Properties labels)
throws java.sql.SQLException
PoolDataSourceImpl
getConnection in interface PoolDataSourcegetConnection in class PoolDataSourceImpllabels - The requested connection labels.
java.sql.SQLException - if a database-access error occurs.
public java.sql.Connection getConnection(java.lang.String username,
java.lang.String password,
java.util.Properties labels)
throws java.sql.SQLException
PoolDataSourceImpl
getConnection in interface PoolDataSourcegetConnection in class PoolDataSourceImplusername - The database user on whose behalf the connection is
being made.password - The user's password.labels - The requested connection labels.
java.sql.SQLException - if a database-access error occurs.
public javax.sql.XAConnection getXAConnection()
throws java.sql.SQLException
getXAConnection in interface javax.sql.XADataSourcegetXAConnection in interface PoolXADataSourceXAConnection object, which represents a
physical connection to a data source, that can be used in
a distributed transaction
java.sql.SQLException - if a database access error occurs
public javax.sql.XAConnection getXAConnection(java.lang.String user,
java.lang.String password)
throws java.sql.SQLException
getXAConnection in interface javax.sql.XADataSourcegetXAConnection in interface PoolXADataSourceuser - The database user on whose behalf the connection
is being made.password - The user's password.
XAConnection object, which represents a
physical connection to a data source, that can be used in
a distributed transaction.
java.sql.SQLException - if a database access error occurs.
public javax.sql.XAConnection getXAConnection(java.util.Properties labels)
throws java.sql.SQLException
getXAConnection in interface PoolXADataSourcelabels - The requested connection labels.
XAConnection object, which represents a
physical connection to a data source, that can be used in
a distributed transaction.
java.sql.SQLException - if a database access error occurs.
public javax.sql.XAConnection getXAConnection(java.lang.String username,
java.lang.String password,
java.util.Properties labels)
throws java.sql.SQLException
getXAConnection in interface PoolXADataSourceusername - The database user on whose behalf the connection
is being made.password - The user's password.labels - The requested connection labels.
XAConnection object, which represents a
physical connection to a data source, that can be used in
a distributed transaction.
java.sql.SQLException - if a database access error occurs.
|
Oracle® Universal Connection Pool for JDBC Java API Reference 11g Release 2 (11.2.0.4) |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||