org.jboss.envers.query
Class VersionsRestrictions

java.lang.Object
  extended by org.jboss.envers.query.VersionsRestrictions

public class VersionsRestrictions
extends java.lang.Object

TODO: ilike

Author:
Adam Warski (adam at warski dot org)
See Also:
org.hibernate.criterion.Restrictions

Method Summary
static org.jboss.envers.query.criteria.VersionsCriterion and(org.jboss.envers.query.criteria.VersionsCriterion lhs, org.jboss.envers.query.criteria.VersionsCriterion rhs)
          Return the conjuction of two expressions
static org.jboss.envers.query.criteria.VersionsCriterion between(java.lang.String propertyName, java.lang.Object lo, java.lang.Object hi)
          Apply a "between" constraint to the named property
static org.jboss.envers.query.criteria.VersionsConjunction conjunction()
          Group expressions together in a single conjunction (A and B and C...)
static org.jboss.envers.query.criteria.VersionsDisjunction disjunction()
          Group expressions together in a single disjunction (A or B or C...)
static org.jboss.envers.query.criteria.VersionsCriterion eq(java.lang.String propertyName, java.lang.Object value)
          Apply an "equal" constraint to the named property
static org.jboss.envers.query.criteria.VersionsCriterion eqProperty(java.lang.String propertyName, java.lang.String otherPropertyName)
          Apply an "equal" constraint to two properties
static org.jboss.envers.query.criteria.VersionsCriterion ge(java.lang.String propertyName, java.lang.Object value)
          Apply a "greater than or equal" constraint to the named property
static org.jboss.envers.query.criteria.VersionsCriterion geProperty(java.lang.String propertyName, java.lang.String otherPropertyName)
          Apply a "greater than or equal" constraint to two properties
static org.jboss.envers.query.criteria.VersionsCriterion gt(java.lang.String propertyName, java.lang.Object value)
          Apply a "greater than" constraint to the named property
static org.jboss.envers.query.criteria.VersionsCriterion gtProperty(java.lang.String propertyName, java.lang.String otherPropertyName)
          Apply a "greater than" constraint to two properties
static org.jboss.envers.query.criteria.VersionsCriterion idEq(java.lang.Object value)
          Apply an "equal" constraint to the identifier property.
static org.jboss.envers.query.criteria.VersionsCriterion in(java.lang.String propertyName, java.util.Collection values)
          Apply an "in" constraint to the named property
static org.jboss.envers.query.criteria.VersionsCriterion in(java.lang.String propertyName, java.lang.Object[] values)
          Apply an "in" constraint to the named property
static org.jboss.envers.query.criteria.VersionsCriterion isNotNull(java.lang.String propertyName)
          Apply an "is not null" constraint to the named property
static org.jboss.envers.query.criteria.VersionsCriterion isNull(java.lang.String propertyName)
          Apply an "is null" constraint to the named property
static org.jboss.envers.query.criteria.VersionsCriterion le(java.lang.String propertyName, java.lang.Object value)
          Apply a "less than or equal" constraint to the named property
static org.jboss.envers.query.criteria.VersionsCriterion leProperty(java.lang.String propertyName, java.lang.String otherPropertyName)
          Apply a "less than or equal" constraint to two properties
static org.jboss.envers.query.criteria.VersionsCriterion like(java.lang.String propertyName, java.lang.Object value)
          Apply a "like" constraint to the named property
static org.jboss.envers.query.criteria.VersionsCriterion like(java.lang.String propertyName, java.lang.String value, MatchMode matchMode)
          Apply a "like" constraint to the named property
static org.jboss.envers.query.criteria.VersionsCriterion lt(java.lang.String propertyName, java.lang.Object value)
          Apply a "less than" constraint to the named property
static org.jboss.envers.query.criteria.VersionsCriterion ltProperty(java.lang.String propertyName, java.lang.String otherPropertyName)
          Apply a "less than" constraint to two properties
static org.jboss.envers.query.criteria.AggregatedFieldVersionsExpression maximizeProperty(java.lang.String propertyName)
          Apply a "maximalize property" constraint.
static org.jboss.envers.query.criteria.AggregatedFieldVersionsExpression minimizeProperty(java.lang.String propertyName)
          Apply a "minimize property" constraint.
static org.jboss.envers.query.criteria.VersionsCriterion ne(java.lang.String propertyName, java.lang.Object value)
          Apply a "not equal" constraint to the named property
static org.jboss.envers.query.criteria.VersionsCriterion neProperty(java.lang.String propertyName, java.lang.String otherPropertyName)
          Apply a "not equal" constraint to two properties
static org.jboss.envers.query.criteria.VersionsCriterion not(org.jboss.envers.query.criteria.VersionsCriterion expression)
          Return the negation of an expression
static org.jboss.envers.query.criteria.VersionsCriterion or(org.jboss.envers.query.criteria.VersionsCriterion lhs, org.jboss.envers.query.criteria.VersionsCriterion rhs)
          Return the disjuction of two expressions
static org.jboss.envers.query.criteria.VersionsCriterion relatedIdEq(java.lang.String propertyName, java.lang.Object id)
          Apply an "equal" constraint on an id of a related entity
static org.jboss.envers.query.criteria.VersionsCriterion relatedIdNe(java.lang.String propertyName, java.lang.Object id)
          Apply a "not equal" constraint to the named property
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

idEq

public static org.jboss.envers.query.criteria.VersionsCriterion idEq(java.lang.Object value)
Apply an "equal" constraint to the identifier property.


eq

public static org.jboss.envers.query.criteria.VersionsCriterion eq(java.lang.String propertyName,
                                                                   java.lang.Object value)
Apply an "equal" constraint to the named property


ne

public static org.jboss.envers.query.criteria.VersionsCriterion ne(java.lang.String propertyName,
                                                                   java.lang.Object value)
Apply a "not equal" constraint to the named property


relatedIdEq

public static org.jboss.envers.query.criteria.VersionsCriterion relatedIdEq(java.lang.String propertyName,
                                                                            java.lang.Object id)
Apply an "equal" constraint on an id of a related entity


relatedIdNe

public static org.jboss.envers.query.criteria.VersionsCriterion relatedIdNe(java.lang.String propertyName,
                                                                            java.lang.Object id)
Apply a "not equal" constraint to the named property


like

public static org.jboss.envers.query.criteria.VersionsCriterion like(java.lang.String propertyName,
                                                                     java.lang.Object value)
Apply a "like" constraint to the named property


like

public static org.jboss.envers.query.criteria.VersionsCriterion like(java.lang.String propertyName,
                                                                     java.lang.String value,
                                                                     MatchMode matchMode)
Apply a "like" constraint to the named property


gt

public static org.jboss.envers.query.criteria.VersionsCriterion gt(java.lang.String propertyName,
                                                                   java.lang.Object value)
Apply a "greater than" constraint to the named property


lt

public static org.jboss.envers.query.criteria.VersionsCriterion lt(java.lang.String propertyName,
                                                                   java.lang.Object value)
Apply a "less than" constraint to the named property


le

public static org.jboss.envers.query.criteria.VersionsCriterion le(java.lang.String propertyName,
                                                                   java.lang.Object value)
Apply a "less than or equal" constraint to the named property


ge

public static org.jboss.envers.query.criteria.VersionsCriterion ge(java.lang.String propertyName,
                                                                   java.lang.Object value)
Apply a "greater than or equal" constraint to the named property


between

public static org.jboss.envers.query.criteria.VersionsCriterion between(java.lang.String propertyName,
                                                                        java.lang.Object lo,
                                                                        java.lang.Object hi)
Apply a "between" constraint to the named property


in

public static org.jboss.envers.query.criteria.VersionsCriterion in(java.lang.String propertyName,
                                                                   java.lang.Object[] values)
Apply an "in" constraint to the named property


in

public static org.jboss.envers.query.criteria.VersionsCriterion in(java.lang.String propertyName,
                                                                   java.util.Collection values)
Apply an "in" constraint to the named property


isNull

public static org.jboss.envers.query.criteria.VersionsCriterion isNull(java.lang.String propertyName)
Apply an "is null" constraint to the named property


eqProperty

public static org.jboss.envers.query.criteria.VersionsCriterion eqProperty(java.lang.String propertyName,
                                                                           java.lang.String otherPropertyName)
Apply an "equal" constraint to two properties


neProperty

public static org.jboss.envers.query.criteria.VersionsCriterion neProperty(java.lang.String propertyName,
                                                                           java.lang.String otherPropertyName)
Apply a "not equal" constraint to two properties


ltProperty

public static org.jboss.envers.query.criteria.VersionsCriterion ltProperty(java.lang.String propertyName,
                                                                           java.lang.String otherPropertyName)
Apply a "less than" constraint to two properties


leProperty

public static org.jboss.envers.query.criteria.VersionsCriterion leProperty(java.lang.String propertyName,
                                                                           java.lang.String otherPropertyName)
Apply a "less than or equal" constraint to two properties


gtProperty

public static org.jboss.envers.query.criteria.VersionsCriterion gtProperty(java.lang.String propertyName,
                                                                           java.lang.String otherPropertyName)
Apply a "greater than" constraint to two properties


geProperty

public static org.jboss.envers.query.criteria.VersionsCriterion geProperty(java.lang.String propertyName,
                                                                           java.lang.String otherPropertyName)
Apply a "greater than or equal" constraint to two properties


isNotNull

public static org.jboss.envers.query.criteria.VersionsCriterion isNotNull(java.lang.String propertyName)
Apply an "is not null" constraint to the named property


and

public static org.jboss.envers.query.criteria.VersionsCriterion and(org.jboss.envers.query.criteria.VersionsCriterion lhs,
                                                                    org.jboss.envers.query.criteria.VersionsCriterion rhs)
Return the conjuction of two expressions


or

public static org.jboss.envers.query.criteria.VersionsCriterion or(org.jboss.envers.query.criteria.VersionsCriterion lhs,
                                                                   org.jboss.envers.query.criteria.VersionsCriterion rhs)
Return the disjuction of two expressions


not

public static org.jboss.envers.query.criteria.VersionsCriterion not(org.jboss.envers.query.criteria.VersionsCriterion expression)
Return the negation of an expression


conjunction

public static org.jboss.envers.query.criteria.VersionsConjunction conjunction()
Group expressions together in a single conjunction (A and B and C...)


disjunction

public static org.jboss.envers.query.criteria.VersionsDisjunction disjunction()
Group expressions together in a single disjunction (A or B or C...)


maximizeProperty

public static org.jboss.envers.query.criteria.AggregatedFieldVersionsExpression maximizeProperty(java.lang.String propertyName)
Apply a "maximalize property" constraint.


minimizeProperty

public static org.jboss.envers.query.criteria.AggregatedFieldVersionsExpression minimizeProperty(java.lang.String propertyName)
Apply a "minimize property" constraint.