com.softwareag.centrasite.appl.framework.persistence.search.impl
Class SearchImpl

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.persistence.search.impl.SearchImpl
All Implemented Interfaces:
Search

public class SearchImpl
extends java.lang.Object
implements Search

Implementation of Search for retrieving registry beans by composing Predicate objects.


Constructor Summary
SearchImpl(java.util.List<java.lang.Class<? extends RegistryBean>> beanClasses, BeanPool beanPool, QueryContext context)
          Creates a Search object
 
Method Summary
 Search addOrder(Order order)
          Add an ordering to the result.
 Search addPredicate(Predicate predicate)
          Add predicate to constrain the results to be retrieved.
 java.util.List<java.lang.Class<? extends RegistryBean>> getBeanClasses()
           
 ManagedBeanPool getBeanPool()
           
 java.util.ArrayList<Order> getOrders()
           
 CombinedPredicate getPredicate()
           
 java.util.List<RegistryBean> result()
          Executes the search and obtains the result as list.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchImpl

public SearchImpl(java.util.List<java.lang.Class<? extends RegistryBean>> beanClasses,
                  BeanPool beanPool,
                  QueryContext context)
           throws CSAppFrameworkException
Creates a Search object

Parameters:
beanClasses -
beanPool -
context -
Throws:
CSAppFrameworkException
Method Detail

getPredicate

public CombinedPredicate getPredicate()

getOrders

public java.util.ArrayList<Order> getOrders()

getBeanClasses

public java.util.List<java.lang.Class<? extends RegistryBean>> getBeanClasses()

addOrder

public Search addOrder(Order order)
                throws CSAppFrameworkException
Description copied from interface: Search
Add an ordering to the result.

Specified by:
addOrder in interface Search
Throws:
CSAppFrameworkException

addPredicate

public Search addPredicate(Predicate predicate)
                    throws CSAppFrameworkException
Description copied from interface: Search
Add predicate to constrain the results to be retrieved.

Specified by:
addPredicate in interface Search
Throws:
CSAppFrameworkException

result

public java.util.List<RegistryBean> result()
                                    throws CSAppFrameworkException
Description copied from interface: Search
Executes the search and obtains the result as list.

Specified by:
result in interface Search
Returns:
search result list
Throws:
CSAppFrameworkException

getBeanPool

public ManagedBeanPool getBeanPool()