- All Superinterfaces:
- org.apache.derby.catalog.Dependable
- public interface Dependent
- extends org.apache.derby.catalog.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.
| Fields inherited from interface org.apache.derby.catalog.Dependable |
ALIAS, COLUMNS_IN_TABLE, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PREPARED_STATEMENT, SCHEMA, STORED_PREPARED_STATEMENT, TABLE, TRIGGER, VIEW |
isValid
public boolean isValid()
- Check that all of the dependent's dependencies are valid.
prepareToInvalidate
public void prepareToInvalidate(Provider p,
int action,
org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc)
throws org.apache.derby.iapi.error.StandardException
- Prepare to mark the dependent as invalid (due to at least one of
its dependencies being invalid).
makeInvalid
public void makeInvalid(int action,
org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc)
throws org.apache.derby.iapi.error.StandardException
- Mark the dependent as invalid (due to at least one of
its dependencies being invalid).
makeValid
public void makeValid(org.apache.derby.iapi.sql.conn.LanguageConnectionContext lcc)
throws org.apache.derby.iapi.error.StandardException
- 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().