KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > h2 > test > synth > DbInterface


1 /*
2  * Copyright 2004-2006 H2 Group. Licensed under the H2 License, Version 1.0 (http://h2database.com/html/license.html).
3  * Initial Developer: H2 Group
4  */

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