org.zeroexchange.dataset.criteria
Class ProcessorsCriteriaDataSet<T extends Persistent>

java.lang.Object
  extended by org.zeroexchange.dataset.criteria.CriteriaDataSet<T>
      extended by org.zeroexchange.dataset.criteria.ProcessorsCriteriaDataSet<T>
All Implemented Interfaces:
Iterable<T>, DataSet<T>, SlicingDataSet<T>, ProcessorAwareDataSet<T>
Direct Known Subclasses:
ResourceTenderDAOImpl.TendersDataSet

public abstract class ProcessorsCriteriaDataSet<T extends Persistent>
extends CriteriaDataSet<T>
implements ProcessorAwareDataSet<T>

Author:
black

Constructor Summary
ProcessorsCriteriaDataSet(Class<T> itemClass)
          Constructor.
 
Method Summary
protected  void processCriteria(org.hibernate.Criteria criteria, boolean isCount)
          Processes criteria Extension point to process criteria.
protected  void processCriteria(org.hibernate.Criteria criteria, CriteriaDescriptor criteriaDescriptor, boolean isCount)
          Override in subclasses if needed.
 void setFilterProcessor(FilterProcessor<Object> filterProcessor, Object filterData)
          Adds the filter processor.
 void setSortProcessor(SortProcessor sortProcessor, OrderData orderData)
          Adds the sort processor.
 
Methods inherited from class org.zeroexchange.dataset.criteria.CriteriaDataSet
createBaseCriteria, createCountCriteria, createListCriteria, getCount, getItemClass, getStart, getTotalCount, iterator, setCount, setStart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zeroexchange.data.SlicingDataSet
setCount, setStart
 
Methods inherited from interface org.zeroexchange.data.DataSet
getItemClass, getTotalCount
 
Methods inherited from interface java.lang.Iterable
iterator
 

Constructor Detail

ProcessorsCriteriaDataSet

public ProcessorsCriteriaDataSet(Class<T> itemClass)
Constructor.

Parameters:
itemClass -
Method Detail

setSortProcessor

public void setSortProcessor(SortProcessor sortProcessor,
                             OrderData orderData)
Adds the sort processor.

Specified by:
setSortProcessor in interface ProcessorAwareDataSet<T extends Persistent>
orderData - TODO

setFilterProcessor

public void setFilterProcessor(FilterProcessor<Object> filterProcessor,
                               Object filterData)
Adds the filter processor.

Specified by:
setFilterProcessor in interface ProcessorAwareDataSet<T extends Persistent>

processCriteria

protected void processCriteria(org.hibernate.Criteria criteria,
                               boolean isCount)
Processes criteria Extension point to process criteria.

Overrides:
processCriteria in class CriteriaDataSet<T extends Persistent>

processCriteria

protected void processCriteria(org.hibernate.Criteria criteria,
                               CriteriaDescriptor criteriaDescriptor,
                               boolean isCount)
Override in subclasses if needed.



Copyright © 2013. All Rights Reserved.