9596979899100101102
public DBSavePoint savePoint() throws DBException { try { logger.info("Save Point start"); return new DBSavePoint(getNativeConnection().setSavepoint()); } catch (SQLException e) { throw new DBException(e); } }
104105106107108109110111
public void releasePoint(DBSavePoint point) throws DBException { try { getNativeConnection().releaseSavepoint((Savepoint) point.getNativeObject()); logger.info("Save Point released"); } catch (SQLException e) { throw new DBException(e); } }
113114115116117118119120
public void rollback(DBSavePoint point) throws DBException { try { getNativeConnection().rollback((Savepoint) point.getNativeObject()); logger.info("Save Point rollback"); } catch (SQLException e) { throw new DBException(e); } }
125126127128129130131132
public boolean isTransactionActive() throws DBException { try { return getNativeConnection().getAutoCommit() == false; } catch (SQLException e) { throw new DBException(e); } }
122123124125126127128129130131
try { StringFilter stringFilter = new StringFilter(query, params); stringFilter.config(this); this.stringFilters.add(stringFilter); } catch (Exception e) { throw new DBException(e); } return this; }
155156157158159160161162163164165
for (StringFilter filter : filters) { try { filter.config(this); this.stringFilters.add(filter); } catch (Exception e) { throw new DBException(e); } } this.stringFilters.addAll(filters); return this; }
3637383940414243
public DBConnection getConnection() throws DBException { try { return new JDBCConnection(this.dataSource.getConnection()); } catch (Exception e) { throw new DBException(e); } }
4041424344454647
this.user = user; this.password = password; try { Class.forName(driver); } catch (ClassNotFoundException e) { throw new DBException(e); } }
4950515253545556
public DBConnection getConnection() throws DBException { try { return new JDBCConnection(DriverManager.getConnection(this.connection, this.user, this.password)); } catch (Exception e) { e.printStackTrace(); throw new DBException(e); } }
176177178179180181182183184
public Cluster filterCluster(String query, Object ... params) throws DBException { try { stringFilters.add(new StringFilter(query, toList(params))); } catch (Exception e) { throw new DBException(e); } return this; }