net.sf.oness.common.model.dao
Interface FinderDao

All Known Subinterfaces:
Dao
All Known Implementing Classes:
HibernateDao

public interface FinderDao

Interface to be implemented by Data Access Objects with finder operations

Version:
$Revision: 1.9 $
Author:
Carlos Sanchez

Method Summary
 PaginatedList find(AuditableBusinessObject value, int firstElement, int maxElements)
          Find objects with properties matching those of value.
 java.util.List findAll()
          Return all persistent instances
 java.util.List findById(java.util.Collection ids)
          Find a List of objects by their identifiers.
 

Method Detail

findById

public java.util.List findById(java.util.Collection ids)
Find a List of objects by their identifiers. This should return only the specified entity, not the associated ones.

Parameters:
ids - collection of identifiers
Returns:
the values with that ids

find

public PaginatedList find(AuditableBusinessObject value,
                          int firstElement,
                          int maxElements)
Find objects with properties matching those of value. This should not return the associated entities. Properties whose value is null and Collections are ignored.

Parameters:
value - parameters to filter on
firstElement - the first result, numbered from 0
maxElements - the maximum number of results
Returns:

findAll

public java.util.List findAll()
Return all persistent instances

Returns:
List of objects


Copyright © 2003-2005 ONess Project. All Rights Reserved.