com.pmease.quickbuild
Class SearchCriteria

java.lang.Object
  extended by com.pmease.quickbuild.SearchCriteria
All Implemented Interfaces:
java.io.Serializable

public class SearchCriteria
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Nested Class Summary
static class SearchCriteria.Builder
           
 
Constructor Summary
SearchCriteria()
           
SearchCriteria(org.hibernate.criterion.Criterion[] criterions)
           
SearchCriteria(org.hibernate.criterion.Criterion[] criterions, org.hibernate.criterion.Order[] orders)
           
 
Method Summary
static SearchCriteria.Builder builder()
           
 org.hibernate.criterion.Criterion[] getCriterions()
           
 org.hibernate.criterion.Order[] getOrders()
           
static SearchCriteria of(org.hibernate.criterion.Criterion... criterions)
           
static SearchCriteria of(org.hibernate.criterion.Criterion[] criterions, org.hibernate.criterion.Order[] orders)
           
 void setCriterions(org.hibernate.criterion.Criterion[] criterions)
          Specify hibernate search criterions.
 void setOrders(org.hibernate.criterion.Order[] orders)
          Specify hibernate search orders.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchCriteria

public SearchCriteria()

SearchCriteria

public SearchCriteria(org.hibernate.criterion.Criterion[] criterions,
                      org.hibernate.criterion.Order[] orders)
Parameters:
criterions - can not be null
orders - can not be null

SearchCriteria

public SearchCriteria(org.hibernate.criterion.Criterion[] criterions)
Method Detail

builder

public static SearchCriteria.Builder builder()

of

public static SearchCriteria of(org.hibernate.criterion.Criterion[] criterions,
                                org.hibernate.criterion.Order[] orders)

of

public static SearchCriteria of(org.hibernate.criterion.Criterion... criterions)

getCriterions

public org.hibernate.criterion.Criterion[] getCriterions()

setCriterions

public void setCriterions(org.hibernate.criterion.Criterion[] criterions)
Specify hibernate search criterions.

Parameters:
criterions - can not be null

getOrders

public org.hibernate.criterion.Order[] getOrders()

setOrders

public void setOrders(org.hibernate.criterion.Order[] orders)
Specify hibernate search orders.

Parameters:
orders - can not be null

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.