1 24 25 package com.mckoi.database.jdbc; 26 27 import java.sql.SQLException ; 28 29 35 36 public interface DatabaseInterface { 37 38 47 boolean login(String default_schema, String username, String password, 48 DatabaseCallBack call_back) throws SQLException ; 49 50 71 void pushStreamableObjectPart(byte type, long object_id, long object_length, 72 byte[] buf, long offset, int length) throws SQLException ; 73 74 82 QueryResponse execQuery(SQLQuery sql) throws SQLException ; 83 84 96 ResultPart getResultPart(int result_id, int row_number, int row_count) 97 throws SQLException ; 98 99 106 void disposeResult(int result_id) throws SQLException ; 107 108 117 StreamableObjectPart getStreamableObjectPart(int result_id, 118 long streamable_object_id, long offset, int len) throws SQLException ; 119 120 126 void disposeStreamableObject(int result_id, long streamable_object_id) 127 throws SQLException ; 128 129 133 void dispose() throws SQLException ; 134 135 } 136 | Popular Tags |