1 5 package org.h2.test.synth; 6 7 import java.sql.SQLException ; 8 9 public interface DbInterface { 10 11 void reset() throws SQLException ; 12 void connect() throws Exception ; 13 void disconnect() throws SQLException ; 14 void end() throws SQLException ; 15 void createTable(Table table) throws SQLException ; 16 void dropTable(Table table) throws SQLException ; 17 void createIndex(Index index) throws SQLException ; 18 void dropIndex(Index index) throws SQLException ; 19 Result insert(Table table, Column[] c, Value[] v) throws SQLException ; 20 Result select(String sql) throws SQLException ; 21 Result delete(Table table, String condition) throws SQLException ; 22 Result update(Table table, Column[] columns, Value[] values, String condition) throws SQLException ; 23 void setAutoCommit(boolean b) throws SQLException ; 24 void commit() throws SQLException ; 25 void rollback() throws SQLException ; 26 } 27 | Popular Tags |