Code example for DetachedCriteria

Methods: add

0
 
	@Override 
	public DynamicQuery add(Criterion criterion) {
		CriterionImpl criterionImpl = (CriterionImpl)criterion;
 
		_detachedCriteria.add(criterionImpl.getWrappedCriterion());
 
		return this;
	} 
 
	@Override 
	public DynamicQuery addOrder(Order order) {
		OrderImpl orderImpl = (OrderImpl)order;
 
		_detachedCriteria.addOrder(orderImpl.getWrappedOrder());
 
		return this;
	} 
 
	@Override