ch.elca.el4j.services.search.criterias
Class CriteriaHelper

java.lang.Object
  extended by ch.elca.el4j.services.search.criterias.CriteriaHelper

public class CriteriaHelper
extends Object

Convenience support for using Criterias (from EL4J, not Hibernate Criterias). For sample usage please refer to QueryObject

Author:
Philipp Oser (POS)
File-location:
CriteriaHelper
Last check-in date:
2009-08-20 14:43:24 +0200 (Do, 20. Aug 2009) by swismer for revision 3907

Constructor Summary
CriteriaHelper()
           
 
Method Summary
static Criteria and(Criteria... criteria)
          Convenience method for AndCriteria.
static Criteria eq(String field, String value)
          Convenience method for string comparison.
static Criteria like(String field, String value)
          Convenience method for like criteria (is case insensitive).
static Criteria not(Criteria criteria)
          Convenience method for NotCriteria.
static Criteria or(Criteria... criteria)
          Convenience method for OrCriteria.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CriteriaHelper

public CriteriaHelper()
Method Detail

and

public static Criteria and(Criteria... criteria)
Convenience method for AndCriteria.

Parameters:
criteria -
Returns:

or

public static Criteria or(Criteria... criteria)
Convenience method for OrCriteria.

Parameters:
criteria -
Returns:

not

public static Criteria not(Criteria criteria)
Convenience method for NotCriteria.

Parameters:
criteria -
Returns:

eq

public static Criteria eq(String field,
                          String value)
Convenience method for string comparison.

Parameters:
field -
value -
Returns:

like

public static Criteria like(String field,
                            String value)
Convenience method for like criteria (is case insensitive).

Parameters:
field -
value -
Returns:


Copyright © 2005-2011 ELCA. All Rights Reserved.