org.axonframework.eventstore.management
Interface CriteriaBuilder

All Known Implementing Classes:
JdbcCriteriaBuilder, JpaCriteriaBuilder, MongoCriteriaBuilder, MongoCriteriaBuilder

public interface CriteriaBuilder

Interface providing access to the criteria API of an Event Store.

Example:

     CriteriaBuilder entry = eventStore.newCriteriaBuilder();
     // Timestamps are stored as ISO 8601 Strings.
     Criteria criteria = entry.property("timeStamp").greaterThan("2011-11-12");
     eventStore.visitEvents(criteria, visitor);
 

Since:
2.0
Author:
Allard Buijze

Method Summary
 Property property(String propertyName)
          Returns a property instance that can be used to build criteria.
 

Method Detail

property

Property property(String propertyName)
Returns a property instance that can be used to build criteria. The given propertyName must hold a valid value for the Event Store that returns that value. Typically, it requires the "indexed" values to be used, such as event identifier, aggregate identifier, timestamp, etc.

Parameters:
propertyName - The name of the property to evaluate
Returns:
a property instance that can be used to build expressions


Copyright © 2010-2016. All Rights Reserved.