org.kuali.kfs.sys.dataaccess.impl
Class UniversityDateDaoOjb

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.sys.dataaccess.impl.UniversityDateDaoOjb
All Implemented Interfaces:
UniversityDateDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class UniversityDateDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
implements UniversityDateDao

The OJB implementation of the UniversityDateDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
UniversityDateDaoOjb()
           
 
Method Summary
protected  Date convertDate(Date date)
          Converts a java.util.Date to a java.sql.Date
 Collection getAccountingPeriodCode()
          Returns all distinct accounting period codes from the table
 UniversityDate getByPrimaryKey(Date date)
          Returns a university date record based on a given java.sql.Date.
 UniversityDate getByPrimaryKey(Date date)
          Returns a university date record based on java.util.Date
 UniversityDate getFirstFiscalYearDate(Integer fiscalYear)
          Returns the first university date for a given fiscal year
 UniversityDate getLastFiscalYearDate(Integer fiscalYear)
          Returns the last university date for a given fiscal year
 
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

UniversityDateDaoOjb

public UniversityDateDaoOjb()
Method Detail

getByPrimaryKey

public UniversityDate getByPrimaryKey(Date date)
Returns a university date record based on a given java.sql.Date.

Specified by:
getByPrimaryKey in interface UniversityDateDao
Parameters:
date - a Date to find the corresponding University Date record
Returns:
a University Date record if found, null if not
See Also:
UniversityDateDao.getByPrimaryKey(java.sql.Date)

getByPrimaryKey

public UniversityDate getByPrimaryKey(Date date)
Returns a university date record based on java.util.Date

Specified by:
getByPrimaryKey in interface UniversityDateDao
Parameters:
date - a java.util.Date to find the corresponding University Date record
Returns:
a University Date record if found, null if not
See Also:
UniversityDateDao.getByPrimaryKey(java.sql.Date)

convertDate

protected Date convertDate(Date date)
Converts a java.util.Date to a java.sql.Date

Parameters:
date - a java.util.Date to convert
Returns:
a java.sql.Date

getLastFiscalYearDate

public UniversityDate getLastFiscalYearDate(Integer fiscalYear)
Returns the last university date for a given fiscal year

Specified by:
getLastFiscalYearDate in interface UniversityDateDao
Parameters:
fiscalYear - the fiscal year to find the last date for
Returns:
a UniversityDate record for the last day in the given fiscal year, or null if nothing can be found
See Also:
UniversityDateDao.getLastFiscalYearDate(java.lang.Integer)

getFirstFiscalYearDate

public UniversityDate getFirstFiscalYearDate(Integer fiscalYear)
Returns the first university date for a given fiscal year

Specified by:
getFirstFiscalYearDate in interface UniversityDateDao
Parameters:
fiscalYear - the fiscal year to find the first date for
Returns:
a UniversityDate record for the first day of the given fiscal year, or null if nothing can be found
See Also:
UniversityDateDao.getFirstFiscalYearDate(java.lang.Integer)

getAccountingPeriodCode

public Collection getAccountingPeriodCode()
Returns all distinct accounting period codes from the table

Specified by:
getAccountingPeriodCode in interface UniversityDateDao
Returns:
a Collection of all distinct accounting period codes represented by UniversityDate records in the database
See Also:
UniversityDateDao.getAccountingPeriodCode()


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