public class BinaryOperator extends JdbcCriteria
Constructor and Description |
---|
BinaryOperator(JdbcCriteria criteria1,
String operator,
JdbcCriteria criteria2)
Initializes a binary operator that matches against two criteria
|
Modifier and Type | Method and Description |
---|---|
void |
parse(String entryKey,
StringBuilder whereClause,
ParameterRegistry parameters)
Parses the criteria to a JPA compatible where clause and parameter values.
|
and, or
public BinaryOperator(JdbcCriteria criteria1, String operator, JdbcCriteria criteria2)
criteria1
- One of the criteria to matchoperator
- The binary operator to check the criteria withcriteria2
- One of the criteria to matchpublic void parse(String entryKey, StringBuilder whereClause, ParameterRegistry parameters)
JdbcCriteria
parse
in class JdbcCriteria
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.