ClauseType
- query clause typepublic abstract class QueryConverter<ClauseType> extends Object
EOQualifier
s to custom type of queries.Constructor and Description |
---|
QueryConverter() |
Modifier and Type | Method and Description |
---|---|
protected abstract ClauseType |
comparison(com.webobjects.eoaccess.EOEntity entity,
String key,
ComparisonOperator operator,
Object value)
Creates clause that matches records where the given entity key matches given value using comparison operator.
|
protected ClauseType |
convert(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOQualifier qualifier) |
protected ClauseType |
convertKeyValueQualifier(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOKeyValueQualifier qual) |
abstract ClauseType |
fullQuery(com.webobjects.eoaccess.EOEntity entity,
com.webobjects.eocontrol.EOQualifier qualifier) |
protected abstract ClauseType |
joinWithAndOperator(Collection<ClauseType> queries) |
protected abstract ClauseType |
joinWithOrOperator(Collection<ClauseType> queries) |
protected abstract ClauseType |
matchAll() |
protected abstract ClauseType |
negate(ClauseType query)
Creates negation of the given clause.
|
public abstract ClauseType fullQuery(com.webobjects.eoaccess.EOEntity entity, com.webobjects.eocontrol.EOQualifier qualifier)
entity
- qualifier
- protected ClauseType convert(com.webobjects.eoaccess.EOEntity entity, com.webobjects.eocontrol.EOQualifier qualifier)
protected ClauseType convertKeyValueQualifier(com.webobjects.eoaccess.EOEntity entity, com.webobjects.eocontrol.EOKeyValueQualifier qual)
protected abstract ClauseType comparison(com.webobjects.eoaccess.EOEntity entity, String key, ComparisonOperator operator, Object value)
entity
- key
- operator
- value
- protected abstract ClauseType negate(ClauseType query)
query
- clause to negateprotected abstract ClauseType joinWithAndOperator(Collection<ClauseType> queries)
queries
- clauses to join with logical conjunctiontrue
if all of queries evaluate to true
protected abstract ClauseType joinWithOrOperator(Collection<ClauseType> queries)
queries
- clauses to join with logical alternativetrue
if at least one of queries evaluates to true
protected abstract ClauseType matchAll()
Copyright © 2002 – 2020 Project Wonder.