org.kuali.kfs.coa.batch.dataaccess.impl
Class AccountingPeriodFiscalYearMakerImpl
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
org.kuali.kfs.sys.batch.dataaccess.impl.FiscalYearMakerImpl
org.kuali.kfs.coa.batch.dataaccess.impl.AccountingPeriodFiscalYearMakerImpl
- All Implemented Interfaces:
- FiscalYearMaker, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean
public class AccountingPeriodFiscalYearMakerImpl
- extends FiscalYearMakerImpl
Performs custom population of accounting periods records for a new year being created in the fiscal year maker process
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
protected Date |
addYearToDate(Date inDate)
Adds one year to the given date |
void |
changeForNewYear(Integer baseFiscalYear,
org.kuali.rice.kns.bo.PersistableBusinessObject currentRecord)
Updates the year on the fiscal period name and sets status to open for next year records |
void |
performCustomProcessing(Integer baseFiscalYear,
boolean firstCopyYear)
Retrieves all Accounting Period records for the first copied fiscal year and make active |
protected String |
updateTwoDigitYear(String newYear,
String oldYear,
String currentString)
this routine is provided to update string fields which contain two-digit years that need to be updated for display. |
Methods inherited from class org.kuali.kfs.sys.batch.dataaccess.impl.FiscalYearMakerImpl |
addYearCriteria, createDeleteCriteria, createSelectionCriteria, doCustomProcessingOnly, 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 |
AccountingPeriodFiscalYearMakerImpl
public AccountingPeriodFiscalYearMakerImpl()
changeForNewYear
public void changeForNewYear(Integer baseFiscalYear,
org.kuali.rice.kns.bo.PersistableBusinessObject currentRecord)
- Updates the year on the fiscal period name and sets status to open for next year records
- Specified by:
changeForNewYear
in interface FiscalYearMaker
- Overrides:
changeForNewYear
in class FiscalYearMakerImpl
- Parameters:
baseFiscalYear
- fiscal year of the base recordcurrentRecord
- business object of type (@see org.kuali.kfs.coa.dataaccess.FiscalYearMakerDao.getBusinessObjectClass())
populated with the current year record data- See Also:
org.kuali.kfs.coa.batch.dataaccess.impl.FiscalYearMakerHelperImpl#changeForNewYear(java.lang.Integer,
org.kuali.rice.kns.bo.PersistableBusinessObject)
performCustomProcessing
public void performCustomProcessing(Integer baseFiscalYear,
boolean firstCopyYear)
- Retrieves all Accounting Period records for the first copied fiscal year and make active
- Specified by:
performCustomProcessing
in interface FiscalYearMaker
- Overrides:
performCustomProcessing
in class FiscalYearMakerImpl
- Parameters:
baseFiscalYear
- fiscal year of the base recordfirstCopyYear
- 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)
addYearToDate
protected Date addYearToDate(Date inDate)
- Adds one year to the given date
- Parameters:
inDate
- date to increment
- Returns:
- Date incoming date plus one year
updateTwoDigitYear
protected String updateTwoDigitYear(String newYear,
String oldYear,
String currentString)
- this routine is provided to update string fields which contain two-digit years that need to be updated for display. it is
very specific, but it's necessary. "two-digit year" means the two numeric characters preceded by a non-numeric character.
- Parameters:
newYear
- oldYear
- currentString
-
- Returns:
- the updated string for a two digit year
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.