1 package com.daffodilwoods.daffodildb.server.sessionsystem; 2 3 import com.daffodilwoods.daffodildb.server.serversystem.*; 4 import com.daffodilwoods.database.resource.*; 5 6 import com.daffodilwoods.database.general.*; 7 import java.util.TimeZone ; 8 import java.sql.*; 9 import java.util.ArrayList ; 10 import java.util.TreeMap ; 11 import com.daffodilwoods.daffodildb.server.sql99.common.*; 12 import com.daffodilwoods.daffodildb.utils.*; 13 import com.daffodilwoods.daffodildb.server.sql99.dql.iterator._Iterator; 14 import com.daffodilwoods.daffodildb.server.datasystem.interfaces._Table; 15 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression._SingleTableExecuter; 16 public interface _Session { 17 18 public final static int ReadUncommitted = java.sql.Connection.TRANSACTION_READ_UNCOMMITTED; 19 public final static int ReadCommitted = java.sql.Connection.TRANSACTION_READ_COMMITTED; 20 public final static int ReadSessionSerializable = 5; 21 public final static int ReadUnLokedCommitted = 6; 22 public final static int ReadTransactionSerializable = java.sql.Connection.TRANSACTION_SERIALIZABLE; 23 public final static int ReadRepeatable = java.sql.Connection.TRANSACTION_REPEATABLE_READ; 24 25 30 public SessionConditionInfo getSessionCondition()throws DException; 31 32 37 public Object getSessionId() throws DException ; 38 public Object getParentSessionId() throws DException ; 39 40 46 public _SessionTable getSessionTable( QualifiedIdentifier tableName ) throws DException; 47 48 53 public void setIsolationLevel(int level ) throws DException ; 54 55 60 public int getIsolationLevel() throws DException ; 61 62 67 public Object getTransactionIdAtStart() throws DException ; 68 69 74 public void commit(_StatementExecutionContext statementExecutionContext) throws DException; 75 76 81 public void rollback(_StatementExecutionContext statementExecutionContext) throws DException; 82 83 88 public Lock getLock() throws DException ; 89 90 91 96 public _SessionDatabase getSessionDatabase() throws DException ; 97 98 104 public boolean isEnabledAuthorizationIdentifier(String authorizationIdentifier) throws DException ; 105 106 111 public String getAuthorizationIdentifier() throws DException ; 112 113 118 public String getCurrentRole() throws DException ; 119 120 125 public String getCurrentUser() throws DException ; 126 127 132 public void setTransactionMode( SessionTransactionMode sessionTransactionMode ) throws DException ; 133 134 139 public SessionTransactionMode getTransactionMode() throws DException ; 140 141 146 public Date getDate() throws DException ; 147 148 153 public Time getTime() throws DException ; 154 155 160 public int getMonth() throws DException ; 161 162 167 public int getYear() throws DException ; 168 169 174 public int getHour() throws DException ; 175 176 181 public int getMinutes() throws DException ; 182 183 188 public int getSeconds() throws DException ; 189 190 195 public TimeZone getTimeZone() throws DException ; 196 197 203 public void setConstraintStatus(Object constraintName, String mode) throws DException ; 204 205 210 public void removeTable(QualifiedIdentifier tableName) throws DException; 211 212 217 public java.sql.Timestamp getTimeStamp( ) throws DException ; 218 219 224 public void pushAuthorizationIdentifier(AuthorizationIdentifier athrznIdntfr) throws DException ; 225 226 232 public ArrayList getImmediateConstriants(QualifiedIdentifier tableName) throws DException ; 233 234 239 public TreeMap getImmediateConstriants() throws DException ; 240 241 246 public Object getSessionConstant() throws DException ; 247 248 253 public _ServerSession getGlobalSession() throws DException ; 254 255 261 boolean prepare(_StatementExecutionContext statementExecutionContext) throws DException; 262 263 269 boolean makePersistent(_StatementExecutionContext statementExecutionContext) throws DException; 270 271 276 public boolean checkConstraint()throws DException; 277 278 282 public void stopConstraintChecking()throws DException; 283 284 285 290 public void setAuthorizationIdentifier( String userName )throws DException; 291 292 296 public void removeAllTables()throws DException; 297 298 public boolean getImmediateConstriantsForChecking(); 299 public boolean getDeferredConstriantsForChecking(); 300 public boolean isDataModified() throws DException ; 301 public void startSavePoint() throws DException; 302 public void commitSavePoint(_StatementExecutionContext sec) throws DException; 303 public void rollbackSavePoint(_StatementExecutionContext sec) throws DException; 304 public void releaseSavePoint(_StatementExecutionContext sec) throws DException; 305 public int getNumberOfSavePiontsStarted() throws DException; 306 public Object [] getRecursiveSessionIds() throws DException; 307 public void hideSavePoint() throws DException; 308 public void unhideSavePoint() throws DException; 309 public void ignoreParallelSavePoint() throws DException ; 310 public void allowParallelSavePoint() throws DException ; 311 public void checkImmediateConstraintsOnCommit() throws DException; 312 public void updateDataModifiedStatus() throws DException; 313 public boolean hasAnyChild() throws DException; 314 public void setRole(String roleName) throws DException; 315 public void resetTime() throws DException; 316 public void setAutoCommit(boolean autoCommit0) ; 317 public boolean getAutoCommit(); 318 public void addTableInChangedTableList(QualifiedIdentifier tableName); 319 public void startTransaction() throws DException; 320 } 321 | Popular Tags |