org.axonframework.eventstore.jpa.criteria
Class JpaProperty

java.lang.Object
  extended by org.axonframework.eventstore.jpa.criteria.JpaProperty
All Implemented Interfaces:
Property

public class JpaProperty
extends Object
implements Property

Property implementation for JPA Event Store.

Since:
2.0
Author:
Allard Buijze

Constructor Summary
JpaProperty(String propertyName)
          Initializes a property for the given propertyName.
 
Method Summary
 JpaCriteria greaterThan(Object expression)
          Returns a criteria instance where the property must be "greater than" the given expression.
 JpaCriteria greaterThanEquals(Object expression)
          Returns a criteria instance where the property must be "greater than" or "equal to" the given expression.
 Criteria in(Object expression)
          Returns a criteria instance where the property must be "in" the given expression.
 JpaCriteria is(Object expression)
          Returns a criteria instance where the property must "equal" the given expression.
 JpaCriteria isNot(Object expression)
          Returns a criteria instance where the property must be "not equal to" the given expression.
 JpaCriteria lessThan(Object expression)
          Returns a criteria instance where the property must be "less than" the given expression.
 JpaCriteria lessThanEquals(Object expression)
          Returns a criteria instance where the property must be "less than" or "equal to" the given expression.
 Criteria notIn(Object expression)
          Returns a criteria instance where the property must be "not in" the given expression.
 void parse(String entryKey, StringBuilder stringBuilder)
          Parse the property value to a valid EJQL expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaProperty

public JpaProperty(String propertyName)
Initializes a property for the given propertyName.

Parameters:
propertyName - The name of the property
Method Detail

lessThan

public JpaCriteria lessThan(Object expression)
Description copied from interface: Property
Returns a criteria instance where the property must be "less than" the given expression. Some event stores also allow the given expression to be a property.

Specified by:
lessThan in interface Property
Parameters:
expression - The expression to match against the property
Returns:
a criteria instance describing a "less than" requirement.

lessThanEquals

public JpaCriteria lessThanEquals(Object expression)
Description copied from interface: Property
Returns a criteria instance where the property must be "less than" or "equal to" the given expression. Some event stores also allow the given expression to be a property.

Specified by:
lessThanEquals in interface Property
Parameters:
expression - The expression to match against the property
Returns:
a criteria instance describing a "less than or equals" requirement.

greaterThan

public JpaCriteria greaterThan(Object expression)
Description copied from interface: Property
Returns a criteria instance where the property must be "greater than" the given expression. Some event stores also allow the given expression to be a property.

Specified by:
greaterThan in interface Property
Parameters:
expression - The expression to match against the property
Returns:
a criteria instance describing a "greater than" requirement.

greaterThanEquals

public JpaCriteria greaterThanEquals(Object expression)
Description copied from interface: Property
Returns a criteria instance where the property must be "greater than" or "equal to" the given expression. Some event stores also allow the given expression to be a property.

Specified by:
greaterThanEquals in interface Property
Parameters:
expression - The expression to match against the property
Returns:
a criteria instance describing a "greater than or equals" requirement.

is

public JpaCriteria is(Object expression)
Description copied from interface: Property
Returns a criteria instance where the property must "equal" the given expression. Some event stores also allow the given expression to be a property.

Specified by:
is in interface Property
Parameters:
expression - The expression to match against the property
Returns:
a criteria instance describing an "equals" requirement.

isNot

public JpaCriteria isNot(Object expression)
Description copied from interface: Property
Returns a criteria instance where the property must be "not equal to" the given expression. Some event stores also allow the given expression to be a property.

Specified by:
isNot in interface Property
Parameters:
expression - The expression to match against the property
Returns:
a criteria instance describing a "not equals" requirement.

in

public Criteria in(Object expression)
Description copied from interface: Property
Returns a criteria instance where the property must be "in" the given expression. Some event stores also allow the given expression to be a property.

Note that the given expression must describe a collection of some sort.

Specified by:
in in interface Property
Parameters:
expression - The expression to match against the property
Returns:
a criteria instance describing a "is in" requirement.

notIn

public Criteria notIn(Object expression)
Description copied from interface: Property
Returns a criteria instance where the property must be "not in" the given expression. Some event stores also allow the given expression to be a property.

Specified by:
notIn in interface Property
Parameters:
expression - The expression to match against the property
Returns:
a criteria instance describing a "is not in" requirement.

parse

public void parse(String entryKey,
                  StringBuilder stringBuilder)
Parse the property value to a valid EJQL expression.

Parameters:
entryKey - The variable assigned to the entry holding the property
stringBuilder - The builder to append the expression to


Copyright © 2010-2016. All Rights Reserved.