@Test public void testInsert() throws Exception { given(handle.createStatement("q1")).willReturn(update); given(update.execute()).willReturn(1); transaction.insert("q1", new Object[]{}); }
@Override public void insert(final String query, final Object... params) throws Exception { insert(false, query, params); }
DBITransaction implements Transaction { @Override public void insert(final String query, final Object... params) throws Exception { insert(false, query, params); } }
DBITransaction implements Transaction { @Override public void insert(final String query, final Object... params) throws Exception { insert(false, query, params); } DBITransaction(DBI dbi); }
DBITransaction implements Transaction { @Override public void insert(final String query, final Object... params) throws Exception { insert(false, query, params); } DBITransaction(DBI dbi); @Override Object transaction(Block block); @Override S attach(Class<S> transactional); @Override List select(final String query, final Object... params); @Override void insert(final String query, final Object... params); @Override Integer insertAndReturnKey(final String query, final Object... params); @Override Integer update(final String query, final Object... params); void close(Handle handle); }
DBITransaction implements Transaction { @Override public void insert(final String query, final Object... params) throws Exception { insert(false, query, params); } DBITransaction(DBI dbi); @Override Object transaction(Block block); @Override S attach(Class<S> transactional); @Override List select(final String query, final Object... params); @Override void insert(final String query, final Object... params); @Override Integer insertAndReturnKey(final String query, final Object... params); @Override Integer update(final String query, final Object... params); void close(Handle handle);  }