public class ERXFilteredQualifierTraversal extends ERXQualifierTraversal
Modifier | Constructor and Description |
---|---|
protected |
ERXFilteredQualifierTraversal(EOEntity entity,
ERXKeyFilter filter)
Constructs a new ERXFilteredQualifierTraversal.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkKey(String key)
Checks the given key and throws an exception if the filter does not match it.
|
static void |
checkQualifierForEntityWithFilter(EOQualifier qualifier,
EOEntity entity,
ERXKeyFilter filter)
Traverses the given qualifier, checking each keypath against the given filter, evaluated against the given
entity.
|
protected boolean |
traverseKeyComparisonQualifier(EOKeyComparisonQualifier q)
Should traverse key comparison qualifier?
|
protected boolean |
traverseKeyValueQualifier(EOKeyValueQualifier q)
Should traverse a key value qualifier?
|
protected boolean |
traverseUnknownQualifier(EOQualifierEvaluation q)
Should traverse unknown qualifier? Logs an error.
|
static ERXKey.Type |
typeForKeyInEntity(String key,
EOEntity entity)
Returns the ERXKey.Type for a keypath on a particular entity.
|
traverse, traverse, traverseAndQualifier, traverseExistsQualifier, traverseFalseQualifier, traverseNotQualifier, traverseOrQualifier, traverseTrueQualifier, visit
protected ERXFilteredQualifierTraversal(EOEntity entity, ERXKeyFilter filter)
entity
- the entity to resolve keypaths onfilter
- the filter to check againstprotected void checkKey(String key) throws SecurityException
key
- the key to checkSecurityException
- if the key does not matchprotected boolean traverseKeyComparisonQualifier(EOKeyComparisonQualifier q)
ERXQualifierTraversal
traverseKeyComparisonQualifier
in class ERXQualifierTraversal
q
- the qualifier to processprotected boolean traverseKeyValueQualifier(EOKeyValueQualifier q)
ERXQualifierTraversal
traverseKeyValueQualifier
in class ERXQualifierTraversal
q
- the qualifier to processprotected boolean traverseUnknownQualifier(EOQualifierEvaluation q)
ERXQualifierTraversal
traverseUnknownQualifier
in class ERXQualifierTraversal
q
- the qualifier to processpublic static ERXKey.Type typeForKeyInEntity(String key, EOEntity entity)
key
- the key to lookupentity
- the entity to resolve the keypath onpublic static void checkQualifierForEntityWithFilter(EOQualifier qualifier, EOEntity entity, ERXKeyFilter filter) throws SecurityException
qualifier
- the qualifier to checkentity
- the entity to resolve keypaths againstfilter
- the filter to evaluate withSecurityException
- if a keypath is not matched by the filterCopyright © 2002 – 2024 Project Wonder.