| org.apache.derby.iapi.sql.depend.Dependent
All known Subclasses: org.apache.derby.iapi.sql.dictionary.TriggerDescriptor, org.apache.derby.iapi.sql.dictionary.DefaultDescriptor, org.apache.derby.iapi.sql.dictionary.SPSDescriptor, org.apache.derby.iapi.sql.dictionary.ViewDescriptor, org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor,
Dependent | public interface Dependent extends Dependable(Code) | | 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.
|
isValid | boolean isValid()(Code) | | Check that all of the dependent's dependencies are valid.
true if the dependent is currently valid |
makeInvalid | void makeInvalid(int action, LanguageConnectionContext lcc) throws StandardException(Code) | | Mark the dependent as invalid (due to at least one of
its dependencies being invalid).
Parameters: action - The action causing the invalidation Parameters: lcc - The LanguageConnectionContext exception: StandardException - thrown if unable to make it invalid |
makeValid | void makeValid(LanguageConnectionContext lcc) throws StandardException(Code) | | Attempt to revalidate the dependent. For prepared statements,
this could go through its dependencies and check that they
are up to date; if not, it would recompile the statement.
Any failure during this attempt should throw
DependencyStatementException.unableToRevalidate().
Parameters: lcc - The LanguageConnectionContext exception: StandardException - thrown if unable to make it valid |
prepareToInvalidate | void prepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) throws StandardException(Code) | | Prepare to mark the dependent as invalid (due to at least one of
its dependencies being invalid).
Parameters: action - The action causing the invalidation Parameters: p - the provider Parameters: lcc - The LanguageConnectionContext exception: StandardException - thrown if unable to make it invalid |
|
|