fr.ifremer.allegro
Class PropertySearch

java.lang.Object
  extended by fr.ifremer.allegro.CriteriaSearch
      extended by fr.ifremer.allegro.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 CriteriaSearchParameters, 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 fr.ifremer.allegro.CriteriaSearch
addParameter, addParameter, addParameter, executeAsSet, getConfiguration, getRootCriteria
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

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 CriteriaSearchParameters, 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()


Copyright © 2008-2010 IFREMER. All Rights Reserved.