edu.uoc.tfc
Class PropertySearch
java.lang.Object
edu.uoc.tfc.CriteriaSearch
edu.uoc.tfc.PropertySearch
public class PropertySearch
- extends CriteriaSearch
Provides the ability to search by properties.
Constructor Summary |
PropertySearch(org.hibernate.Session session,
java.lang.Class entityType,
Search search)
Constructor for PropertySearch. |
Method Summary |
java.util.List |
executeAsList()
Executes a HibernateQuery using the currently defined
CriteriaSearchParameter s, and returns a java.util.List
containing the query results. |
int |
getTotalCount()
Gets the total possible count of objects returned in this
search. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertySearch
public PropertySearch(org.hibernate.Session session,
java.lang.Class entityType,
Search search)
- Constructor for PropertySearch. Creates a
PropertySearch
instance
from the given arguments.
- Parameters:
session
- The Hibernate session.entityType
- The Class
of the result.search
- the object that specifies the search criteria.
getTotalCount
public int getTotalCount()
- Gets the total possible count of objects returned in this
search.
executeAsList
public java.util.List executeAsList()
throws org.hibernate.HibernateException
- Description copied from class:
CriteriaSearch
- Executes a
HibernateQuery
using the currently defined
CriteriaSearchParameter
s, and returns a java.util.List
containing the query results.
- Overrides:
executeAsList
in class CriteriaSearch
- Returns:
- result The result of the query as a List
- Throws:
org.hibernate.HibernateException
- See Also:
com.lighthousepmg.messaging.service.CriteriaSearch#executeAsList()