public final void close() { reset(); }
public final boolean setTransaction(javax.transaction.Transaction tx) { if (tx == null) { _theTransaction = null; return true; } synchronized (this) { if (_theTransaction == null) { _theTransaction = tx; return true; } } /* * In case we have already set it for this transaction. */ return validTransaction(tx); }
public final XAConnection getConnection() throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("BaseTransactionalDriverXAConnection.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; } }
/** * @return a new XAResource for this connection. */ public final XAResource getResource() throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("BaseTransactionalDriverXAConnection.getResource ()"); } try { if (_theXAResource == null) if (_theModifier != null && _theModifier.requiresSameRMOverride()) { _theXAResource = new IsSameRMOverrideXAResource(getConnection().getXAResource()); } else { _theXAResource = getConnection().getXAResource(); } return _theXAResource; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
public final XAConnection getConnection() throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("BaseTransactionalDriverXAConnection.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; } }
/** * @return a new XAResource for this connection. */ public final XAResource getResource() throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("BaseTransactionalDriverXAConnection.getResource ()"); } try { if (_theXAResource == null) if (_theModifier != null && _theModifier.requiresSameRMOverride()) { _theXAResource = new IsSameRMOverrideXAResource(getConnection().getXAResource()); } else { _theXAResource = getConnection().getXAResource(); } return _theXAResource; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
public final XAConnection getConnection() throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("BaseTransactionalDriverXAConnection.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; } }
public final void close() { reset(); }
public final boolean setTransaction(javax.transaction.Transaction tx) { if (tx == null) { _theTransaction = null; return true; } synchronized (this) { if (_theTransaction == null) { _theTransaction = tx; return true; } } /* * In case we have already set it for this transaction. */ return validTransaction(tx); }
/** * @return a new XAResource for this connection. */ public final XAResource getResource() throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("BaseTransactionalDriverXAConnection.getResource ()"); } try { if (_theXAResource == null) if (_theModifier != null && _theModifier.requiresSameRMOverride()) { _theXAResource = new IsSameRMOverrideXAResource(getConnection().getXAResource()); } else { _theXAResource = getConnection().getXAResource(); } return _theXAResource; } 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 final void close() { reset(); }
public final boolean setTransaction(javax.transaction.Transaction tx) { if (tx == null) { _theTransaction = null; return true; } synchronized (this) { if (_theTransaction == null) { _theTransaction = tx; return true; } } /* * In case we have already set it for this transaction. */ return validTransaction(tx); }
/** * @return a new XAResource for this connection. */ public final XAResource getResource() throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("BaseTransactionalDriverXAConnection.getResource ()"); } try { if (_theXAResource == null) if (_theModifier != null && _theModifier.requiresSameRMOverride()) { _theXAResource = new IsSameRMOverrideXAResource(getConnection().getXAResource()); } else { _theXAResource = getConnection().getXAResource(); } return _theXAResource; } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } }
public final XAConnection getConnection() throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("BaseTransactionalDriverXAConnection.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; } }
public final void close() { reset(); }
public final boolean setTransaction(javax.transaction.Transaction tx) { if (tx == null) { _theTransaction = null; return true; } 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 final void closeCloseCurrentConnection() throws SQLException { synchronized (this) { if (_theConnection != null) { _theConnection.close(); _theConnection = null; reset(); } } }
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; } }