public static class CascadeManager.LookupCriteria
extends java.lang.Object
| Constructor and Description | 
|---|
| CascadeManager.LookupCriteria() | 
| Modifier and Type | Method and Description | 
|---|---|
| <T extends DBObject>  | addIfRequired(T obj,
             java.util.Collection<? super T> objs)Adds an object to the given collection if it is allowed by this
 lookup. | 
| <T extends DBObjectID>  | addIfRequired(T id,
             java.util.Collection<? super T> ids)Adds an id to the given collection if its type is allowed by this
 lookup. | 
| java.lang.String[] | getIgnoredProperties()Gets the properties that this lookup should ignore on all objects. | 
| java.lang.String[] | getTypes()Gets the object types that this lookup should be restricted to. | 
| boolean | isIgnoredProperty(java.lang.String prop)Tests whether the given property should be ignored in the lookup. | 
| boolean | isRecurse()Gets whether the lookup should recurse on to found objects. | 
| boolean | isRequiredType(java.lang.String type)Tests whether the given object type is required by this criteria. | 
| void | setIgnoredProperties(java.lang.String... props)Sets the property names that this lookup will ignore on all objects. | 
| void | setRecurse(boolean recurse)Sets whether the lookup should recurse - i.e. | 
| void | setTypes(java.lang.String... types)Sets the object types that we require in the lookup. | 
public void setRecurse(boolean recurse)
recurse - whether to recursepublic boolean isRecurse()
public void setTypes(java.lang.String... types)
types - restriction on the object types we're interested in
 finding.public java.lang.String[] getTypes()
public boolean isRequiredType(java.lang.String type)
public <T extends DBObject> boolean addIfRequired(T obj, java.util.Collection<? super T> objs)
obj - the object to add, if requiredobjs - the collection of objects  that we've found in the lookuppublic <T extends DBObjectID> boolean addIfRequired(T id, java.util.Collection<? super T> ids)
id - the id to add, if requiredids - the collection of ids that we've found in the lookuppublic void setIgnoredProperties(java.lang.String... props)
This criteria only works for a "referenced objects" lookup, and not for a "referers" lookup.
Setting a property that is a child object property (e.g. constraints) will ignore all references from any child object underneath that property on all objects.
props - the properties to ignore during the lookuppublic java.lang.String[] getIgnoredProperties()
public boolean isIgnoredProperty(java.lang.String prop)
prop - the property to test