public final void close () { reset(); }
public boolean setTransaction (javax.transaction.Transaction tx) { synchronized (this) { if (_theTransaction == null) { _theTransaction = tx; return true; } } /* * In case we have already set it for this transaction. */ return validTransaction(tx); }
protected void createConnection() throws SQLException { try { if (_theDataSource == null) createDataSource(); super.createConnection(); } catch (SQLException ex) { throw ex; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
public ConnectionImple(String dbName, String user, String passwd, String dynamic) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("ConnectionImple.ConnectionImple ( " + dbName + ", " + user + ", " + passwd + ", " + dynamic + " )"); } if ((dynamic == null) || (dynamic.equals(""))) { _recoveryConnection = new IndirectRecoverableConnection(dbName, user, passwd, this); } else { _recoveryConnection = new DirectRecoverableConnection(dbName, user, passwd, dynamic, this); } /* * Any "modifier" required to work with? */ _theModifier = null; _theConnection = null; }
public XAResource getResource () throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("IndirectRecoverableConnection.getResource ()"); } try { if (_theXAResource == null) _theXAResource = getConnection().getXAResource(); return _theXAResource; } catch (Exception e) { SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
public XAConnection getConnection () throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("IndirectRecoverableConnection.getConnection ()"); } try { synchronized (this) { if (_theConnection == null) { createConnection(); } } return _theConnection; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
protected void createConnection() throws SQLException { try { if (_theDataSource == null) createDataSource(); super.createConnection(); } catch (SQLException ex) { throw ex; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
public ConnectionImple(String dbName, String user, String passwd, String dynamic) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("ConnectionImple.ConnectionImple ( " + dbName + ", " + user + ", " + passwd + ", " + dynamic + " )"); } if ((dynamic == null) || (dynamic.equals(""))) { _recoveryConnection = new IndirectRecoverableConnection(dbName, user, passwd, this); } else { _recoveryConnection = new DirectRecoverableConnection(dbName, user, passwd, dynamic, this); } /* * Any "modifier" required to work with? */ _theModifier = null; _theConnection = null; }
public XAResource getResource () throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("IndirectRecoverableConnection.getResource ()"); } try { if (_theXAResource == null) _theXAResource = getConnection().getXAResource(); return _theXAResource; } catch (Exception e) { SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
public XAConnection getConnection () throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("IndirectRecoverableConnection.getConnection ()"); } try { synchronized (this) { if (_theConnection == null) { createConnection(); } } return _theConnection; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
protected void createConnection() throws SQLException { try { if (_theDataSource == null) createDataSource(); super.createConnection(); } catch (SQLException ex) { throw ex; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
public ConnectionImple(String dbName, Properties info) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("ConnectionImple.ConnectionImple ( " + dbName + " )"); } String user = null; String passwd = null; String dynamic = null; if (info != null) { user = info.getProperty(TransactionalDriver.userName); passwd = info.getProperty(TransactionalDriver.password); dynamic = info.getProperty(TransactionalDriver.dynamicClass); } if ((dynamic == null) || (dynamic.equals(""))) { _recoveryConnection = new IndirectRecoverableConnection(dbName, user, passwd, this); } else { _recoveryConnection = new DirectRecoverableConnection(dbName, user, passwd, dynamic, this); } /* * Is there any "modifier" we are required to work with? */ _theModifier = null; _theConnection = null; }
/** * @message com.arjuna.ats.internal.jdbc.idrcclose Caught exception */ public final void close () { reset(); }
public boolean setTransaction (javax.transaction.Transaction tx) { synchronized (this) { if (_theTransaction == null) { _theTransaction = tx; return true; } } /* * In case we have already set it for this transaction. */ return validTransaction(tx); }
public XAResource getResource () throws SQLException { if (jdbcLogger.logger.isDebugEnabled()) { jdbcLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jdbc.logging.FacilityCode.FAC_JDBC, "IndirectRecoverableConnection.getResource ()"); } try { if (_theXAResource == null) _theXAResource = getConnection().getXAResource(); return _theXAResource; } catch (Exception e) { SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
public XAConnection getConnection () throws SQLException { if (jdbcLogger.logger.isDebugEnabled()) { jdbcLogger.logger.debug(DebugLevel.FUNCTIONS, VisibilityLevel.VIS_PUBLIC, com.arjuna.ats.jdbc.logging.FacilityCode.FAC_JDBC, "IndirectRecoverableConnection.getConnection ()"); } try { synchronized (this) { if (_theConnection == null) { createConnection(); } } return _theConnection; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
protected void createConnection() throws SQLException { try { if (_theDataSource == null) createDataSource(); super.createConnection(); } catch (SQLException ex) { throw ex; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
public ConnectionImple(String dbName, Properties info) throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("ConnectionImple.ConnectionImple ( " + dbName + " )"); } String user = null; String passwd = null; String dynamic = null; if (info != null) { user = info.getProperty(TransactionalDriver.userName); passwd = info.getProperty(TransactionalDriver.password); dynamic = info.getProperty(TransactionalDriver.dynamicClass); } if ((dynamic == null) || (dynamic.equals(""))) { _recoveryConnection = new IndirectRecoverableConnection(dbName, user, passwd, this); } else { _recoveryConnection = new DirectRecoverableConnection(dbName, user, passwd, dynamic, this); } /* * Is there any "modifier" we are required to work with? */ _theModifier = null; _theConnection = null; }
public final void close () { reset(); }
public boolean setTransaction (javax.transaction.Transaction tx) { synchronized (this) { if (_theTransaction == null) { _theTransaction = tx; return true; } } /* * In case we have already set it for this transaction. */ return validTransaction(tx); }