Interface Dependent
- All Superinterfaces:
Dependable
- All Known Subinterfaces:
Activation, CursorActivation, ExecPreparedStatement, PreparedStatement, StorablePreparedStatement
- All Known Implementing Classes:
AliasDescriptor, BaseActivation, CheckConstraintDescriptor, ConstantActionActivation, ConstraintDescriptor, CursorActivation, DefaultDescriptor, ForeignKeyConstraintDescriptor, GenericActivationHolder, GenericPreparedStatement, GenericStorablePreparedStatement, KeyConstraintDescriptor, ReferencedKeyConstraintDescriptor, SequenceDescriptor, SPSDescriptor, TableDescriptor, TriggerDescriptor, ViewDescriptor
A dependent has the ability to know whether or not it
is valid and to mark itself as valid or invalid.
Marking itself as invalid usually means it cannot be used
in the system until it is revalidated, but this is in no
way enforced by this interface.
-
Field Summary
Fields inherited from interface Dependable
ACTIVATION, ALIAS, COLUMNS_IN_TABLE, COLUMNS_PERMISSION, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PERM, PREPARED_STATEMENT, ROLE_GRANT, ROUTINE_PERMISSION, SCHEMA, SEQUENCE, STORED_PREPARED_STATEMENT, TABLE, TABLE_PERMISSION, TRIGGER, VIEW -
Method Summary
Modifier and TypeMethodDescriptionbooleanisValid()Check that all of the dependent's dependencies are valid.voidmakeInvalid(int action, LanguageConnectionContext lcc) Mark the dependent as invalid (due to at least one of its dependencies being invalid).voidprepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) Prepare to mark the dependent as invalid (due to at least one of its dependencies being invalid).Methods inherited from interface Dependable
getClassType, getDependableFinder, getObjectID, getObjectName, isPersistent
-
Method Details
-
isValid
boolean isValid()Check that all of the dependent's dependencies are valid.- Returns:
- true if the dependent is currently valid
-
prepareToInvalidate
void prepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) throws StandardException Prepare to mark the dependent as invalid (due to at least one of its dependencies being invalid).- Parameters:
p- the provideraction- The action causing the invalidationlcc- The LanguageConnectionContext- Throws:
StandardException- thrown if unable to make it invalid
-
makeInvalid
Mark the dependent as invalid (due to at least one of its dependencies being invalid).- Parameters:
action- The action causing the invalidationlcc- The LanguageConnectionContext- Throws:
StandardException- thrown if unable to make it invalid
-