org.kuali.kfs.coa.dataaccess.impl
Class OrganizationDaoOjb

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
          extended by org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
              extended by org.kuali.kfs.coa.dataaccess.impl.OrganizationDaoOjb
All Implemented Interfaces:
OrganizationDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class OrganizationDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
implements OrganizationDao

This class is the OJB implementation of the OrganizationDao interface.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
OrganizationDaoOjb()
           
 
Method Summary
 List getActiveAccountsByOrg(String chartOfAccountsCode, String organizationCode)
          This method retrieves a list of active Orgs defined by their chart and organization code
 List getActiveChildOrgs(String chartOfAccountsCode, String organizationCode)
          This method retrieves a list of active child Orgs based on their parent's organization code and chart code
 List<Organization> getActiveOrgsByType(String organizationTypeCode)
          Returns a list of active organizations with the given organization type code.
 Organization getByPrimaryId(String chartOfAccountsCode, String organizationCode)
          This method retrieves a Org based on primary keys
 String[] getRootOrganizationCode(String rootChart, String selfReportsOrgTypeCode)
          we insist that the root organization be active
 void save(Organization organization)
          This method saves a specific Org
 
Methods inherited from class org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
getDbPlatform, setDbPlatform
 
Methods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrganizationDaoOjb

public OrganizationDaoOjb()
Method Detail

getByPrimaryId

public Organization getByPrimaryId(String chartOfAccountsCode,
                                   String organizationCode)
Description copied from interface: OrganizationDao
This method retrieves a Org based on primary keys

Specified by:
getByPrimaryId in interface OrganizationDao
Returns:
an Org based on primary keys
See Also:
OrganizationDao.getByPrimaryId(java.lang.String, java.lang.String)

save

public void save(Organization organization)
Description copied from interface: OrganizationDao
This method saves a specific Org

Specified by:
save in interface OrganizationDao
See Also:
org.kuali.kfs.coa.dataaccess.OrganizationDao#save(org.kuali.kfs.coa.businessobject.Org)

getActiveAccountsByOrg

public List getActiveAccountsByOrg(String chartOfAccountsCode,
                                   String organizationCode)
Description copied from interface: OrganizationDao
This method retrieves a list of active Orgs defined by their chart and organization code

Specified by:
getActiveAccountsByOrg in interface OrganizationDao
Returns:
a list of active Orgs by chart and organization code
See Also:
OrganizationDao.getActiveAccountsByOrg(java.lang.String, java.lang.String)

getActiveChildOrgs

public List getActiveChildOrgs(String chartOfAccountsCode,
                               String organizationCode)
Description copied from interface: OrganizationDao
This method retrieves a list of active child Orgs based on their parent's organization code and chart code

Specified by:
getActiveChildOrgs in interface OrganizationDao
Returns:
a list of active Orgs by their parent's chart and organization code
See Also:
OrganizationDao.getActiveChildOrgs(java.lang.String, java.lang.String)

getActiveOrgsByType

public List<Organization> getActiveOrgsByType(String organizationTypeCode)
Description copied from interface: OrganizationDao
Returns a list of active organizations with the given organization type code.

Specified by:
getActiveOrgsByType in interface OrganizationDao
Returns:
a list of active Orgs based on their organization type code
See Also:
OrganizationDao.getActiveOrgsByType(java.lang.String)

getRootOrganizationCode

public String[] getRootOrganizationCode(String rootChart,
                                        String selfReportsOrgTypeCode)
we insist that the root organization be active

Specified by:
getRootOrganizationCode in interface OrganizationDao
Returns:
a string array of root org codes based on root chart and reports to org type code
See Also:
OrganizationDao.getRootOrganizationCode(java.lang.String, java.lang.String)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.