public class IfxXAReusableConnection extends IfxSqliConnect
ANSIMODE, ANSIWARN, asfconn, cleaner, cleanerMaximumDelay, cleanerMinimumDelay, cleanerZeroPointPercentage, ConnEst, connInfo, dbName, delimIdent, encoption, externalVersion, fileList, freeclobwithrs, GclEnv, HASLOG, ifxAllowOut, ifxtojava, implicitCache, isOpen, javatoifx, jdbcGeneratedSavepointId_, jdbcGeneratedSavepointNamePrefix__, Noansiwarn, preparedStatementClosedCount, preparedStatementCount, preparedStatementReusedCount, productName, proto, protoClassName, queueOfConnections, replCheck, socketTimedOut, softCloseDone, stmtList, stmtReferenceQueue, stmtWeakReferenceCloseCount, svptList, useCaseCapName, usePut, userNameLOGGING_MODE, MODE_ANSI, NO_DATABASE, NO_LOGGING_MODE, TRANSACTION_LAST_COMMITTED| Constructor and Description |
|---|
IfxXAReusableConnection(java.lang.String luser,
java.lang.String lpasswd,
IfxPooledConnection pooledConn,
java.lang.String url,
java.util.Properties props)
Constructor for the connection class:
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
clearTransactions(boolean rollbackXids) |
void |
close()
In some cases, it is desirable to immediately release a
Connection's database and JDBC resources instead of waiting for
them to be automatically released; the close method provides this
immediate release.
|
void |
commit()
Commit makes all changes made since the previous
commit/rollback permanent and releases any database locks
currently held by the Connection.
|
protected void |
finalize() |
boolean |
getAutoCommit()
Get the current auto-commit state (overrides parent method)
Auto-Commit mode for XA transaction is always false
if in XA transaction return false
else return super.getAutoCommit
|
javax.transaction.xa.Xid |
getCurrentXid() |
boolean |
inXATransaction()
Returns true if start has been called to begin (or resume) an
XA transaction.
|
protected boolean |
isCommitNeeded() |
boolean |
isXAConnection()
Returns true if the connection is XA as opposed to plain.
|
void |
rollback()
Rollback drops all changes made since the previous
commit/rollback and releases any database locks currently held
by the Connection.
|
void |
setAutoCommit(boolean newAC)
Set the current auto-commit state (overrides parent method)
Auto-Commit mode for XA transaction is always false
if new mode != old mode and transaction started then throw exception
if new mode == old mode and transaction started then ignore
note: if in XA transaction then old mode == false
|
abort, addToBlobList, addToFileList, addUDTInfo, changeStmtId, clearWarnings, closeAllResultSets, closeAllStatements, createArrayOf, createBlob, createClob, createNClob, createProto, createSQLXML, createStatement, createStatement, createStatement, createStruct, deleteAllFiles, doesBlobNeedPurge, endMetaDataQuery, freeStatementWeakReferences, getAutoFree, getBlobCacheSize, getCachedPreparedStatement, getCatalog, getclEncoding, getClientInfo, getClientInfo, getclLocale, getclLocaleProp, getConnClassName, getConnectionDbName, getDatabaseProductVersion, getDatabaseType, getdbCentury, getdbDate, getdbEncoding, getdbLocale, getdbLocaleProp, getDbName, getDbProductName, getdbTime, getdbTodayDate, getdbTodayStart, getDbVersion, getFetchBufSize, getFPCacheFParam, getFPCacheRoutineId, getGeneratedCursor, getglDate, getglDateTime, getHDRType, getHoldability, getIFX_USEPUT, getIsBigInt, getIsBigSerial, getJDBCTempDir, getJDBCVersion, getLOMode, getMapFloat, getMapReal, getMaxLvarcharSize, getMetaData, getNetworkTimeout, getOPTOFC, getPreparedStatementCache, getProto, getProtoClassName, getProtoTrace, getSchema, getSqlLogicalChar, getSQLStatementOffset, getTrace, getTransactionIsolation, getTrimTrailingSpaces, getTypeMap, getUDTInfo, getUDTInfo, getUDTInfo, getUDTInfo, getURL, getuseDtenv, getUsePut, getUserName, getWarnings, getXnameByXid, is2GBFetchBufferSupported, is4ByteOffsetSupported, is90303, is9301, isANSI, isANSIJoin, isAutoFree, isAutoGeneratedKeysSupported, isBigintSupported, isClosed, isCommitEnabled, isDbOpen, isDelimIdentSet, isDescribeInputSupported, isDirect, isFPDescribeSupported, isGLS, isHDREnabled, isIEEEM, isInUserTransaction, IsLastCommittedSupported, isLongID, isLvcGtThan2kSupported, isMultipleUdrInOutSupported, isMultipleUdrOutSupported, isNamedParametersSupported, isOnLine, isOnLine5SER, isPAMAuthentication, isPrivateServerEnabled, isReadOnly, isRemove64KLimitSupported, isReplCheckColumnEnabled, isSavepointSupported, isSQBatchSupported, isSysmaster, isUSVER, isValid, isWrapperFor, isXPS, isXPSVER8_40, isXPSVER8_50, loadUDTba, lockSession, markCursorsToClosed, markStatementAsReleased, nativeSQL, parseIfxLocale, prepareCall, prepareCall, prepareCall, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, prepareStatement, releaseBlob, releaseSavepoint, removeFromBlobTable, removeFromStmtList, removeSavepointFromList, resetDatabaseProperties, retCapName, returnEnc, rollback, scrubConnection, scrubConnectionReleasesAllStatements, setCatalog, setClientInfo, setClientInfo, setCommitEnabled, setDatabaseProductVersion, setFPCacheInfo, setHoldability, setIFX_USEPUT, setIsBigInt, setIsBigSerial, setLocale, setNetworkTimeout, SetPrimEVars, setReadOnly, setReplCheckColumnEnabled, setSavepoint, setSavepoint, setSavepointUnique, setSchema, setServerIsolationLevel, setStructInfo, setTransactionIsolation, setTransactionIsolation, setTxnIsolationLvl, setTypeMap, startMetaDataQuery, testLockSession, unlockSession, unwrap, xaSetSerWarnFlagspublic IfxXAReusableConnection(java.lang.String luser,
java.lang.String lpasswd,
IfxPooledConnection pooledConn,
java.lang.String url,
java.util.Properties props)
throws java.sql.SQLException
java.sql.SQLExceptionprotected void finalize()
finalize in class IfxSqliConnectpublic void close()
throws java.sql.SQLException
IfxSqliConnectNote: A Connection is automatically closed when it is garbage collected. Certain fatal errors also result in a closed Connection.
close in interface java.lang.AutoCloseableclose in interface java.sql.Connectionclose in class IfxSqliConnectjava.sql.SQLExceptionpublic void commit()
throws java.sql.SQLException
If the current database does not support transactions, an SQLException is thrown.
Uses the IfxProtocol class's executeCommit() method to do the actual committing.
commit in interface java.sql.Connectioncommit in class IfxSqliConnectjava.sql.SQLExceptionpublic void rollback()
throws java.sql.SQLException
If the current database does not support transactions, an SQLException is thrown.
Uses the IfxProtocol class's executeCommit() method to do the actual rollback.
rollback in interface java.sql.Connectionrollback in class IfxSqliConnectjava.sql.SQLExceptionpublic boolean getAutoCommit()
throws java.sql.SQLException
getAutoCommit in interface java.sql.ConnectiongetAutoCommit in class IfxSqliConnectjava.sql.SQLExceptionIfxSqliConnect.setAutoCommit(boolean)public void setAutoCommit(boolean newAC)
throws java.sql.SQLException
setAutoCommit in interface java.sql.ConnectionsetAutoCommit in class IfxSqliConnectautoCommit - true enables auto-commit; false disables
auto-commit.java.sql.SQLExceptionpublic boolean isXAConnection()
IfxConnectionisXAConnection in interface IfxConnectionisXAConnection in class IfxSqliConnectpublic boolean inXATransaction()
IfxConnectioninXATransaction in interface IfxConnectioninXATransaction in class IfxSqliConnectprotected void clearTransactions(boolean rollbackXids)
throws java.sql.SQLException
clearTransactions in class IfxSqliConnectjava.sql.SQLExceptionprotected boolean isCommitNeeded()
isCommitNeeded in class IfxSqliConnectpublic javax.transaction.xa.Xid getCurrentXid()