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 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 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 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; } }
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; } }
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; } }
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; } }
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; } }
protected void createConnection() throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("DirectRecoverableConnection.createConnection"); } if ((_dynamic == null) || (_dynamic.equals(""))) { throw new SQLException(jdbcLogger.i18NLogger.get_dynamicerror()); } else { try { if (_theDataSource == null) { _dynamicConnection = ClassloadingUtility.loadAndInstantiateClass(DynamicClass.class, _dynamic, null); if (_dynamicConnection == null) { throw new SQLException(jdbcLogger.i18NLogger.get_dynamicerror()); } _theDataSource = _dynamicConnection.getDataSource(_dbName); } super.createConnection(); } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } } }
protected void createConnection() throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("DirectRecoverableConnection.createConnection"); } if ((_dynamic == null) || (_dynamic.equals(""))) { throw new SQLException(jdbcLogger.i18NLogger.get_dynamicerror()); } else { try { if (_theDataSource == null) { _dynamicConnection = ClassloadingUtility.loadAndInstantiateClass(DynamicClass.class, _dynamic, null); if (_dynamicConnection == null) { throw new SQLException(jdbcLogger.i18NLogger.get_dynamicerror()); } _theDataSource = _dynamicConnection.getDataSource(_dbName); } super.createConnection(); } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } } }
protected void createConnection() throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("DirectRecoverableConnection.createConnection"); } if ((_dynamic == null) || (_dynamic.equals(""))) { throw new SQLException(jdbcLogger.i18NLogger.get_dynamicerror()); } else { try { if (_theDataSource == null) { _dynamicConnection = ClassloadingUtility.loadAndInstantiateClass(DynamicClass.class, _dynamic, null); if (_dynamicConnection == null) { throw new SQLException(jdbcLogger.i18NLogger.get_dynamicerror()); } _theDataSource = _dynamicConnection.getDataSource(_dbName); } super.createConnection(); } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } } }
protected void createConnection() throws SQLException { if (jdbcLogger.logger.isTraceEnabled()) { jdbcLogger.logger.trace("DirectRecoverableConnection.createConnection"); } if ((_dynamic == null) || (_dynamic.equals(""))) { throw new SQLException(jdbcLogger.i18NLogger.get_dynamicerror()); } else { try { if (_theDataSource == null) { _dynamicConnection = ClassloadingUtility.loadAndInstantiateClass(DynamicClass.class, _dynamic, null); if (_dynamicConnection == null) { throw new SQLException(jdbcLogger.i18NLogger.get_dynamicerror()); } _theDataSource = _dynamicConnection.getDataSource(_dbName); } super.createConnection(); } catch (Exception e) { e.printStackTrace(); SQLException sqlException = new SQLException(e.toString()); sqlException.initCause(e); throw sqlException; } } }