org.kuali.kfs.sys.batch.dataaccess.impl
Class UniversityDateFiscalYearMakerImpl

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.batch.dataaccess.impl.FiscalYearMakerImpl
                  extended by org.kuali.kfs.sys.batch.dataaccess.impl.UniversityDateFiscalYearMakerImpl
All Implemented Interfaces:
FiscalYearMaker, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class UniversityDateFiscalYearMakerImpl
extends FiscalYearMakerImpl

Performs custom fiscal year process for University Date records


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
UniversityDateFiscalYearMakerImpl()
           
 
Method Summary
protected  void deleteNewYearRows(Integer requestYear)
          Removes all UniversityDate records for the given fiscal year
 boolean doCustomProcessingOnly()
          Default to doing both normal FYM process and custom
protected  org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
          Gets the businessObjectService attribute.
protected  int getFiscalYearStartMonth(Integer baseFiscalYear)
          Retrieves the system options record for the base fiscal year to determine the fiscal year start month
 void performCustomProcessing(Integer baseFiscalYear, boolean firstCopyYear)
          Default implementation does nothing
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 
Methods inherited from class org.kuali.kfs.sys.batch.dataaccess.impl.FiscalYearMakerImpl
addYearCriteria, changeForNewYear, createDeleteCriteria, createSelectionCriteria, getBusinessObjectClass, getParentClasses, isAllowOverrideTargetYear, isCarryForwardInactive, isFiscalYearOneAhead, isFiscalYearOneBehind, isTwoYearCopy, setAllowOverrideTargetYear, setBusinessObjectClass, setCarryForwardInactive, setFiscalYearOneAhead, setFiscalYearOneBehind, setParentClasses, setPersistenceStructureService, setTwoYearCopy, updateExtensionRecord, verifyUniversityFiscalYearPropertyExists
 
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

UniversityDateFiscalYearMakerImpl

public UniversityDateFiscalYearMakerImpl()
Method Detail

performCustomProcessing

public void performCustomProcessing(Integer baseFiscalYear,
                                    boolean firstCopyYear)
Description copied from class: FiscalYearMakerImpl
Default implementation does nothing

Specified by:
performCustomProcessing in interface FiscalYearMaker
Overrides:
performCustomProcessing in class FiscalYearMakerImpl
Parameters:
baseFiscalYear - fiscal year of the base record
firstCopyYear - boolean that indicates whether this is the first year being copied (useful for two year copies)
See Also:
org.kuali.kfs.coa.batch.dataaccess.impl.FiscalYearMakerHelperImpl#performCustomProcessing(java.lang.Integer)

deleteNewYearRows

protected void deleteNewYearRows(Integer requestYear)
Removes all UniversityDate records for the given fiscal year

Parameters:
requestYear - year to delete records for

getFiscalYearStartMonth

protected int getFiscalYearStartMonth(Integer baseFiscalYear)
Retrieves the system options record for the base fiscal year to determine the fiscal year start month

Parameters:
baseFiscalYear - fiscal year to retrieve options record for
Returns:
int fiscal year start month (0 being Jan)

doCustomProcessingOnly

public boolean doCustomProcessingOnly()
Description copied from class: FiscalYearMakerImpl
Default to doing both normal FYM process and custom

Specified by:
doCustomProcessingOnly in interface FiscalYearMaker
Overrides:
doCustomProcessingOnly in class FiscalYearMakerImpl
Returns:
true if only custom processing should be done, false if both normal FYM process and custom should be performed
See Also:
org.kuali.kfs.coa.batch.dataaccess.impl.FiscalYearMakerHelperImpl#doCustomProcessingOnly()

getBusinessObjectService

protected org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
Gets the businessObjectService attribute.

Returns:
Returns the businessObjectService.

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.

Parameters:
businessObjectService - The businessObjectService to set.


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