|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.execute.GenericConstantAction
org.apache.derby.impl.sql.execute.DDLConstantAction
org.apache.derby.impl.sql.execute.SetConstraintsConstantAction
This class describes actions that are performed for a set constraint at Execution time.
Note that the dependency action we send is SET_CONSTRAINTS rather than ALTER_TABLE. We do this because we want to distinguish SET_CONSTRAINTS from ALTER_TABLE for error messages.
Field Summary | |
private ConstraintDescriptorList |
cdl
|
private UUID[] |
cuuids
|
private boolean |
enable
|
private UUID[] |
tuuids
|
private boolean |
unconditionallyEnforce
|
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction |
RUNTIMESTATISTICS, STATISTICSTIMING |
Constructor Summary | |
(package private) |
SetConstraintsConstantAction(ConstraintDescriptorList cdl,
boolean enable,
boolean unconditionallyEnforce)
Boilerplate |
Method Summary | |
void |
executeConstantAction(Activation activation)
This is the guts of the Execution-time logic for DROP CONSTRAINT. |
private ConstraintDescriptorList |
getConstraintDescriptorList(DataDictionary dd)
|
private RowLocation |
getRowLocation(DataDictionary dd,
TableDescriptor td,
TransactionController tc)
|
boolean |
modifiesTableId(UUID tableId)
Does this constant action modify the passed in table uuid? |
protected void |
publishToTargets(Activation activation)
Do the work of publishing any this action to any replication targets. |
java.lang.String |
toString()
|
private void |
validateAllCheckConstraints(LanguageConnectionContext lcc,
java.util.Hashtable ht)
|
private void |
validateFKConstraint(ForeignKeyConstraintDescriptor fk,
DataDictionary dd,
TransactionController tc,
ContextManager cm)
|
Methods inherited from class org.apache.derby.impl.sql.execute.DDLConstantAction |
constructToString, getAndCheckSchemaDescriptor, getSchemaDescriptorForCreate, lockTableForDDL, readExternal, upToDate, writeExternal |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private boolean enable
private boolean unconditionallyEnforce
private ConstraintDescriptorList cdl
private UUID[] cuuids
private UUID[] tuuids
Constructor Detail |
SetConstraintsConstantAction(ConstraintDescriptorList cdl, boolean enable, boolean unconditionallyEnforce)
cdl
- ConstraintDescriptorListenable
- true == turn them on, false == turn them offunconditionallyEnforce
- Replication sets this to true at
the end of REFRESH. This forces us
to run the included foreign key constraints even
if they're already marked ENABLED.Method Detail |
public java.lang.String toString()
public void executeConstantAction(Activation activation) throws StandardException
activation
- The execution environment for this constant action.
StandardException
- Thrown on failureConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
private void validateAllCheckConstraints(LanguageConnectionContext lcc, java.util.Hashtable ht) throws StandardException
StandardException
private void validateFKConstraint(ForeignKeyConstraintDescriptor fk, DataDictionary dd, TransactionController tc, ContextManager cm) throws StandardException
StandardException
private RowLocation getRowLocation(DataDictionary dd, TableDescriptor td, TransactionController tc) throws StandardException
StandardException
private ConstraintDescriptorList getConstraintDescriptorList(DataDictionary dd) throws StandardException
StandardException
public boolean modifiesTableId(UUID tableId) throws StandardException
For SET CONSTRAINTS return true if it is SET CONSTRAINTS ALL otherwise, compare the table ids.
modifiesTableId
in interface ConstantAction
modifiesTableId
in class DDLConstantAction
tableId
- the table id
StandardException
- on errorprotected void publishToTargets(Activation activation) throws StandardException
activation
- the activation
StandardException
- on error
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |