public class PropertySearch extends CriteriaSearch
Constructor and Description |
---|
PropertySearch(Session session,
Class entityType,
Search searchIn)
Constructor for PropertySearch.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
convert(Object value,
Class type)
Convert the value to an object of the specified class (if
possible).
|
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.
|
addParameter, addParameter, addParameter, executeAsSet, getConfiguration, getRootCriteria
public PropertySearch(Session session, Class entityType, Search searchIn)
PropertySearch
instance
from the given arguments.session
- The Hibernate session.entityType
- The Class
of the result.searchIn
- the object that specifies the search criteria.public int getTotalCount()
public List executeAsList() throws HibernateException
CriteriaSearch
HibernateQuery
using the currently defined
CriteriaSearchParameter
s, and returns a java.util.List
containing the query results.executeAsList
in class CriteriaSearch
HibernateException
CriteriaSearch.executeAsList()
protected Object convert(Object value, Class type)
Convert the value to an object of the specified class (if possible).
value
- Value to be converted (may be null)type
- Class of the value to be converted toConversionException
- if thrown by an underlying ConverterCopyright © 2012–2014 IFREMER. All rights reserved.