|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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
public class FiscalYearMakerImpl
Default implementation of fiscal year maker process for an entity. This implementation can be used for a table in the fiscal year maker process by defining a spring bean and setting the businessObjectClass property.
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
FiscalYearMakerImpl()
Constructs a FiscalYearMakerImpl.java. |
|
| Method Summary | |
|---|---|
protected void |
addYearCriteria(org.apache.ojb.broker.query.Criteria criteria,
Integer baseFiscalYear,
boolean createTwoYears)
Adds fiscal year criteria based on the configuration (copy two years, lagging, or normal) |
void |
changeForNewYear(Integer baseFiscalYear,
org.kuali.rice.kns.bo.PersistableBusinessObject currentRecord)
Sets fiscal year field up one, resets version number and assigns a new Guid for the object id |
org.apache.ojb.broker.query.Criteria |
createDeleteCriteria(Integer baseFiscalYear)
Selects records to delete for base year + 1 (or base year for lagging, and base year + 2 for two year) |
org.apache.ojb.broker.query.Criteria |
createSelectionCriteria(Integer baseFiscalYear)
Selects records for the given base year or base year minus one if this is a lagging copy. |
boolean |
doCustomProcessingOnly()
Default to doing both normal FYM process and custom |
Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObject> |
getBusinessObjectClass()
Returns the class for the business object the fiscal year maker implementation operates on |
Set<Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObject>> |
getParentClasses()
Options is the parent for univFiscalYear which all our copy objects should have. |
boolean |
isAllowOverrideTargetYear()
Gets the allowOverrideTargetYear attribute. |
boolean |
isCarryForwardInactive()
Gets the carryForwardInactive attribute. |
boolean |
isFiscalYearOneAhead()
Gets the fiscalYearOneAhead attribute. |
boolean |
isFiscalYearOneBehind()
Gets the fiscalYearOneBehind attribute. |
boolean |
isTwoYearCopy()
Gets the twoYearCopy attribute. |
void |
performCustomProcessing(Integer baseFiscalYear,
boolean firstCopyYear)
Default implementation does nothing |
void |
setAllowOverrideTargetYear(boolean allowOverrideTargetYear)
Sets the allowOverrideTargetYear attribute value. |
void |
setBusinessObjectClass(Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObject> businessObjectClass)
Sets the businessObjectClass attribute value. |
void |
setCarryForwardInactive(boolean carryForwardInactive)
Sets the carryForwardInactive attribute value. |
void |
setFiscalYearOneAhead(boolean fiscalYearOneAhead)
Sets the fiscalYearOneAhead attribute value. |
void |
setFiscalYearOneBehind(boolean fiscalYearOneBehind)
Sets the fiscalYearOneBehind attribute value. |
void |
setParentClasses(Set<Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObject>> parentClasses)
Sets the parentClasses attribute value. |
void |
setPersistenceStructureService(org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService)
Sets the persistenceStructureService attribute value. |
void |
setTwoYearCopy(boolean twoYearCopy)
Sets the twoYearCopy attribute value. |
protected void |
updateExtensionRecord(Integer newFiscalYear,
org.kuali.rice.kns.bo.PersistableBusinessObject currentRecord)
Determines if an extension record is mapped up and exists for the current record. |
protected void |
verifyUniversityFiscalYearPropertyExists()
Verifies the given business object class has the university fiscal year property necessary for setting default criteria |
| 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 |
|---|
public FiscalYearMakerImpl()
| Method Detail |
|---|
public void changeForNewYear(Integer baseFiscalYear,
org.kuali.rice.kns.bo.PersistableBusinessObject currentRecord)
changeForNewYear in interface FiscalYearMakerbaseFiscalYear - fiscal year of the base recordcurrentRecord - business object of type (@see org.kuali.kfs.coa.dataaccess.FiscalYearMakerDao.getBusinessObjectClass())
populated with the current year record dataorg.kuali.kfs.coa.dataaccess.FiscalYearMaker#changeForNewYear(java.lang.Integer,
org.kuali.rice.kns.bo.PersistableBusinessObject)
protected void updateExtensionRecord(Integer newFiscalYear,
org.kuali.rice.kns.bo.PersistableBusinessObject currentRecord)
newFiscalYear - fiscal year to setcurrentRecord - main record with possible extension referencepublic org.apache.ojb.broker.query.Criteria createSelectionCriteria(Integer baseFiscalYear)
createSelectionCriteria in interface FiscalYearMakerbaseFiscalYear - fiscal year of the base record
Inactivateable,
org.kuali.kfs.coa.dataaccess.FiscalYearMaker#createSelectionCriteria(java.lang.Integer)public org.apache.ojb.broker.query.Criteria createDeleteCriteria(Integer baseFiscalYear)
createDeleteCriteria in interface FiscalYearMakerbaseFiscalYear - fiscal year of the base record
org.kuali.kfs.coa.batch.dataaccess.FiscalYearMakerHelper#createDeleteCriteria(java.lang.Integer)
protected void addYearCriteria(org.apache.ojb.broker.query.Criteria criteria,
Integer baseFiscalYear,
boolean createTwoYears)
criteria - OJB Criteria objectbaseFiscalYear - Fiscal year for critieracreateTwoYears - indicates whether two years of fiscal year criteria should be addedprotected void verifyUniversityFiscalYearPropertyExists()
org.kuali.kfs.sys.KFSPropertyConstants.UNIVERSITY_FISCAL_YEAR
public void performCustomProcessing(Integer baseFiscalYear,
boolean firstCopyYear)
performCustomProcessing in interface FiscalYearMakerbaseFiscalYear - fiscal year of the base recordfirstCopyYear - boolean that indicates whether this is the first year being copied (useful for two year copies)org.kuali.kfs.coa.batch.dataaccess.FiscalYearMakerHelper#performCustomProcessing(java.lang.Integer)public boolean doCustomProcessingOnly()
doCustomProcessingOnly in interface FiscalYearMakerorg.kuali.kfs.coa.batch.dataaccess.FiscalYearMakerHelper#doCustomProcessingOnly()public Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObject> getBusinessObjectClass()
FiscalYearMaker
getBusinessObjectClass in interface FiscalYearMakerorg.kuali.kfs.coa.dataaccess.FiscalYearMaker#getBusinessObjectClass()public Set<Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObject>> getParentClasses()
Options is the parent for univFiscalYear which all our copy objects should have. Added to list here by default.
getParentClasses in interface FiscalYearMakerorg.kuali.kfs.coa.batch.dataaccess.FiscalYearMakerHelper#getParentClasses(),
org.kuali.kfs.sys.businessobject.Optionspublic void setBusinessObjectClass(Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObject> businessObjectClass)
businessObjectClass - The businessObjectClass to set.public void setParentClasses(Set<Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObject>> parentClasses)
parentClasses - The parentClasses to set.public boolean isFiscalYearOneBehind()
public void setFiscalYearOneBehind(boolean fiscalYearOneBehind)
fiscalYearOneBehind - The fiscalYearOneBehind to set.public boolean isFiscalYearOneAhead()
public void setFiscalYearOneAhead(boolean fiscalYearOneAhead)
fiscalYearOneAhead - The fiscalYearOneAhead to set.public boolean isTwoYearCopy()
isTwoYearCopy in interface FiscalYearMakerpublic void setTwoYearCopy(boolean twoYearCopy)
twoYearCopy - The twoYearCopy to set.public boolean isCarryForwardInactive()
public void setCarryForwardInactive(boolean carryForwardInactive)
carryForwardInactive - The carryForwardInactive to set.public void setPersistenceStructureService(org.kuali.rice.kns.service.PersistenceStructureService persistenceStructureService)
persistenceStructureService - The persistenceStructureService to set.public boolean isAllowOverrideTargetYear()
isAllowOverrideTargetYear in interface FiscalYearMakerpublic void setAllowOverrideTargetYear(boolean allowOverrideTargetYear)
allowOverrideTargetYear - The allowOverrideTargetYear to set.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||