biz.janux.people
Interface OrganizationDao

All Superinterfaces:
DataAccessObject

Deprecated. use OrganizationDaoGeneric

public interface OrganizationDao
extends DataAccessObject

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)
          Deprecated. Returns a possibly lightweight representation of the corresponding Organization, which may not contain all associated objects, or null if the Organization is not found.
 Organization load(Integer id)
          Deprecated. loads a Organization object from persistence using its id; we include this for completeness, but we anticipate that most hotels will be loaded via a unique business code that is assigned to the hotel at the time that its record is first created in the database
 List loadAll()
          Deprecated. 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)
          Deprecated. Deep loads an Organization object, or throws exception if Organization with that code is not found
 
Methods inherited from interface org.janux.bus.persistence.DataAccessObject
delete, merge, refresh, save, saveOrUpdate, update
 

Method Detail

loadAll

List loadAll()
Deprecated. 
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
Deprecated. 
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)
Deprecated. 
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

load

Organization load(Integer id)
                  throws EntityNotFoundException
Deprecated. 
loads a Organization object from persistence using its id; we include this for completeness, but we anticipate that most hotels will be loaded via a unique business code that is assigned to the hotel at the time that its record is first created in the database

Throws:
EntityNotFoundException - if a Organization object with that id is not found


Copyright © 2005-2013 Janux. All Rights Reserved.