| Modifier and Type | Field and Description |
|---|---|
| private EmbedXAResource |
| Access | Constructor and Description |
|---|---|
| public | EmbedXAConnection(EmbeddedDataSourceInterface ds, ResourceAdapter ra, String u, String p, boolean requestPassword)
|
| xaRes | back to summary |
|---|---|
| private EmbedXAResource xaRes | |
| EmbedXAConnection | back to summary |
|---|---|
| public EmbedXAConnection(EmbeddedDataSourceInterface ds, ResourceAdapter ra, String u, String p, boolean requestPassword) throws SQLException | |
| checkAutoCommit | back to summary |
|---|---|
| public void checkAutoCommit(boolean autoCommit) throws SQLException Overrides org. Implements org. Allow control over setting auto commit mode.
| |
| checkClose | back to summary |
|---|---|
| public void checkClose() throws SQLException Overrides org. Implements org. Doc from org. Check if the brokered connection can be closed.
| |
| checkCommit | back to summary |
|---|---|
| public void checkCommit() throws SQLException Overrides org. Implements org. Allow control over calling commit.
| |
| checkHoldCursors | back to summary |
|---|---|
| public int checkHoldCursors(int holdability, boolean downgrade) throws SQLException Overrides org. Implements org. Are held cursors allowed. If the connection is attached to a global transaction then downgrade the result set holdabilty to CLOSE_CURSORS_AT_COMMIT if downgrade is true, otherwise throw an exception. If the connection is in a local transaction then the passed in holdabilty is returned.
| |
| checkRollback | back to summary |
|---|---|
| public void checkRollback() throws SQLException Overrides org. Implements org. Allow control over calling rollback.
| |
| checkSavepoint | back to summary |
|---|---|
| public void checkSavepoint() throws SQLException Overrides org. Implements org. Allow control over creating a Savepoint (JDBC 3.0)
| |
| getConnection | back to summary |
|---|---|
| public Connection getConnection() throws SQLException Overrides org. Implements javax. Doc from javax. Creates and returns a
| |
| getRealConnection | back to summary |
|---|---|
| public EngineConnection getRealConnection() throws SQLException Overrides org. Implements org. Override getRealConnection to create a a local connection when we are not associated with an XA transaction. This can occur if the application has a Connection object (conn) and the following sequence occurs. conn = xac.getConnection(); xac.start(xid, ...) // do work with conn xac.end(xid, ...); // do local work with conn // need to create new connection here.
| |
| getXAResource | back to summary |
|---|---|
| public final synchronized XAResource getXAResource() throws SQLException Implements javax. Doc from javax. Retrieves an
| |
| isGlobal | back to summary |
|---|---|
| private boolean isGlobal() Check if this connection is part of a global XA transaction.
| |
| isInGlobalTransaction | back to summary |
|---|---|
| public boolean isInGlobalTransaction() Overrides org. Implements org. Doc from org. Is this a global transaction
| |
| wrapStatement | back to summary |
|---|---|
| public Statement wrapStatement(Statement s) throws SQLException Overrides org. Implements org. Wrap and control a Statement
| |
| wrapStatement | back to summary |
|---|---|
| public PreparedStatement wrapStatement(PreparedStatement ps, String sql, Object generatedKeys) throws SQLException Overrides org. Implements org. Wrap and control a PreparedStatement
| |
| wrapStatement | back to summary |
|---|---|
| public CallableStatement wrapStatement(CallableStatement cs, String sql) throws SQLException Overrides org. Implements org. Wrap and control a PreparedStatement
| |