org.janux.bus.persistence
Interface GenericDaoReadOnly<T,ID extends Serializable,S extends org.janux.bus.search.SearchCriteria>

Type Parameters:
T - The type of the domain object for which this instance is to be used.
ID - The type of the id of the domain object for which this instance is to be used.
S - The type of criteria strategy used for searching objects.
All Known Subinterfaces:
AccountDaoGeneric<T>, AccountPartyDaoGeneric<T>, CityDaoGeneric<T>, CountryDaoGeneric<T>, GenericDaoReadOnlyWithFacets<T,ID,S,F>, OrganizationDaoGeneric<T>, PartyDaoGeneric<T>, PermissionContextDaoGeneric<T>, PersonDaoGeneric<T>, PostalAddressDaoGeneric<T>, RoleDaoGeneric<T>, StateProvinceDaoGeneric<T>

public interface GenericDaoReadOnly<T,ID extends Serializable,S extends org.janux.bus.search.SearchCriteria>

Interface for a Data Access Object that can be used for a single specified type domain object for read operations. A single instance implementing this interface can be used only for the type of domain object specified in the type parameters.

Author:
Daniel Mora, Philippe Paravicini

Method Summary
 int count(S searchCriteria)
          TODO
 List<T> findByCriteria(S searchCriteria)
          TODO Search for objects considering the given search criteria
 T load(ID id)
          TODO loads an object from persistence using its id
 

Method Detail

load

T load(ID id)
       throws DataAccessException
TODO loads an object from persistence using its id

Throws:
DataAccessException - if the object with that id is not found

findByCriteria

List<T> findByCriteria(S searchCriteria)
TODO Search for objects considering the given search criteria

Parameters:
searchCriteria -
Returns:
PageList

count

int count(S searchCriteria)
TODO

Parameters:
searchCriteria -


Copyright © 2005-2013 Janux. All Rights Reserved.