01: package org.objectweb.salome_tmf.api.sql;
02:
03: import java.sql.Connection;
04: import java.sql.PreparedStatement;
05: import java.sql.ResultSet;
06: import java.sql.SQLException;
07:
08: public interface IDataBase {
09:
10: public void openPoolConnection(String url, String username,
11: String password) throws Exception;
12:
13: public void open(String url, String username, String password)
14: throws Exception;
15:
16: public void open(String url, String username, String password,
17: java.util.Properties prop_proxy) throws Exception;
18:
19: public ResultSet executeQuery(String sql) throws Exception;
20:
21: public void executeUpdate(String sql) throws Exception;
22:
23: public PreparedStatement prepareStatement(String sql)
24: throws Exception;
25:
26: public void beginTrans() throws SQLException;
27:
28: public void commit() throws SQLException;
29:
30: public void rollback() throws SQLException;
31:
32: public void close() throws Exception;
33:
34: public Connection getCnt() throws Exception;
35:
36: public void setCnt(Connection cnt) throws Exception;
37: }
|