public abstract class JpaCriteria extends Object implements Criteria
| Constructor and Description |
|---|
JpaCriteria() |
| Modifier and Type | Method and Description |
|---|---|
JpaCriteria |
and(Criteria criteria)
Returns a criteria instance where both
this and given criteria must match. |
JpaCriteria |
or(Criteria criteria)
Returns a criteria instance where either
this or the given criteria must match. |
abstract void |
parse(String entryKey,
StringBuilder whereClause,
ParameterRegistry parameters)
Parses the criteria to a JPA compatible where clause and parameter values.
|
public JpaCriteria and(Criteria criteria)
Criteriathis and given criteria must match.public JpaCriteria or(Criteria criteria)
Criteriathis or the given criteria must match.public abstract void parse(String entryKey, StringBuilder whereClause, ParameterRegistry parameters)
entryKey - The variable assigned to the entry in the whereClausewhereClause - The buffer to write the where clause to.parameters - The registry where parameters and assigned values can be registered.Copyright © 2010-2014. All Rights Reserved.