public class ERXFilteredQualifierTraversal extends ERXQualifierTraversal
Modifier | Constructor and Description |
---|---|
protected |
ERXFilteredQualifierTraversal(com.webobjects.eoaccess.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(com.webobjects.eocontrol.EOQualifier qualifier,
com.webobjects.eoaccess.EOEntity entity,
ERXKeyFilter filter)
Traverses the given qualifier, checking each keypath against the given filter, evaluated against the given
entity.
|
protected boolean |
traverseKeyComparisonQualifier(com.webobjects.eocontrol.EOKeyComparisonQualifier q)
Should traverse key comparison qualifier?
|
protected boolean |
traverseKeyValueQualifier(com.webobjects.eocontrol.EOKeyValueQualifier q)
Should traverse a key value qualifier?
|
protected boolean |
traverseUnknownQualifier(com.webobjects.eocontrol.EOQualifierEvaluation q)
Should traverse unknown qualifier? Logs an error.
|
static ERXKey.Type |
typeForKeyInEntity(String key,
com.webobjects.eoaccess.EOEntity entity)
Returns the ERXKey.Type for a keypath on a particular entity.
|
traverse, traverse, traverseAndQualifier, traverseExistsQualifier, traverseFalseQualifier, traverseNotQualifier, traverseOrQualifier, traverseTrueQualifier, visit
protected ERXFilteredQualifierTraversal(com.webobjects.eoaccess.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(com.webobjects.eocontrol.EOKeyComparisonQualifier q)
ERXQualifierTraversal
traverseKeyComparisonQualifier
in class ERXQualifierTraversal
q
- the qualifier to processprotected boolean traverseKeyValueQualifier(com.webobjects.eocontrol.EOKeyValueQualifier q)
ERXQualifierTraversal
traverseKeyValueQualifier
in class ERXQualifierTraversal
q
- the qualifier to processprotected boolean traverseUnknownQualifier(com.webobjects.eocontrol.EOQualifierEvaluation q)
ERXQualifierTraversal
traverseUnknownQualifier
in class ERXQualifierTraversal
q
- the qualifier to processpublic static ERXKey.Type typeForKeyInEntity(String key, com.webobjects.eoaccess.EOEntity entity)
key
- the key to lookupentity
- the entity to resolve the keypath onpublic static void checkQualifierForEntityWithFilter(com.webobjects.eocontrol.EOQualifier qualifier, com.webobjects.eoaccess.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 – 2020 Project Wonder.