org.axonframework.eventstore.jpa.criteria
Class SimpleOperator
java.lang.Object
org.axonframework.eventstore.jpa.criteria.JpaCriteria
org.axonframework.eventstore.jpa.criteria.SimpleOperator
- All Implemented Interfaces:
- Criteria
public class SimpleOperator
- extends JpaCriteria
Implementation of all simple operators (i.e. those with a structure of value operator value
.
- Since:
- 2.0
- Author:
- Allard Buijze
Methods inherited from class org.axonframework.eventstore.jpa.criteria.JpaCriteria |
and, or |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleOperator
public SimpleOperator(JpaProperty property,
String operator,
Object expression)
- Initializes a simple operator where the given
property
, operator
and
expression
match.
- Parameters:
property
- The property to matchoperator
- The operator to match withexpression
- The expression to match the property against
parse
public void parse(String entryKey,
StringBuilder whereClause,
ParameterRegistry parameters)
- Description copied from class:
JpaCriteria
- Parses the criteria to a JPA compatible where clause and parameter values.
- Specified by:
parse
in class JpaCriteria
- 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-2016. All Rights Reserved.