org.datamanager.constraint
Class RecursiveOrEntityConstraint

java.lang.Object
  |
  +--org.datamanager.kernel.AbstractEntityConstraint
        |
        +--org.datamanager.constraint.RecursiveOrEntityConstraint
All Implemented Interfaces:
Constraint, EntityConstraint, EntityValue, Serializable

public class RecursiveOrEntityConstraint
extends AbstractEntityConstraint

Selects entities out of the Pool whose Attribute Entities may satisfy the constraint as well. It isn't very efficient, though that's a product of the Attribute Entity attachment schema. Perhaps the future holds an MoreSophisticatedVerySimpleEntity plug-in for self-reordering B+ tree attribute attachments.

Version:
$Revision: 1.7 $
Author:
Allen Lee
, Bob George
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.datamanager.kernel.AbstractEntityConstraint
DEBUG_ACCEPTS_MESSAGE
 
Fields inherited from interface org.datamanager.constraint.EntityConstraint
NONE
 
Constructor Summary
RecursiveOrEntityConstraint(EntityConstraint constraint)
           
 
Method Summary
protected  boolean describes(Entity defendant)
          Returns true if the defendant Entity or any of its attributes is accept()-ed by the EntityConstraint constructor parameter.
 
Methods inherited from class org.datamanager.kernel.AbstractEntityConstraint
accepts
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecursiveOrEntityConstraint

public RecursiveOrEntityConstraint(EntityConstraint constraint)
Method Detail

describes

protected boolean describes(Entity defendant)
                     throws DataManagerException
Returns true if the defendant Entity or any of its attributes is accept()-ed by the EntityConstraint constructor parameter. Circular attribute relationships are properly handled so long as this constraint is not re-used.

Specified by:
describes in class AbstractEntityConstraint
Parameters:
defendant - The Entity to be examined.
Returns:
a boolean specifying whether or not the Entity defendant or any of its attributes is accepted by the EntityConstraint passed into the constructor.
DataManagerException


See the Helium Website