1 package com.daffodilwoods.daffodildb.server.serversystem; 2 3 import com.daffodilwoods.daffodildb.server.datadictionarysystem.*; 4 import com.daffodilwoods.database.general.*; 5 import com.daffodilwoods.database.resource.*; 6 7 public interface _Connection { public static final int EXECUTE = 0; 9 public static final int EXECUTEUPDATE = 1; 10 public static final int AUTOGENERATEDKEYS = 0; 11 public static final int COLUMNINDEXES = 1; 12 public static final int COLUMNNAMES =2; 13 public static final int NOAUTOGENERATEDKEYS =3; 14 15 Object parseQuery(String query) throws DException; 16 _ColumnCharacteristics getColumnCharacteristics(QualifiedIdentifier tblName) throws DException; 17 void rollback() throws DException; 18 void commit() throws DException; 19 void close()throws DException; 20 Object executeUpdate(String querys,int queryTimeOut) throws DException; 21 Object execute(String query,int queryTimeOut,int type) throws DException; 22 Object executeQuery( String query,int queryTimeOut,int type) throws DException; 23 boolean prepare() throws DException; 24 boolean makePersistent() throws DException; 25 void setTransactionIsolation(int level)throws DException; 26 Object [] executeBatch(String query) throws DException; 27 _Connection getSystemConnection()throws DException; 28 void setAutoCommit(boolean autoCommit) throws DException; 29 _PreparedStatement getPreparedStatement( String query,int type) throws DException; 30 public void rollbackSavePoint(String savepoint) throws DException; 31 public void releaseSavePoint(String savepoint) throws DException; 32 public void setSavePoint(String savepoint) throws DException; 33 public String setSavePoint() throws DException; 34 String getCurrentCatalog()throws DException; 35 void setCurrentCatalog(String currentCatalog)throws DException; 36 String getCurrentUser()throws DException; 37 void commitSavePoint() throws DException; 38 Object [] createDeepRecordCopy(QualifiedIdentifier tableName,Object [] keys) throws DException; 39 public boolean isDataModified() throws DException; 40 Object getSessionConstant() throws DException ; 41 int getIsolationLevel() throws DException ; 42 String getDatabaseURL()throws DException; 43 boolean getAutoCommit()throws DException; 44 public _PreparedStatement getPreparedStatement(String query, int type,int autoGeneratedType,Object autoGenetatedValues) throws DException; 45 public Object execute(String query, int queryTimeOut, int type, int queryType,int autoGeneratedType, Object autoGenetatedValues) throws DException; 46 public boolean isClosed() throws DException; 47 } 48 | Popular Tags |