org.axonframework.eventstore.jpa.criteria
Class CollectionOperator

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

public class CollectionOperator
extends JpaCriteria

Abstract implementation to use for testing whether an item is present in a collection or not.

Since:
2.0
Author:
Allard Buijze

Constructor Summary
CollectionOperator(JpaProperty property, String operator, Object expression)
          Initializes the operator matching given property against the given expression using the given operator.
 
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

CollectionOperator

public CollectionOperator(JpaProperty property,
                          String operator,
                          Object expression)
Initializes the operator matching given property against the given expression using the given operator.

Parameters:
property - The property to match
operator - The JPA operator to match the property against the expression
expression - The expression to match against
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.