|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Provides methods for setting up a constraint in the context of its schema.
This context provides methods for declaring constraint's dependencies.
Constraint's dependencies are used for minimizing the number of calls to the method
Constraint.checkOccurrence(Object, ValueContextForValidation)
in validation processes. Three modes are available:
setDependencyToLocalNode().
IMPORTANT NOTES:
Constraint| Method Summary | |
void |
addDependency(AdaptationName aName,
Path aPath)
Deprecated. Does nothing. |
void |
addDependency(Path aPath)
Deprecated. Does nothing. |
void |
addDependencyToInsertAndDelete(SchemaNode aTableSourceNode)
Specifies that the validation result of the current constraint depends on the insertions and deletions in the specified table node. |
void |
addDependencyToInsertAndDeleteInOtherInstance(Path tablePathInContainer,
AdaptationReference containerReference)
Specifies that the validation result of the current constraint depends on the insertions and deletions in the specified table node of a given instance. |
void |
addDependencyToInsertAndDeleteInOtherInstance(Path tablePathInContainer,
AdaptationReference containerReference,
HomeKey homeReference)
Specifies that the validation result of the current constraint depends on the insertions and deletions in the specified table node of a given instance in a specific home. |
void |
addDependencyToInsertDeleteAndModify(SchemaNode aSourceNode)
Specifies that the validation result of the current constraint depends on the insertions, modifications and deletions related to the specified node. |
void |
addDependencyToInsertDeleteAndModifyInOtherInstance(SchemaNode sourceNode,
AdaptationReference containerReference)
Specifies that the validation result of the current constraint depends on the insertions, modifications and deletions related to the specified node in a given adaptation. |
void |
addDependencyToInsertDeleteAndModifyInOtherInstance(SchemaNode sourceNode,
AdaptationReference containerReference,
HomeKey homeReference)
Specifies that the validation result of the current constraint depends on the insertions, modifications and deletions related to the specified node in a given adaptation in a specific home. |
void |
addDependencyToModify(SchemaNode aLocalSource)
Specifies that the validation result of the current constraint depends on the value of the specified source node in the same record. |
void |
addValueDependencyToNode(SchemaNode referredNode)
Deprecated. Replaced by methods addDependencyToModify(SchemaNode)
and addDependencyToInsertDeleteAndModify(SchemaNode). |
void |
setDependencyToLocalNode()
Specifies that the validation result of the current constraint depends only on the local value of the underlying node. |
| Methods inherited from interface com.orchestranetworks.schema.SchemaNodeContext |
addError, addError, addInfo, addMessage, addWarning, getSchemaNode |
| Method Detail |
public void addDependency(Path aPath)
throws PathAccessException
PathAccessException
public void addDependency(AdaptationName aName,
Path aPath)
public void addValueDependencyToNode(SchemaNode referredNode)
addDependencyToModify(SchemaNode)
and addDependencyToInsertDeleteAndModify(SchemaNode).
public void setDependencyToLocalNode()
For more information, see Dependencies and Validation section.
IllegalStateException - if a value dependency has been added to this constraintpublic void addDependencyToModify(SchemaNode aLocalSource)
In the context of incremental validation, this means that, in the context of the modified record, this constraint is subject to revalidation each time the value of the source node is modified.
Warning: A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and Validation section.
IllegalStateException - if a local dependency has been set to this constraint.
IllegalArgumentException - if the specified source node does not locally hold a value; that is:
terminal node or under a terminal node.table node. table occurrence node not in the same table
as the current node (if this one is also a table occurrence node).public void addDependencyToInsertAndDelete(SchemaNode aTableSourceNode)
In the context of incremental validation, this means that the current constraint will be subject to a global (re)validation for all the records of the table if any of the following events occur:
Warning: A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and Validation section.
IllegalStateException - if a local dependency has been set to this constraint.
IllegalArgumentException - if specified source is not a table node.
public void addDependencyToInsertAndDeleteInOtherInstance(Path tablePathInContainer,
AdaptationReference containerReference,
HomeKey homeReference)
In the context of incremental validation, this means that the current constraint will be subject to a global (re)validation for all the records of the table if any of the following events occur:
Warning: A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and Validation section.
IllegalStateException - if a local dependency has been set to this constraint.
IllegalArgumentException - if specified source is not a table node.
if specified containerReference is null.
if specified homeReference is null.addDependencyToInsertAndDeleteInOtherInstance(Path, AdaptationReference)
public void addDependencyToInsertAndDeleteInOtherInstance(Path tablePathInContainer,
AdaptationReference containerReference)
In the context of incremental validation, this means that the current constraint will be subject to a global (re)validation for all the records of the table if any of the following events occur:
Warning: A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and Validation section.
IllegalStateException - if a local dependency has been set to this constraint.
IllegalArgumentException - if specified source is not a table node.
if specified containerReference is null.addDependencyToInsertAndDeleteInOtherInstance(Path, AdaptationReference, HomeKey)public void addDependencyToInsertDeleteAndModify(SchemaNode aSourceNode)
In the context of incremental validation, this means that the current constraint will be subject to a global (re)validation for all the records of the table if any of the following events occur:
table node;
table occurrence node,
Warning: A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and Validation section.
aSourceNode - specifies the source node and table on which this constraint depends;
if the source is a table node,
any insertion, modification and deletion in the table will imply a revalidation
of the current constraint for all the records of the table;
if the source is a table occurrence node,
the revalidation is more restrictive since
only the modification of the specified node and any insertion or deletion
will imply a revalidation.
IllegalStateException - if a local dependency has been set to this constraint.
IllegalArgumentException - if the specified source node is not a table node
or a table occurrence node.
public void addDependencyToInsertDeleteAndModifyInOtherInstance(SchemaNode sourceNode,
AdaptationReference containerReference,
HomeKey homeReference)
In the context of incremental validation, this means that the current constraint will be subject to a global (re)validation for all the records of the table if any of the following events occur:
table node;
table occurrence node,
Warning: A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and Validation section.
sourceNode - specifies the source node and table on which this constraint depends;
if the source is a table node,
any insertion, modification and deletion in the table will imply a revalidation
of the current constraint for all the records of the table;
if the source is a table occurrence node,
the revalidation is more restrictive since
only the modification of the specified node and any insertion or deletion
will imply a revalidation.
IllegalStateException - if a local dependency has been set to this constraint.
IllegalArgumentException - if the specified source node is not a table node
or a table occurrence node.
if specified containerReference is null.
if specified homeReference is null.
public void addDependencyToInsertDeleteAndModifyInOtherInstance(SchemaNode sourceNode,
AdaptationReference containerReference)
In the context of incremental validation, this means that the current constraint will be subject to a global (re)validation for all the records of the table if any of the following events occur:
table node;
table occurrence node,
Warning: A call to this method implies that all dependencies are explicitly declared (explicit dependencies mode). For more information, see Dependencies and Validation section.
sourceNode - specifies the source node and table on which this constraint depends;
if the source is a table node,
any insertion, modification and deletion in the table will imply a revalidation
of the current constraint for all the records of the table;
if the source is a table occurrence node,
the revalidation is more restrictive since
only the modification of the specified node and any insertion or deletion
will imply a revalidation.
IllegalStateException - if a local dependency has been set to this constraint.
IllegalArgumentException - if the specified source node is not a table node
or a table occurrence node.
if specified containerReference is null.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
(report a bug)
EBX.Platform 4.8.4 [0722]
Copyright Orchestra Networks 2000-2010. All rights reserved.