public void shouldEqual(Object[][] expectedTable) throws Exception { RdbUtils.assertEquals(RdbUtils.createTable(getTableName(), expectedTable), selectAll()); }
public void shouldBeEmpty() throws Exception { RdbUtils.assertTableEmpty(getJdbcConnection(), getTableName()); }
public void insert(Object[][] table) throws Exception { RdbUtils.insert(getJdbcConnection(), getTableName(), table); }
public void update(Object[][] table) throws Exception { RdbUtils.update(getJdbcConnection(), getTableName(), table); }
public void cleanInsertMergedTable(Object[][] base, Object[][] diff) throws Exception { RdbUtils.cleanInsertMergedDataSet(getJdbcConnection(), getTableName(), base, diff); }
public void deleteAll() throws Exception { RdbUtils.deleteAll(getJdbcConnection(), getTableName()); }
public ITable selectWhere(String where) throws Exception { return RdbUtils.query( getJdbcConnection(), getTableName(), "select * from " + getTableName() + " where " + where); }
public ITable selectAll() throws Exception { return RdbUtils.getTableData(getJdbcConnection(), getTableName()); }
private Connection getJdbcConnection() { return RdbUtils.getSpringTransactionalConnection(this.dataSource); }