1 21 22 package org.apache.derby.iapi.sql.depend; 23 24 import org.apache.derby.iapi.services.context.ContextManager; 25 26 import org.apache.derby.iapi.error.StandardException; 27 28 import org.apache.derby.iapi.sql.conn.LanguageConnectionContext; 29 30 import org.apache.derby.iapi.store.access.TransactionController; 31 32 263 264 public interface DependencyManager { 265 266 269 public static final int COMPILE_FAILED = 0; 270 public static final int DROP_TABLE = 1; 271 public static final int DROP_INDEX = 2; 272 public static final int CREATE_INDEX = 3; 273 public static final int ROLLBACK = 4; 274 public static final int CHANGED_CURSOR = 5; 275 public static final int DROP_METHOD_ALIAS = 6; 276 public static final int DROP_VIEW = 9; 277 public static final int CREATE_VIEW = 10; 278 public static final int PREPARED_STATEMENT_RELEASE = 11; 279 public static final int ALTER_TABLE = 12; 280 public static final int DROP_SPS = 13; 281 public static final int USER_RECOMPILE_REQUEST = 14; 282 public static final int BULK_INSERT = 15; 283 public static final int DROP_JAR = 17; 284 public static final int REPLACE_JAR = 18; 285 public static final int DROP_CONSTRAINT = 19; 286 public static final int SET_CONSTRAINTS_ENABLE = 20; 287 public static final int SET_CONSTRAINTS_DISABLE = 21; 288 public static final int CREATE_CONSTRAINT = 22; 289 public static final int INTERNAL_RECOMPILE_REQUEST = 23; 290 public static final int DROP_TRIGGER = 27; 291 public static final int CREATE_TRIGGER = 28; 292 public static final int SET_TRIGGERS_ENABLE = 29; 293 public static final int SET_TRIGGERS_DISABLE = 30; 294 public static final int MODIFY_COLUMN_DEFAULT = 31; 295 public static final int DROP_SCHEMA = 32; 296 public static final int COMPRESS_TABLE = 33; 297 public static final int RENAME = 34; 299 public static final int DROP_COLUMN = 37; 300 public static final int DROP_STATISTICS = 39; 301 public static final int UPDATE_STATISTICS = 40; 302 public static final int RENAME_INDEX = 41; 306 307 public static final int TRUNCATE_TABLE = 42; 308 public static final int DROP_SYNONYM = 43; 309 public static final int REVOKE_PRIVILEGE = 44; 313 314 public static final int REVOKE_PRIVILEGE_RESTRICT = 45; 327 328 332 public static final int MAX_ACTION_CODE = 0XFFFF; 333 334 349 void addDependency(Dependent d, Provider p, ContextManager cm) throws StandardException; 350 351 374 void invalidateFor(Provider p, int action, LanguageConnectionContext lcc) 375 throws StandardException; 376 377 378 379 402 void clearDependencies(LanguageConnectionContext lcc, Dependent d) throws StandardException; 403 404 412 public void clearInMemoryDependency(Dependency dy); 413 414 420 public ProviderInfo[] getPersistentProviderInfos(Dependent dependent) 421 throws StandardException; 422 423 429 public ProviderInfo[] getPersistentProviderInfos(ProviderList pl) 430 throws StandardException; 431 432 442 public void clearColumnInfoInProviders(ProviderList pl) 443 throws StandardException; 444 445 446 456 public void copyDependencies( 457 Dependent copy_From, 458 Dependent copyTo, 459 boolean persistentOnly, 460 ContextManager cm) 461 throws StandardException; 462 463 472 String getActionString(int action); 473 474 482 public int countDependencies() throws StandardException; 483 484 494 public String dumpDependencies() throws StandardException, java.sql.SQLException ; 495 496 520 public void clearDependencies(LanguageConnectionContext lcc, 521 Dependent d, 522 TransactionController tc) 523 throws StandardException; 524 525 526 537 public void copyDependencies( 538 Dependent copy_From, 539 Dependent copyTo, 540 boolean persistentOnly, 541 ContextManager cm, 542 TransactionController tc) 543 throws StandardException; 544 545 } 546 | Popular Tags |