public interface FiscalYearMaker
Modifier and Type | Method and Description |
---|---|
void |
changeForNewYear(Integer baseFiscalYear,
FiscalYearBasedBusinessObject currentRecord)
Does any necessary changes on the base record (for base fiscal year) for storing as a record of the new fiscal year.
|
org.apache.ojb.broker.query.Criteria |
createDeleteCriteria(Integer baseFiscalYear)
Creates OJB Criteria object that will be used to delete records in the target year
|
org.apache.ojb.broker.query.Criteria |
createNextYearSelectionCriteria(Integer fiscalYear) |
org.apache.ojb.broker.query.Criteria |
createSelectionCriteria(Integer baseFiscalYear)
Creates OJB Criteria object that will be used to query for records to copy
|
boolean |
doCustomProcessingOnly()
Indicator for determining whether we should do normal FYM process and call custom hook or only custom
|
Class<? extends FiscalYearBasedBusinessObject> |
getBusinessObjectClass()
Returns the class for the business object the fiscal year maker implementation operates on
|
Map<String,Class> |
getCollectionProperties() |
Map<String,String> |
getForeignKeyMappings(String referenceName) |
Set<Class<? extends FiscalYearBasedBusinessObject>> |
getParentClasses()
Returns Set of Class objects that are parents to this business object.
|
List<String> |
getPrimaryKeyPropertyNames() |
List<String> |
getPropertyNames() |
Map<String,Class> |
getReferenceObjectProperties() |
boolean |
isAllowOverrideTargetYear()
Indicates whether records of this type can be cleared for target year (if Override parameter is set to true).
|
boolean |
isTwoYearCopy()
Indicates whether records should be created for two fiscal years out as opposed to just one
|
void |
performCustomProcessing(Integer baseFiscalYear,
boolean firstCopyYear)
Hook to do custom new population for a business object
|
void changeForNewYear(Integer baseFiscalYear, FiscalYearBasedBusinessObject currentRecord)
baseFiscalYear
- fiscal year of the base recordcurrentRecord
- business object of type (@see org.kuali.ole.coa.dataaccess.FiscalYearMakerDao.getBusinessObjectClass())
populated with the current year record dataorg.apache.ojb.broker.query.Criteria createSelectionCriteria(Integer baseFiscalYear)
baseFiscalYear
- fiscal year of the base recordCriteria
org.apache.ojb.broker.query.Criteria createDeleteCriteria(Integer baseFiscalYear)
baseFiscalYear
- fiscal year of the base recordCriteria
void performCustomProcessing(Integer baseFiscalYear, boolean firstCopyYear)
baseFiscalYear
- fiscal year of the base recordfirstCopyYear
- boolean that indicates whether this is the first year being copied (useful for two year copies)boolean doCustomProcessingOnly()
Class<? extends FiscalYearBasedBusinessObject> getBusinessObjectClass()
Set<Class<? extends FiscalYearBasedBusinessObject>> getParentClasses()
boolean isTwoYearCopy()
boolean isAllowOverrideTargetYear()
org.apache.ojb.broker.query.Criteria createNextYearSelectionCriteria(Integer fiscalYear)
List<String> getPrimaryKeyPropertyNames()
List<String> getPropertyNames()
Map<String,Class> getReferenceObjectProperties()
Map<String,Class> getCollectionProperties()
Map<String,String> getForeignKeyMappings(String referenceName)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.