1 package com.daffodilwoods.daffodildb.server.serversystem; 2 3 import java.sql.*; 4 import java.util.*; 5 6 import com.daffodilwoods.daffodildb.server.datadictionarysystem.*; 7 import com.daffodilwoods.daffodildb.server.datasystem.interfaces.*; 8 import com.daffodilwoods.daffodildb.server.serversystem.triggerInfo.*; 9 import com.daffodilwoods.daffodildb.server.sessionsystem.*; 10 import com.daffodilwoods.daffodildb.server.sql99.dml.declarecursor.*; 11 import com.daffodilwoods.daffodildb.server.sql99.dql.execution.*; 12 import com.daffodilwoods.daffodildb.server.sql99.dql.iterator.*; 13 import com.daffodilwoods.daffodildb.server.sql99.dql.plan.table.*; 14 import com.daffodilwoods.daffodildb.server.sql99.dql.queryexpression.orderbyclause.*; 15 import com.daffodilwoods.daffodildb.server.sql99.expression.booleanvalueexpression.*; 16 import com.daffodilwoods.daffodildb.utils.byteconverter.*; 17 import com.daffodilwoods.database.general.*; 18 import com.daffodilwoods.database.resource.*; 19 20 28 29 public class TriggerServerSession implements _ServerSession{ 30 private _ServerSession serverSession; 31 private String schema = ""; 32 private String catalog = ""; 33 34 public TriggerServerSession(String schema0, String catalog0,_ServerSession serverSession0) { 35 serverSession = serverSession0; 36 this.schema = schema0; 37 this.catalog = catalog0; 38 } 39 40 public Object execute(String query, int queryTimeOut) throws DException{ 41 return serverSession.execute(query, queryTimeOut); 42 } 43 44 public Object executeUpdate(String querys, int queryTimeOut) throws DException { 45 return serverSession.executeUpdate(querys, queryTimeOut); 46 } 47 48 public Object executeQuery(String query, int queryTimeOut) throws DException { 49 return serverSession.executeQuery(query, queryTimeOut); 50 } 51 52 public Object executeParameterised(String query, int queryTimeOut) throws DException{ 53 return serverSession.executeParameterised(query,queryTimeOut); 54 } 55 56 public Object executeUpdateParameterised(String querys, int queryTimeOut) throws DException{ 57 return serverSession.executeUpdateParameterised(querys, queryTimeOut); 58 } 59 60 public Object executeQueryParameterised(String query, int queryTimeOut) throws DException { 61 return serverSession.executeQueryParameterised(query, queryTimeOut); 62 } 63 64 public _ServerTable getServerTable(QualifiedIdentifier tableName) throws DException{ 65 return serverSession.getServerTable(tableName); 66 } 67 68 public _Iterator getIterator(QualifiedIdentifier tableName, _SingleTableExecuter singleTableExecuter) throws DException{ 69 return serverSession.getIterator(tableName,singleTableExecuter); 70 } 71 72 public _StatementExecutionContext getStatementExecutionContext() throws DException{ 73 return serverSession.getStatementExecutionContext(); 74 } 75 76 public _ColumnCharacteristics getColumnCharacteristics(QualifiedIdentifier tblName) throws DException{ 77 return serverSession.getColumnCharacteristics(tblName); 78 } 79 80 public void rollback() throws DException{ 81 serverSession.rollback(); 82 } 83 84 public void commit() throws DException{ 85 serverSession.commit(); 86 } 87 88 public void close() throws DException{ 89 serverSession.close(); 90 } 91 92 public void setUserSession(_UserSession userSession) throws DException{ 93 serverSession.setUserSession(userSession); 94 } 95 96 public _UserSession getUserSession() throws DException{ 97 return serverSession.getUserSession(); 98 } 99 100 public _ServerSession getGlobalSession() throws DException{ 101 return serverSession.getGlobalSession(); 102 } 103 104 public boolean makePersistent() throws DException{ 105 return serverSession.makePersistent(); 106 } 107 108 public boolean prepare() throws DException{ 109 return serverSession.prepare(); 110 } 111 112 public _ServerSession getSystemServerSession() throws DException{ 113 return serverSession.getSystemServerSession(); 114 } 115 116 public _DataDictionary getDataDictionary() throws DException{ 117 return serverSession.getDataDictionary(); 118 } 119 120 public String getDatabaseURL() throws DException{ 121 return serverSession.getDatabaseURL(); 122 } 123 124 public String getModuleSchema() throws DException{ 125 return serverSession.getModuleSchema(); 126 } 127 128 public String getModuleCatalog() throws DException{ 129 return serverSession.getModuleCatalog(); 130 } 131 132 public String getCurrentRole() throws DException{ 133 return serverSession.getCurrentRole(); 134 } 135 136 public String getCurrentUser() throws DException{ 137 return serverSession.getCurrentUser(); 138 } 139 140 public java.sql.Date getDate() throws DException{ 141 return serverSession.getDate(); 142 } 143 144 public Time getTime() throws DException{ 145 return serverSession.getTime(); 146 } 147 148 public void deleteTable(QualifiedIdentifier tableName, boolean dropTable) throws DException{ 149 serverSession.deleteTable(tableName, dropTable); 150 } 151 public String getCurrentSchema() throws DException{ 152 return schema; 153 } 154 public String getCurrentCatalog() throws DException{ 155 return catalog; 156 } 157 158 public boolean isEnabledAuthorizationIdentifier(String authorizationIdentifier, boolean checkBrowserUser) throws DException{ 159 return serverSession.isEnabledAuthorizationIdentifier(authorizationIdentifier, checkBrowserUser); 160 } 161 162 public String getAuthorizationIdentifier() throws DException{ 163 return serverSession.getAuthorizationIdentifier(); 164 } 165 166 public void setTransactionMode(SessionTransactionMode sessionTransactionMode) throws DException{ 167 serverSession.setTransactionMode(sessionTransactionMode); 168 } 169 170 public SessionTransactionMode getTransactionMode() throws DException{ 171 return serverSession.getTransactionMode(); 172 } 173 public void setCurrentCatalog(String currentCatalog) throws DException{ 174 this.catalog = currentCatalog; 175 } 176 public void setCurrentSchema(String currentSchema) throws DException{ 177 this.schema = currentSchema; 178 } 179 180 public java.sql.Timestamp getTimeStamp() throws DException{ 181 return serverSession.getTimeStamp(); 182 } 183 184 public String getDatabase() throws DException{ 185 return serverSession.getDatabase(); 186 } 187 188 public int getIsolationLevel() throws DException{ 189 return serverSession.getIsolationLevel(); 190 } 191 192 public Object getSessionConstant() throws DException{ 193 return serverSession.getSessionConstant(); 194 } 195 public TimeZone getTimeZone() throws DException{ 196 return serverSession.getTimeZone(); 197 } 198 public void createDatabase(String databaseName, Properties prop) throws DException{ 199 serverSession.createDatabase(databaseName,prop); 200 } 201 202 public _IndexTable getIndexTable(QualifiedIdentifier tableName) throws DException{ 203 return serverSession.getIndexTable(tableName); 204 } 205 public int getType(){ 206 return serverSession.getType(); 207 } 208 209 public void createIndex(QualifiedIdentifier tableName, String indexName, boolean nonUnique) throws DException{ 210 serverSession.createIndex(tableName, indexName, nonUnique); 211 } 212 213 public void createTable(QualifiedIdentifier tableName) throws DException{ 214 serverSession.createTable(tableName); 215 } 216 217 public void createIndexForSystemTable(QualifiedIdentifier tableName, String indexName) throws DException{ 218 serverSession.createIndexForSystemTable(tableName, indexName); 219 } 220 221 public void dropTable(QualifiedIdentifier tableName) throws DException{ 222 serverSession.dropTable(tableName); 223 } 224 225 public void dropIndex(QualifiedIdentifier tableName, String indexName) throws DException{ 226 serverSession.dropIndex(tableName, indexName); 227 } 228 229 public _Iterator getIndexedIterator(_Iterator iterator, _ExpressionOrderValues orderValues, CbCUsffWbmvfIboemfs tempHandler) throws DException{ 230 return serverSession.getIndexedIterator(iterator, orderValues,tempHandler); 231 } 232 233 public HashMap getViewMap() throws DException{ 234 return serverSession.getViewMap(); 235 } 236 237 public _ViewObject getViewObject(QualifiedIdentifier viewName, boolean checkUserRight) throws DException{ 238 return serverSession.getViewObject(viewName, checkUserRight); 239 } 240 241 public boolean getAutoCommit(){ 242 return serverSession.getAutoCommit(); 243 } 244 245 public _Iterator getForeignKeyIterator(QualifiedIdentifier tableName, _SingleTableExecuter conditionExeceuter, _TableAlias[] tableAlias) throws DException{ 246 return serverSession.getForeignKeyIterator(tableName,conditionExeceuter, tableAlias); 247 } 248 249 public Object [] getForeignConstraintCharacteritics(QualifiedIdentifier tableName, String columnName) throws DException{ 250 return serverSession.getForeignConstraintCharacteritics(tableName, columnName); 251 } 252 253 public String [] getUniqueInformation(QualifiedIdentifier tableName) throws DException{ 254 return serverSession.getUniqueInformation(tableName); 255 } 256 257 public boolean cursorAlreadyCreated(String name){ 258 return serverSession.cursorAlreadyCreated(name); 259 } 260 261 public void addCursor(String cname, _Cursor cur){ 262 serverSession.addCursor(cname, cur); 263 } 264 265 public _Cursor getCursor(String cname){ 266 return serverSession.getCursor(cname); 267 } 268 269 public _SequenceManager getSequenceManager() throws DException{ 270 return serverSession.getSequenceManager(); 271 } 272 273 public int getEstimatedRowCount(QualifiedIdentifier parm1) throws DException{ 274 return serverSession.getEstimatedRowCount(parm1); 275 } 276 277 public Object getSessionId() throws DException{ 278 return serverSession.getSessionId(); 279 } 280 281 public Object [] createDeepRecordCopy(QualifiedIdentifier tableName, Object [] keys) throws DException{ 282 return serverSession.createDeepRecordCopy(tableName, keys); 283 } 284 public void startSavePoint() throws DException{ 285 serverSession.startSavePoint(); 286 } 287 288 public void commitSavePoint() throws DException{ 289 serverSession.commitSavePoint(); 290 } 291 292 public void rollbackSavePoint() throws DException{ 293 serverSession.rollbackSavePoint(); 294 } 295 296 public void releaseSavePoint() throws DException{ 297 serverSession.releaseSavePoint(); 298 } 299 300 public void alterTable(QualifiedIdentifier tableName, _ColumnCharacteristics cc, Object defaultValue) throws DException{ 301 serverSession.alterTable(tableName, cc, defaultValue); 302 } 303 304 public boolean isConstraintCheckingDeffered(){ 305 return serverSession.isConstraintCheckingDeffered(); 306 } 307 308 public void dropDatabase(String databaseName, String userName, String password) throws DException{ 309 serverSession.dropDatabase(databaseName, userName, password); 310 } 311 312 public boolean isDataModified() throws DException{ 313 return serverSession.isDataModified(); 314 } 315 316 public void hideSavePoint() throws DException{ 317 serverSession.hideSavePoint(); 318 } 319 320 public void unhideSavePoint() throws DException{ 321 serverSession.unhideSavePoint(); 322 } 323 324 public void ignoreParallelSavePoint() throws DException{ 325 serverSession.ignoreParallelSavePoint(); 326 } 327 328 public void allowParallelSavePoint() throws DException{ 329 serverSession.allowParallelSavePoint(); 330 } 331 332 public void checkImmediateConstraintsOnCommit() throws DException{ 333 serverSession.checkImmediateConstraintsOnCommit(); 334 } 335 336 public void rollbackSavePoint(String savepoint) throws DException{ 337 serverSession.rollbackSavePoint(savepoint); 338 } 339 340 public void releaseSavePoint(String savepoint) throws DException{ 341 serverSession.releaseSavePoint(savepoint); 342 } 343 344 public void setSavePoint(String savepoint) throws DException{ 345 serverSession.setSavePoint(savepoint); 346 } 347 348 public String setSavePoint() throws DException{ 349 return serverSession.setSavePoint() ; 350 } 351 352 public Object execute(String query, int queryTimeOut, int type) throws DException{ 353 return serverSession.execute(query, queryTimeOut, type); 354 } 355 356 public Object executeQuery(String query, int queryTimeOut, int type) throws DException{ 357 return serverSession.executeQuery(query, queryTimeOut, type); 358 } 359 360 public void setRole(String roleName) throws DException{ 361 serverSession.setRole(roleName); 362 } 363 364 public boolean isActiveAuthorization(String authorization) throws DException{ 365 return serverSession.isActiveAuthorization(authorization); 366 } 367 368 public void createFullTextIndex(QualifiedIdentifier tableName, String indexName, String [] columnName) throws DException{ 369 serverSession.createFullTextIndex(tableName, indexName, columnName); 370 } 371 372 public void dropFullTextIndex(QualifiedIdentifier tableName, String indexName) throws DException{ 373 serverSession.dropFullTextIndex(tableName, indexName); 374 } 375 376 public _Iterator getInternalIterator(QualifiedIdentifier tableName, _SingleTableExecuter singleTableExecuter) throws DException{ 377 return serverSession.getInternalIterator(tableName, singleTableExecuter); 378 } 379 380 public double getDbVersion() throws DException{ 381 return serverSession.getDbVersion(); 382 } 383 384 public void refereshTable(QualifiedIdentifier tableName, 385 boolean dropTable) throws DException{ 386 serverSession.refereshTable(tableName, dropTable); 387 } 388 389 public _Triggers[] getAfterInsertTrigger(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException{ 390 return serverSession.getAfterInsertTrigger(tableName, triggerCharacteristics, statementExecutionContext); 391 } 392 393 public _Triggers[] getBeforeInsertTrigger(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException{ 394 return serverSession.getBeforeInsertTrigger(tableName, triggerCharacteristics, statementExecutionContext); 395 } 396 397 public _Triggers[] getAfterUpdateTrigger(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext, int[] cols) throws DException{ 398 return serverSession.getAfterUpdateTrigger(tableName, triggerCharacteristics, statementExecutionContext, cols) ; 399 } 400 401 public _Triggers[] getBeforeUpdateTrigger(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext, int[] cols) throws DException{ 402 return serverSession.getBeforeUpdateTrigger(tableName, triggerCharacteristics, statementExecutionContext, cols); 403 } 404 405 public _Triggers[] getAfterDeleteTrigger(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException{ 406 return serverSession.getAfterDeleteTrigger(tableName, triggerCharacteristics, statementExecutionContext); 407 } 408 409 public _Triggers[] getBeforeDeleteTrigger(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException{ 410 return serverSession.getBeforeDeleteTrigger(tableName, triggerCharacteristics, statementExecutionContext); 411 } 412 413 public void refreshTriggerInfo(QualifiedIdentifier tableName) throws DException{ 414 serverSession.refreshTriggerInfo(tableName) ; 415 } 416 417 public void refreshTriggers(QualifiedIdentifier tableName) throws DException{ 418 serverSession.refreshTriggers(tableName) ; 419 } 420 421 public _Triggers[] getAfterInsertTriggerOfStatementLevel(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException{ 422 return serverSession.getAfterInsertTriggerOfStatementLevel(tableName, triggerCharacteristics, statementExecutionContext) ; 423 } 424 425 public _Triggers[] getBeforeInsertTriggerOfStatementLevel(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException{ 426 return serverSession.getBeforeInsertTriggerOfStatementLevel(tableName, triggerCharacteristics, statementExecutionContext); 427 } 428 429 public _Triggers[] getAfterUpdateTriggerOfStatementLevel(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext, int[] cols) throws DException{ 430 return serverSession.getAfterUpdateTriggerOfStatementLevel( tableName, triggerCharacteristics, statementExecutionContext, cols); 431 } 432 433 public _Triggers[] getBeforeUpdateTriggerOfStatementLevel(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext, int[] cols) throws DException{ 434 return serverSession.getBeforeUpdateTriggerOfStatementLevel(tableName, triggerCharacteristics, statementExecutionContext, cols) ; 435 } 436 437 public _Triggers[] getAfterDeleteTriggerOfStatementLevel(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException{ 438 return serverSession.getAfterDeleteTriggerOfStatementLevel(tableName, triggerCharacteristics, statementExecutionContext) ; 439 } 440 441 public _Triggers[] getBeforeDeleteTriggerOfStatementLevel(QualifiedIdentifier tableName, _TriggerCharacteristics triggerCharacteristics, _StatementExecutionContext statementExecutionContext) throws DException{ 442 return serverSession.getBeforeDeleteTriggerOfStatementLevel(tableName, triggerCharacteristics, statementExecutionContext) ; 443 } 444 445 public ArrayList getCreateIndexList() throws DException{ 446 return serverSession.getCreateIndexList() ; 447 } 448 449 public void resetTime() throws DException{ 450 serverSession.resetTime() ; 451 } 452 453 public void refreshConstraint(QualifiedIdentifier tableName) throws DException{ 454 serverSession.refreshConstraint(tableName) ; 455 } 456 457 public int getTypeForPrivilige() throws DException{ 458 return serverSession.getTypeForPrivilige() ; 459 } 460 461 462 } 463 | Popular Tags |