org.axonframework.eventstore.jpa.criteria
Class BinaryOperator

java.lang.Object
  extended by org.axonframework.eventstore.jpa.criteria.JpaCriteria
      extended by org.axonframework.eventstore.jpa.criteria.BinaryOperator
All Implemented Interfaces:
Criteria

public class BinaryOperator
extends JpaCriteria

Implementation of a binary operator for the Jpa Event Store.

Since:
2.0
Author:
Allard Buijze

Constructor Summary
BinaryOperator(JpaCriteria criteria1, String operator, JpaCriteria criteria2)
          Initializes a binary operator that matches against two criteria
 
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.jpa.criteria.JpaCriteria
and, or
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BinaryOperator

public BinaryOperator(JpaCriteria criteria1,
                      String operator,
                      JpaCriteria criteria2)
Initializes a binary operator that matches against two criteria

Parameters:
criteria1 - One of the criteria to match
operator - The binary operator to check the criteria with
criteria2 - One of the criteria to match
Method Detail

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 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.