ch.elca.el4j.services.persistence.hibernate.criteria
Class DetachedCriteriaUtils
java.lang.Object
  
ch.elca.el4j.services.persistence.hibernate.criteria.DetachedCriteriaUtils
public final class DetachedCriteriaUtils
- extends Object
 
A utility class that allows to perform some modifications on DetachedCriterias.
 ATTENTION: This class depends on the actual Hibernate Criteria implementation (CriteriaImpl)
- Author:
 
  - Stefan Wismer (SWI)
 
- File-location:
 - DetachedCriteriaUtils
 - Last check-in date:
 - 2009-09-15 12:19:53 +0200 (Di, 15. Sep 2009)  by  swismer  for revision  3916 
 
 
| Methods inherited from class java.lang.Object | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
clone
public static DetachedCriteria clone(DetachedCriteria criteria)
- Parameters:
 criteria - the criteria to clone
- Returns:
 - the cloned criteria
 
 
removeOrders
public static DetachedCriteria removeOrders(DetachedCriteria criteria,
                                            Order... orders)
- Parameters:
 criteria - the criteria to manipulateorders - the orders to remove. If no orders are provided, all orders will be removed
- Returns:
 - the criteria
 
 
removeProjection
public static DetachedCriteria removeProjection(DetachedCriteria criteria)
- Parameters:
 criteria - the criteria whose projection should be removed
- Returns:
 - the "clean" criteria
 
 
removeCriterionEntries
public static DetachedCriteria removeCriterionEntries(DetachedCriteria criteria)
- Parameters:
 criteria - the criteria whose projection should be removed
- Returns:
 - the "clean" criteria
 
 
getCriterionEntries
public static List<Criterion> getCriterionEntries(DetachedCriteria criteria)
- Parameters:
 criteria - the criteria whose criterion entries to get
- Returns:
 - a list of criterion entries
 
 
Copyright © 2005-2011 ELCA. All Rights Reserved.