Top Description Fields Methods
org.apache.derby.iapi.sql.depend

public Interface Dependent

extends Dependable
Known Direct Subinterfaces
org.apache.derby.iapi.sql.Activation, org.apache.derby.iapi.sql.PreparedStatement
Known Direct Implementers
org.apache.derby.iapi.sql.dictionary.DefaultDescriptor, org.apache.derby.iapi.sql.dictionary.AliasDescriptor, org.apache.derby.iapi.sql.dictionary.ConstraintDescriptor, org.apache.derby.iapi.sql.dictionary.SequenceDescriptor, org.apache.derby.iapi.sql.dictionary.SPSDescriptor, org.apache.derby.iapi.sql.dictionary.TableDescriptor, org.apache.derby.iapi.sql.dictionary.TriggerDescriptor, org.apache.derby.iapi.sql.dictionary.ViewDescriptor
Imports
org.apache.derby.catalog.Dependable, org.apache.derby.shared.common.error.StandardException, org.apache.derby.iapi.sql.conn.LanguageConnectionContext

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

Inherited from org.apache.derby.catalog.Dependable:
ACTIVATIONALIASCOLUMNS_IN_TABLECOLUMNS_PERMISSIONCONGLOMERATECONSTRAINTDEFAULTFILEHEAPINDEXPERMPREPARED_STATEMENTROLE_GRANTROUTINE_PERMISSIONSCHEMASEQUENCESTORED_PREPARED_STATEMENTTABLETABLE_PERMISSIONTRIGGERVIEW

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if the dependent is currently valid
isValid
()

Check that all of the dependent's dependencies are valid.

public void
makeInvalid(int
The action causing the invalidation
action
,
LanguageConnectionContext
The LanguageConnectionContext
lcc
)

Mark the dependent as invalid (due to at least one of its dependencies being invalid).

public void
prepareToInvalidate(Provider
the provider
p
,
int
The action causing the invalidation
action
,
LanguageConnectionContext
The LanguageConnectionContext
lcc
)

Prepare to mark the dependent as invalid (due to at least one of its dependencies being invalid).

Inherited from org.apache.derby.catalog.Dependable:
getClassTypegetDependableFindergetObjectIDgetObjectNameisPersistent

Method Detail

isValidback to summary
public boolean isValid()

Check that all of the dependent's dependencies are valid.

Returns:boolean

true if the dependent is currently valid

makeInvalidback to summary
public 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:int

The action causing the invalidation

lcc:LanguageConnectionContext

The LanguageConnectionContext

Exceptions
StandardException:
thrown if unable to make it invalid
prepareToInvalidateback to summary
public 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:Provider

the provider

action:int

The action causing the invalidation

lcc:LanguageConnectionContext

The LanguageConnectionContext

Exceptions
StandardException:
thrown if unable to make it invalid