org.axonframework.eventstore.jdbc.criteria
Class JdbcProperty

java.lang.Object
  extended by org.axonframework.eventstore.jdbc.criteria.JdbcProperty
All Implemented Interfaces:
Property

public class JdbcProperty
extends Object
implements Property

Property implementation for Jdbc Event Store.

Since:
2.2
Author:
Allard Buijze, Kristian Rosenvold

Constructor Summary
JdbcProperty(String propertyName)
          Initializes a property for the given propertyName.
 
Method Summary
 JdbcCriteria greaterThan(Object expression)
          Returns a criteria instance where the property must be "greater than" the given expression.
 JdbcCriteria 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.
 JdbcCriteria is(Object expression)
          Returns a criteria instance where the property must "equal" the given expression.
 JdbcCriteria isNot(Object expression)
          Returns a criteria instance where the property must be "not equal to" the given expression.
 JdbcCriteria lessThan(Object expression)
          Returns a criteria instance where the property must be "less than" the given expression.
 JdbcCriteria 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

JdbcProperty

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

Parameters:
propertyName - The name of the property
Method Detail

lessThan

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