001 package net.databinder.models.hib;
002
003 import java.io.Serializable;
004
005 import org.hibernate.Criteria;
006
007 /**
008 * Builds criteria objects with or without order. Only one of the build methods
009 * should be called in building a criteria object.
010 */
011 public interface OrderingCriteriaBuilder extends Serializable {
012 /** Build the criteria without setting an order */
013 public void buildUnordered(Criteria criteria);
014 /** Build the (entire) criteria, including an order */
015 public void buildOrdered(Criteria criteria);
016 }