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

public interface Dependent extends Dependable
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.
  • 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 provider
      action - The action causing the invalidation
      lcc - The LanguageConnectionContext
      Throws:
      StandardException - thrown if unable to make it invalid
    • makeInvalid

      void makeInvalid(int action, LanguageConnectionContext lcc) throws StandardException
      Mark the dependent as invalid (due to at least one of its dependencies being invalid).
      Parameters:
      action - The action causing the invalidation
      lcc - The LanguageConnectionContext
      Throws:
      StandardException - thrown if unable to make it invalid