biz.janux.people
Interface OrganizationDaoGeneric<T extends Organization>

All Superinterfaces:
GenericDaoReadOnly<T,Integer,org.janux.bus.search.SearchCriteria>, GenericDaoReadOnlyWithFacets<T,Integer,org.janux.bus.search.SearchCriteria,OrganizationFacet>, GenericDaoWrite<T,Integer>

public interface OrganizationDaoGeneric<T extends Organization>
extends GenericDaoWrite<T,Integer>, GenericDaoReadOnlyWithFacets<T,Integer,org.janux.bus.search.SearchCriteria,OrganizationFacet>

Used to create, save, retrieve, update and delete Organization objects from persistent storage

Version:
$Id: OrganizationDao.java,v 1.7 2006-05-06 02:00:21 dfairchild Exp $
Author:
Philippe Paravicini

Method Summary
 Organization findByCode(String code)
          Returns a possibly lightweight representation of the corresponding Organization, which may not contain all associated objects, or null if the Organization is not found.
 List loadAll()
          Returns a list of all Organizations in the system; the organization objects returned should have at least their id, code and name fields initialized (retrieved from persistence) but need not be fully initialized; that is, the full object graph that includes the main organization object and its associated associations (Contact Methods, associations, etc....) may not have been fully retrieved.
 Organization loadByCode(String code)
          Deep loads an Organization object, or throws exception if Organization with that code is not found
 
Methods inherited from interface org.janux.bus.persistence.GenericDaoWrite
attachClean, clear, delete, evict, flush, merge, refresh, save, saveOrUpdate, update
 
Methods inherited from interface org.janux.bus.persistence.GenericDaoReadOnlyWithFacets
getDefaultFacetSetOnLoad, initialize, initialize, load, setDefaultFacetSetOnLoad
 
Methods inherited from interface org.janux.bus.persistence.GenericDaoReadOnly
count, findByCriteria, load
 

Method Detail

loadAll

List loadAll()
Returns a list of all Organizations in the system; the organization objects returned should have at least their id, code and name fields initialized (retrieved from persistence) but need not be fully initialized; that is, the full object graph that includes the main organization object and its associated associations (Contact Methods, associations, etc....) may not have been fully retrieved.


loadByCode

Organization loadByCode(String code)
                        throws EntityNotFoundException
Deep loads an Organization object, or throws exception if Organization with that code is not found

Parameters:
code - a business code that uniquely identifies this Organization
Returns:
an object graph representing this Organization and including associated objects
Throws:
EntityNotFoundException - if a Organization object with that id is not found

findByCode

Organization findByCode(String code)
Returns a possibly lightweight representation of the corresponding Organization, which may not contain all associated objects, or null if the Organization is not found.

Parameters:
code - a business code that uniquely identifies this Organization


Copyright © 2005-2013 Janux. All Rights Reserved.