private void init (String dbName, String user, String passwd, String dynamic, Object xaDataSource, boolean poolingEnabled) throws SQLException { if (xaDataSource != null) { _transactionalDriverXAConnectionConnection = new ProvidedXADataSourceConnection(dbName, user, passwd, (XADataSource) xaDataSource, this); } else if ((dynamic == null) || (dynamic.equals(""))) { _transactionalDriverXAConnectionConnection = new IndirectRecoverableConnection(dbName, user, passwd, this); } else { _transactionalDriverXAConnectionConnection = new DirectRecoverableConnection(dbName, user, passwd, dynamic, this); } /* * Any "modifier" required to work with? */ _theModifier = null; getConnection(); _poolingEnabled = poolingEnabled; incrementUseCount(); }
private void init (String dbName, String user, String passwd, String dynamic, Object xaDataSource, boolean poolingEnabled) throws SQLException { if (xaDataSource != null) { _transactionalDriverXAConnectionConnection = new ProvidedXADataSourceConnection(dbName, user, passwd, (XADataSource) xaDataSource, this); } else if ((dynamic == null) || (dynamic.equals(""))) { _transactionalDriverXAConnectionConnection = new IndirectRecoverableConnection(dbName, user, passwd, this); } else { _transactionalDriverXAConnectionConnection = new DirectRecoverableConnection(dbName, user, passwd, dynamic, this); } /* * Any "modifier" required to work with? */ _theModifier = null; getConnection(); _poolingEnabled = poolingEnabled; incrementUseCount(); }
private void init (String dbName, String user, String passwd, String dynamic, Object xaDataSource, boolean poolingEnabled) throws SQLException { if (xaDataSource != null) { _transactionalDriverXAConnectionConnection = new ProvidedXADataSourceConnection(dbName, user, passwd, (XADataSource) xaDataSource, this); } else if ((dynamic == null) || (dynamic.equals(""))) { _transactionalDriverXAConnectionConnection = new IndirectRecoverableConnection(dbName, user, passwd, this); } else { _transactionalDriverXAConnectionConnection = new DirectRecoverableConnection(dbName, user, passwd, dynamic, this); } /* * Any "modifier" required to work with? */ _theModifier = null; getConnection(); _poolingEnabled = poolingEnabled; incrementUseCount(); }
private void init (String dbName, String user, String passwd, String dynamic, Object xaDataSource, boolean poolingEnabled) throws SQLException { if (xaDataSource != null) { _transactionalDriverXAConnectionConnection = new ProvidedXADataSourceConnection(dbName, user, passwd, (XADataSource) xaDataSource, this); } else if ((dynamic == null) || (dynamic.equals(""))) { _transactionalDriverXAConnectionConnection = new IndirectRecoverableConnection(dbName, user, passwd, this); } else { _transactionalDriverXAConnectionConnection = new DirectRecoverableConnection(dbName, user, passwd, dynamic, this); } /* * Any "modifier" required to work with? */ _theModifier = null; getConnection(); _poolingEnabled = poolingEnabled; incrementUseCount(); }