org.axonframework.eventstore.jpa.criteria
Class JpaCriteria

java.lang.Object
  extended by org.axonframework.eventstore.jpa.criteria.JpaCriteria
All Implemented Interfaces:
Criteria
Direct Known Subclasses:
BinaryOperator, CollectionOperator, Equals, NotEquals, SimpleOperator

public abstract class JpaCriteria
extends Object
implements Criteria

Abstract implementation of the Criteria interface for a JPA Event Store.

Since:
2.0
Author:
Allard Buijze

Constructor Summary
JpaCriteria()
           
 
Method Summary
 JpaCriteria and(Criteria criteria)
          Returns a criteria instance where both this and given criteria must match.
 JpaCriteria or(Criteria criteria)
          Returns a criteria instance where either this or the given criteria must match.
abstract  void parse(String entryKey, StringBuilder whereClause, ParameterRegistry parameters)
          Parses the criteria to a JPA compatible where clause and parameter values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaCriteria

public JpaCriteria()
Method Detail

and

public JpaCriteria and(Criteria criteria)
Description copied from interface: Criteria
Returns a criteria instance where both this and given criteria must match.

Specified by:
and in interface Criteria
Parameters:
criteria - The criteria that must match
Returns:
a criteria instance that matches if both this and criteria match

or

public JpaCriteria or(Criteria criteria)
Description copied from interface: Criteria
Returns a criteria instance where either this or the given criteria must match.

Specified by:
or in interface Criteria
Parameters:
criteria - The criteria that must match if this doesn't match
Returns:
a criteria instance that matches if this or the given criteria match

parse

public abstract void parse(String entryKey,
                           StringBuilder whereClause,
                           ParameterRegistry parameters)
Parses the criteria to a JPA compatible where clause and parameter values.

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.