org.axonframework.eventstore.jdbc.criteria
Class SimpleOperator

java.lang.Object
  extended by org.axonframework.eventstore.jdbc.criteria.JdbcCriteria
      extended by org.axonframework.eventstore.jdbc.criteria.SimpleOperator
All Implemented Interfaces:
Criteria

public class SimpleOperator
extends JdbcCriteria

Implementation of all simple operators (i.e. those with a structure of value operator value.

Since:
2.2
Author:
Allard Buijze, Kristian Rosenvold

Constructor Summary
SimpleOperator(JdbcProperty property, String operator, Object expression)
          Initializes a simple operator where the given property, operator and expression match.
 
Method Summary
 void parse(String entryKey, StringBuilder whereClause, ParameterRegistry parameters)
          Parses the criteria to a JPA compatible where clause and parameter values.
 
Methods inherited from class org.axonframework.eventstore.jdbc.criteria.JdbcCriteria
and, or
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleOperator

public SimpleOperator(JdbcProperty property,
                      String operator,
                      Object expression)
Initializes a simple operator where the given property, operator and expression match.

Parameters:
property - The property to match
operator - The operator to match with
expression - The expression to match the property against
Method Detail

parse

public void parse(String entryKey,
                  StringBuilder whereClause,
                  ParameterRegistry parameters)
Description copied from class: JdbcCriteria
Parses the criteria to a JPA compatible where clause and parameter values.

Specified by:
parse in class JdbcCriteria
Parameters:
entryKey - The variable assigned to the entry in the whereClause
whereClause - 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.