1 17 package org.apache.servicemix.jdbc; 18 19 import java.io.IOException ; 20 import java.sql.Connection ; 21 import java.sql.SQLException ; 22 23 public interface JDBCAdapter { 24 25 public void doCreateTables(Connection connection) throws SQLException , IOException ; 26 27 public void doDropTables(Connection connection) throws SQLException , IOException ; 28 29 public byte[] doLoadData(Connection connection, String id) throws SQLException , IOException ; 30 31 public byte[][] doLoadData(Connection connection, String [] ids) throws SQLException , IOException ; 32 33 public void doStoreData(Connection connection, String id, byte[] data) throws SQLException , IOException ; 34 35 public void doUpdateData(Connection connection, String id, byte[] data) throws SQLException , IOException ; 36 37 public void doRemoveData(Connection connection, String id) throws SQLException , IOException ; 38 39 public void doRemoveData(Connection connection, String [] ids) throws SQLException , IOException ; 40 41 public int doGetCount(Connection connection) throws SQLException , IOException ; 42 43 public String [] doGetIds(Connection connection) throws SQLException , IOException ; 44 45 public String [] doGetIds(Connection connection, int fromIndex, int toIndex) throws SQLException , IOException ; 46 47 public Statements getStatements(); 48 49 public void setStatements(Statements statements); 50 51 } 52 | Popular Tags |