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(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(EOEntity entity,
EOQualifier qualifier) |
protected ClauseType |
convertKeyValueQualifier(EOEntity entity,
EOKeyValueQualifier qual) |
abstract ClauseType |
fullQuery(EOEntity entity,
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(EOEntity entity, EOQualifier qualifier)
entity
- qualifier
- protected ClauseType convert(EOEntity entity, EOQualifier qualifier)
protected ClauseType convertKeyValueQualifier(EOEntity entity, EOKeyValueQualifier qual)
protected abstract ClauseType comparison(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 – 2024 Project Wonder.