org.axonframework.eventstore.jdbc.criteria
Class JdbcCriteria

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

public abstract class JdbcCriteria
extends Object
implements Criteria

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

Since:
2.2
Author:
Allard Buijze, Kristian Rosenvold

Constructor Summary
JdbcCriteria()
           
 
Method Summary
 JdbcCriteria and(Criteria criteria)
          Returns a criteria instance where both this and given criteria must match.
 JdbcCriteria 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

JdbcCriteria

public JdbcCriteria()
Method Detail

and

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