|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openfaces.component.filter.FilterCriterionProcessor
org.openfaces.component.filter.HibernateCriterionBuilder
public class HibernateCriterionBuilder
Constructor Summary | |
---|---|
HibernateCriterionBuilder()
|
Method Summary | |
---|---|
static Criterion |
build(FilterCriterion filterCriterion)
Returns hibernate Criterion instance that corresponds to the passed FilterCriterion instance. |
static Criteria |
buildCriteria(Session session,
java.lang.Class persistentClass)
You can invoke this function from the DataTable's data providing method (a method that is bound to the DataTable's "value" attribute) to implement the hibernate-based custom data providing mode. |
static Criteria |
buildCriteria(Session session,
java.lang.Class persistentClass,
java.lang.String alias)
You can invoke this function from the DataTable's data providing method (a method that is bound to the DataTable's "value" attribute) to implement the hibernate-based custom data providing mode. |
static Criteria |
buildCriteria(Session session,
java.lang.String entityName)
You can invoke this function from the DataTable's data providing method (a method that is bound to the DataTable's "value" attribute) to implement the hibernate-based custom data providing mode. |
static Criteria |
buildCriteria(Session session,
java.lang.String entityName,
java.lang.String alias)
You can invoke this function from the DataTable's data providing method (a method that is bound to the DataTable's "value" attribute) to implement the hibernate-based custom data providing mode. |
static void |
fillCriteria(Criteria criteria)
You can invoke this function from the DataTable's data providing method (a method that is bound to the DataTable's "value" attribute) to implement the hibernate-based custom data providing mode. |
static HibernateCriterionBuilder |
getInstance()
|
static int |
getRowCount(Criteria criteria)
This method should be invoked from a method bound to the DataTable's "totalRowCount" attribute to implement the hibernate-based custom data providing mode. |
static int |
getRowCount(Session session,
java.lang.Class persistentClass)
This method should be invoked from a method bound to the DataTable's "totalRowCount" attribute to implement the hibernate-based custom data providing mode. |
static int |
getRowCount(Session session,
java.lang.Class persistentClass,
java.lang.String alias)
This method should be invoked from a method bound to the DataTable's "totalRowCount" attribute to implement the hibernate-based custom data providing mode. |
static int |
getRowCount(Session session,
java.lang.String entityName)
This method should be invoked from a method bound to the DataTable's "totalRowCount" attribute to implement the hibernate-based custom data providing mode. |
static int |
getRowCount(Session session,
java.lang.String entityName,
java.lang.String alias)
This method should be invoked from a method bound to the DataTable's "totalRowCount" attribute to implement the hibernate-based custom data providing mode. |
java.lang.Object |
process(AndFilterCriterion criterion)
|
java.lang.Object |
process(ExpressionFilterCriterion criterion)
|
java.lang.Object |
process(OrFilterCriterion criterion)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HibernateCriterionBuilder()
Method Detail |
---|
public static HibernateCriterionBuilder getInstance()
public static Criterion build(FilterCriterion filterCriterion)
public static Criteria buildCriteria(Session session, java.lang.Class persistentClass)
This method creates the hibernate Criteria object with the current DataTable custom data providing parameters that are automatically retrieved from the request scope by this method. That is the returned Criteria will contain the current table's filtering, sorting and pagination parameters.
NOTE: the table should have the "id" attribute specified for all sortable columns. The id value should correspond to the appropriate property name by which sorting should be performed, or more formally, the value of the "id" attribute will be passed to the Order.asc(String propertyName) and Order.desc(String propertyName) methods when populating the Criteria object.
You can use any of the buidCriteria() methods or the fillCriteria() method depending on the needs of your application.
@fillCriteria
public static Criteria buildCriteria(Session session, java.lang.String entityName)
This method creates the hibernate Criteria object with the current DataTable custom data providing parameters that are automatically retrieved from the request scope by this method. That is the returned Criteria will contain the current table's filtering, sorting and pagination parameters.
NOTE: the table should have the "id" attribute specified for all sortable columns. The id value should correspond to the appropriate property name by which sorting should be performed, or more formally, the value of the "id" attribute will be passed to the Order.asc(String propertyName) and Order.desc(String propertyName) methods when populating the Criteria object.
You can use any of the buidCriteria() methods or the fillCriteria() method depending on the needs of your application.
@fillCriteria
public static Criteria buildCriteria(Session session, java.lang.Class persistentClass, java.lang.String alias)
This method creates the hibernate Criteria object with the current DataTable custom data providing parameters that are automatically retrieved from the request scope by this method. That is the returned Criteria will contain the current table's filtering, sorting and pagination parameters.
NOTE: the table should have the "id" attribute specified for all sortable columns. The id value should correspond to the appropriate property name by which sorting should be performed, or more formally, the value of the "id" attribute will be passed to the Order.asc(String propertyName) and Order.desc(String propertyName) methods when populating the Criteria object.
You can use any of the buidCriteria() methods or the fillCriteria() method depending on the needs of your application.
@fillCriteria
public static Criteria buildCriteria(Session session, java.lang.String entityName, java.lang.String alias)
This method creates the hibernate Criteria object with the current DataTable custom data providing parameters that are automatically retrieved from the request scope by this method. That is the returned Criteria will contain the current table's filtering, sorting and pagination parameters.
NOTE: the table should have the "id" attribute specified for all sortable columns. The id value should correspond to the appropriate property name by which sorting should be performed, or more formally, the value of the "id" attribute will be passed to the Order.asc(String propertyName) and Order.desc(String propertyName) methods when populating the Criteria object.
You can use any of the buidCriteria() methods or the fillCriteria() method depending on the needs of your application.
@fillCriteria
public static void fillCriteria(Criteria criteria)
This method fills the passed hibernate Criteria object with the current DataTable custom data providing parameters that are automatically retrieved from the request scope by this method. That is the Criteria object will be configured with the current table's filtering, sorting and pagination parameters.
NOTE: the table should have the "id" attribute specified for all sortable columns. The id value should correspond to the appropriate property name by which sorting should be performed, or more formally, the value of the "id" attribute will be passed to the Order.asc(String propertyName) and Order.desc(String propertyName) methods when populating the Criteria object.
You can use any of the buidCriteria() methods or the fillCriteria() method depending on the needs of your application.
@buildCriteria
public static int getRowCount(Session session, java.lang.String entityName)
public static int getRowCount(Session session, java.lang.Class persistentClass)
public static int getRowCount(Session session, java.lang.String entityName, java.lang.String alias)
public static int getRowCount(Session session, java.lang.Class persistentClass, java.lang.String alias)
public static int getRowCount(Criteria criteria)
public java.lang.Object process(ExpressionFilterCriterion criterion)
process
in class FilterCriterionProcessor
public java.lang.Object process(AndFilterCriterion criterion)
process
in class FilterCriterionProcessor
public java.lang.Object process(OrFilterCriterion criterion)
process
in class FilterCriterionProcessor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |