public PreparedStatement prepareStatement(String sql) throws SQLException { checkTransaction(); registerDatabase(); return getConnection().prepareStatement(sql); }
public Savepoint setSavepoint(String name) throws SQLException { if (transactionRunning()) { throw new SQLException(jdbcLogger.logMesg.getString("com.arjuna.ats.internal.jdbc.setsavepointerror")); } else { return getConnection().setSavepoint(name); } }
public void setTransactionIsolation(int iso) throws SQLException { checkTransaction(); /* * if (iso != Connection.TRANSACTION_SERIALIZABLE) throw new * SQLException(jdbcLogger.loggerI18N.getString.getString("com.arjuna.ats.internal.jdbc.stateerror")+"Connection.TRANSACTION_SERIALIZABLE"); */ getConnection().setTransactionIsolation(iso); }
while (iterator.hasNext()) { ConnectionImple c = iterator.next(); ConnectionControl connControl = c.connectionControl(); TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); Transaction tx1, tx2 = null; if (!c.isClosed()) { conn.incrementUseCount(); break; if (conn == null) { for (ConnectionImple con : _connections) { if (!con.inUse() && isSameConnection(dbUrl, user, passwd, dynamic, xaDataSource, con.connectionControl())) { conn = con; conn.incrementUseCount(); break; conn = new ConnectionImple(dbUrl, info);
ConnectionControl connControl = conn.connectionControl(); TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); Transaction tx1, tx2 = null; if (!conn.isClosed()) ConnectionImple conn = new ConnectionImple(dbUrl, info);
Connection theConnection = getConnection(); + jdbcLogger.i18NLogger.get_enlistfailed()); } else { getModifier();
ConnectionControl connControl = conn.connectionControl(); TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); Transaction tx1, tx2 = null; if (!conn.isClosed())
public void afterCompletion(int status) { try { if (_theConnection != null) { _theConnection.closeImpl(); } } catch (Exception ex) { jdbcLogger.i18NLogger.warn_not_closed(ex); } }
while (iterator.hasNext()) { ConnectionImple c = iterator.next(); ConnectionControl connControl = c.connectionControl(); TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); Transaction tx1, tx2 = null; if (!c.isClosed()) { conn.incrementUseCount(); break; if (conn == null) { for (ConnectionImple con : _connections) { if (!con.inUse() && isSameConnection(dbUrl, user, passwd, dynamic, xaDataSource, con.connectionControl())) { conn = con; conn.incrementUseCount(); break; conn = new ConnectionImple(dbUrl, info);
ConnectionControl connControl = conn.connectionControl(); TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); Transaction tx1, tx2 = null; if (!conn.isClosed()) ConnectionImple conn = new ConnectionImple(dbUrl, info);
Connection theConnection = getConnection(); + jdbcLogger.i18NLogger.get_enlistfailed()); } else { getModifier();
public void afterCompletion(int status) { try { if (_theConnection != null) { _theConnection.closeImpl(); } } catch (Exception ex) { jdbcLogger.i18NLogger.warn_not_closed(ex); } }
public String getCatalog() throws SQLException { checkTransaction(); registerDatabase(); return getConnection().getCatalog(); }
public void rollback(Savepoint savepoint) throws SQLException { if (transactionRunning()) { throw new SQLException(jdbcLogger.i18NLogger.get_rollbacksavepointerror()); } else { getConnection().rollback(savepoint); } }
while (iterator.hasNext()) { ConnectionImple c = iterator.next(); ConnectionControl connControl = c.connectionControl(); TransactionManager tm = com.arjuna.ats.jta.TransactionManager.transactionManager(); Transaction tx1, tx2 = null; if (!c.isClosed()) { conn.incrementUseCount(); break; if (conn == null) { for (ConnectionImple con : _connections) { if (!con.inUse() && isSameConnection(dbUrl, user, passwd, dynamic, xaDataSource, con.connectionControl())) { conn = con; conn.incrementUseCount(); break; conn = new ConnectionImple(dbUrl, info);
Connection theConnection = getConnection(); + jdbcLogger.i18NLogger.get_enlistfailed()); } else { getModifier();
public void afterCompletion(int status) { try { if (_theConnection != null) { _theConnection.closeImpl(); } } catch (Exception ex) { jdbcLogger.i18NLogger.warn_not_closed(ex); } }