1 package com.daffodilwoods.daffodildb.server.serversystem; 2 3 import com.daffodilwoods.daffodildb.server.sql99.dql.execution._TableAlias; 4 5 import com.daffodilwoods.daffodildb.server.sql99.dql.queryexpression.orderbyclause._ExpressionOrderValues; 6 7 import com.daffodilwoods.daffodildb.server.sql99.dql.iterator._Iterator; 8 9 import com.daffodilwoods.daffodildb.server.sql99.dql.plan.table._ViewObject; 10 11 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.predicates.predicate; 12 13 import com.daffodilwoods.database.resource.*; 14 import com.daffodilwoods.database.general.QualifiedIdentifier; 15 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.*; 16 import com.daffodilwoods.database.sqlinitiator.*; 17 import com.daffodilwoods.daffodildb.server.sessionsystem.*; 18 import com.daffodilwoods.daffodildb.server.datadictionarysystem.*; 19 import com.daffodilwoods.daffodildb.server.datasystem.interfaces.*; 20 import java.sql.*; 21 import java.util.*; 22 import com.daffodilwoods.daffodildb.server.sql99.dml.declarecursor._Cursor; 23 import com.daffodilwoods.daffodildb.server.sql99.common.TableDetails; 24 import com.daffodilwoods.daffodildb.utils.byteconverter.CbCUsffWbmvfIboemfs; 25 import com.daffodilwoods.daffodildb.server.serversystem.triggerInfo._Triggers; 26 27 public interface _ServerSession { 28 Object execute(String query, int queryTimeOut) throws DException; 29 30 Object executeUpdate(String querys, int queryTimeOut) throws DException; 31 32 Object executeQuery(String query, int queryTimeOut) throws DException; 33 34 Object executeParameterised(String query, int queryTimeOut) throws DException; 35 36 Object executeUpdateParameterised(String querys, int queryTimeOut) throws DException; 37 38 Object executeQueryParameterised(String query, int queryTimeOut) throws DException; 39 40 public int queryTimeOut = 0; 41 public static int globalSession = 0; 42 public static int serverSession = 1; 43 _ServerTable getServerTable(QualifiedIdentifier tableName) throws DException; 44 45 _Iterator getIterator(QualifiedIdentifier tableName, _SingleTableExecuter singleTableExecuter) throws DException; 46 47 _StatementExecutionContext getStatementExecutionContext() throws DException; 48 49 _ColumnCharacteristics getColumnCharacteristics(QualifiedIdentifier tblName) throws DException; 50 51 void rollback() throws DException; 52 53 void commit() throws DException; 54 55 void close() throws DException; 56 57 void setUserSession(_UserSession userSession) throws DException; 58 59 _UserSession getUserSession() throws DException; 60 61 _ServerSession getGlobalSession() throws DException; 62 63 boolean makePersistent() throws DException; 64 65 boolean prepare() throws DException; 66 67 _ServerSession getSystemServerSession() throws DException; 68 69 _DataDictionary getDataDictionary() throws DException; 70 71 String getDatabaseURL() throws DException; 72 73 String getModuleSchema() throws DException; 74 75 String getModuleCatalog() throws DException; 76 77 String getCurrentRole() throws DException; 78 79 String getCurrentUser() throws DException; 80 81 public java.sql.Date getDate() throws DException; 82 83 public Time getTime() throws DException; 84 85 void deleteTable(QualifiedIdentifier tableName, boolean dropTable) throws DException; 86 87 String getCurrentSchema() throws DException; 88 89 String getCurrentCatalog() throws DException; 90 91 boolean isEnabledAuthorizationIdentifier(String authorizationIdentifier, boolean checkBrowserUser) throws DException; 92 93 String getAuthorizationIdentifier() throws DException; 94 95 void setTransactionMode(SessionTransactionMode sessionTransactionMode) throws DException; 96 97 SessionTransactionMode getTransactionMode() throws DException; 98 99 void setCurrentCatalog(String currentCatalog) throws DException; 100 101 void setCurrentSchema(String currentSchema) throws DException; 102 103 java.sql.Timestamp getTimeStamp() throws DException; 104 105 String getDatabase() throws DException; 106 107 int getIsolationLevel() throws DException; 108 109 Object getSessionConstant() throws DException; 110 111 TimeZone getTimeZone() throws DException; 112 113 void createDatabase(String databaseName, Properties prop) throws DException; 114 115 _IndexTable getIndexTable(QualifiedIdentifier tableName) throws DException; 116 117 public int getType(); 118 119 public void createIndex(QualifiedIdentifier tableName, String indexName, boolean nonUnique) throws DException; 120 121 public void createTable(QualifiedIdentifier tableName) throws DException; 122 123 public void createIndexForSystemTable(QualifiedIdentifier tableName, String indexName) throws DException; 124 125 public void dropTable(QualifiedIdentifier tableName) throws DException; 126 127 public void dropIndex(QualifiedIdentifier tableName, String indexName) throws DException; 128 129 public _Iterator getIndexedIterator(_Iterator iterator, _ExpressionOrderValues orderValues, CbCUsffWbmvfIboemfs tempHandler) throws DException; 130 131 public HashMap getViewMap() throws DException; 132 133 public _ViewObject getViewObject(QualifiedIdentifier viewName, boolean checkUserRight) throws DException; 134 135 public boolean getAutoCommit(); 136 137 public _Iterator getForeignKeyIterator(QualifiedIdentifier tableName, _SingleTableExecuter conditionExeceuter, _TableAlias[] tableAlias) throws DException; 138 139 public Object [] getForeignConstraintCharacteritics(QualifiedIdentifier tableName, String columnName) throws DException; 140 141 public String [] getUniqueInformation(QualifiedIdentifier tableName) throws DException; 142 143 boolean cursorAlreadyCreated(String name); 144 145 void addCursor(String cname, _Cursor cur); 146 147 _Cursor getCursor(String cname); 148 149 _SequenceManager getSequenceManager() throws DException; 150 151 int getEstimatedRowCount(QualifiedIdentifier parm1) throws DException; 152 153 Object getSessionId() throws DException; 154 155 Object [] createDeepRecordCopy(QualifiedIdentifier tableName, Object [] keys) throws DException; 156 157 void startSavePoint() throws DException; 158 159 void commitSavePoint() throws DException; 160 161 void rollbackSavePoint() throws DException; 162 163 void releaseSavePoint() throws DException; 164 165 void alterTable(QualifiedIdentifier tableName, _ColumnCharacteristics cc, Object defaultValue) throws DException; 166 167 public boolean isConstraintCheckingDeffered(); 168 169 void dropDatabase(String databaseName, String userName, String password) throws DException; 170 171 public boolean isDataModified() throws DException; 172 173 public void hideSavePoint() throws DException; 174 175 public void unhideSavePoint() throws DException; 176 177 public void ignoreParallelSavePoint() throws DException; 178 179 public void allowParallelSavePoint() throws DException; 180 181 public void checkImmediateConstraintsOnCommit() throws DException; 182 183 public void rollbackSavePoint(String savepoint) throws DException; 184 185 public void releaseSavePoint(String savepoint) throws DException; 186 187 public void setSavePoint(String savepoint) throws DException; 188 189 public String setSavePoint() throws DException; 190 191 Object execute(String query, int queryTimeOut, int type) throws DException; 192 193 Object executeQuery(String query, int queryTimeOut, int type) throws DException; 194 195 public void setRole(String roleName) throws DException; 196 197 public boolean isActiveAuthorization(String authorization) throws DException; 198 199 void createFullTextIndex(QualifiedIdentifier tableName, String indexName, String [] columnName) throws DException; 200 201 void dropFullTextIndex(QualifiedIdentifier tableName, String indexName) throws DException; 202 203 public _Iterator getInternalIterator(QualifiedIdentifier tableName, _SingleTableExecuter singleTableExecuter) throws DException; 204 205 public double getDbVersion() throws DException; 206 207 public void refereshTable(QualifiedIdentifier tableName, 208 boolean dropTable) throws DException; 209 210 public _Triggers[] getAfterInsertTrigger(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException; 211 212 public _Triggers[] getBeforeInsertTrigger(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException; 213 214 public _Triggers[] getAfterUpdateTrigger(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext, int[] cols) throws DException; 215 216 public _Triggers[] getBeforeUpdateTrigger(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext, int[] cols) throws DException; 217 218 public _Triggers[] getAfterDeleteTrigger(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException; 219 220 public _Triggers[] getBeforeDeleteTrigger(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException; 221 222 public void refreshTriggerInfo(QualifiedIdentifier tableName) throws DException; 223 224 public void refreshTriggers(QualifiedIdentifier tableName) throws DException; 225 226 public _Triggers[] getAfterInsertTriggerOfStatementLevel(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException; 227 228 public _Triggers[] getBeforeInsertTriggerOfStatementLevel(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException; 229 230 public _Triggers[] getAfterUpdateTriggerOfStatementLevel(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext, int[] cols) throws DException; 231 232 public _Triggers[] getBeforeUpdateTriggerOfStatementLevel(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext, int[] cols) throws DException; 233 234 public _Triggers[] getAfterDeleteTriggerOfStatementLevel(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException; 235 236 public _Triggers[] getBeforeDeleteTriggerOfStatementLevel(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException; 237 238 public ArrayList getCreateIndexList() throws DException; 239 240 public void resetTime() throws DException; 241 242 public void refreshConstraint(QualifiedIdentifier tableName) throws DException; 243 244 public int getTypeForPrivilige() throws DException; 245 246 247 } 248 | Popular Tags |