1 30 31 32 package org.hsqldb; 33 34 43 public interface SessionInterface { 44 45 int INFO_DATABASE = 0; 47 int INFO_USER = 1; 48 int INFO_SESSION_ID = 2; 49 int INFO_ISOLATION = 3; 50 int INFO_AUTOCOMMIT = 4; int INFO_DATABASE_READONLY = 5; 52 int INFO_CONNECTION_READONLY = 6; 54 int TX_READ_UNCOMMITTED = 1; 56 int TX_READ_COMMITTED = 2; 57 int TX_REPEATABLE_READ = 4; 58 int TX_SERIALIZABLE = 8; 59 60 Result execute(Result r) throws HsqlException; 61 62 void close(); 63 64 boolean isClosed(); 65 66 boolean isReadOnly() throws HsqlException; 67 68 void setReadOnly(boolean readonly) throws HsqlException; 69 70 boolean isAutoCommit() throws HsqlException; 71 72 void setAutoCommit(boolean autoCommit) throws HsqlException; 73 74 void setIsolation(int level) throws HsqlException; 75 76 int getIsolation() throws HsqlException; 77 78 void startPhasedTransaction() throws HsqlException; 79 80 void prepareCommit() throws HsqlException; 81 82 void commit() throws HsqlException; 83 84 void rollback() throws HsqlException; 85 86 int getId(); 87 88 void resetSession() throws HsqlException; 89 } 90 | Popular Tags |