|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kuali.kfs.gl.batch.service.impl.BalancingServiceBaseImpl<T,S>
@Transactional public abstract class BalancingServiceBaseImpl<T extends Entry,S extends Balance>
Base service implementation for BalancingService. Useful for generic implementation of common code between la`bor and GL balancing.
Field Summary | |
---|---|
protected Class<S> |
balanceHistoryPersistentClass
|
protected String |
batchFileDirectoryName
|
protected org.kuali.rice.kns.service.BusinessObjectService |
businessObjectService
|
protected org.kuali.rice.kns.service.DateTimeService |
dateTimeService
|
protected Class<T> |
entryHistoryPersistentClass
|
protected org.kuali.rice.kns.service.KualiConfigurationService |
kualiConfigurationService
|
protected LedgerBalanceBalancingDao |
ledgerBalanceBalancingDao
|
protected LedgerBalanceHistoryBalancingDao |
ledgerBalanceHistoryBalancingDao
|
protected LedgerBalancingDao |
ledgerBalancingDao
|
protected LedgerEntryBalanceCachingDao |
ledgerEntryBalanceCachingDao
|
protected LedgerEntryBalancingDao |
ledgerEntryBalancingDao
|
protected LedgerEntryHistoryBalancingDao |
ledgerEntryHistoryBalancingDao
|
protected org.kuali.rice.kns.service.ParameterService |
parameterService
|
protected ReportWriterService |
reportWriterService
|
protected UniversityDateService |
universityDateService
|
Constructor Summary | |
---|---|
BalancingServiceBaseImpl()
Constructs a BalancingServiceBaseImpl.java. |
Method Summary | |
---|---|
protected abstract Integer |
compareBalanceHistory()
|
protected abstract Integer |
compareEntryHistory()
|
protected Map<String,Integer> |
customCompareHistory()
Possible override if sub class has additional history tables. |
void |
customPopulateHistoryTables(Integer fiscalYear)
Possible override if sub class has additional history tables. |
protected void |
customPrintRowCountHistory(Integer fiscalYear)
Possible override if sub class has additional history tables. |
protected void |
deleteCustomHistory(Integer fiscalYear)
Possible override if sub class has additional history tables. |
protected void |
deleteHistory(Integer universityFiscalYear,
Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObjectBase> persistentClass)
Deletes data for the given fiscal year of entries from persistentClass. |
protected boolean |
doesCustomHistoryExist(Integer fiscalYear)
Possible override if sub class has additional history tables. |
protected int |
getHistoryCount(Integer fiscalYear,
Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObjectBase> persistentClass)
Gets count for given fiscal year of entries from persistentClass. |
protected boolean |
isFilesReady()
|
boolean |
runBalancing()
Handle for batch processes to kick off balancing |
void |
setBatchFileDirectoryName(String batchFileDirectoryName)
Sets the batchFileDirectoryName |
void |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the BusinessObjectService |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the DateTimeService |
void |
setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
Sets the KualiConfigurationService |
void |
setLedgerBalanceBalancingDao(LedgerBalanceBalancingDao ledgerBalanceBalancingDao)
Sets the LedgerBalanceBalancingDao |
void |
setLedgerBalanceHistoryBalancingDao(LedgerBalanceHistoryBalancingDao ledgerBalanceHistoryBalancingDao)
Sets the ledgerBalanceHistoryBalancingDao |
void |
setLedgerBalancingDao(LedgerBalancingDao ledgerBalancingDao)
Sets the LedgerBalancingDao |
void |
setLedgerEntryBalanceCachingDao(LedgerEntryBalanceCachingDao ledgerEntryBalanceCachingDao)
Sets the ledgerEntryBalanceCachingDao attribute value. |
void |
setLedgerEntryBalancingDao(LedgerEntryBalancingDao ledgerEntryBalancingDao)
Sets the LedgerEntryBalancingDao |
void |
setLedgerEntryHistoryBalancingDao(LedgerEntryHistoryBalancingDao ledgerEntryHistoryBalancingDao)
Sets the LedgerEntryHistoryBalancingDao |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the ParameterService |
void |
setReportWriterService(ReportWriterService reportWriterService)
Sets the reportWriterService |
void |
setUniversityDateService(UniversityDateService universityDateService)
Sets the UniversityDateService |
protected void |
updateCustomHistory(Integer postMode,
OriginEntryInformation originEntry)
Possible override if sub class has additional history tables. |
protected int |
updateHistoriesHelper(Integer postMode,
Integer startUniversityFiscalYear,
File inputFile,
File errorFile)
This is a helper method that wraps parsing poster entries for updateEntryHistory and updateBalanceHistory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.kfs.gl.batch.service.BalancingService |
---|
clearHistories, clearPosterFileCache, getBalance, getComparisonFailuresToPrintPerReport, getICRErrorOutputFile, getICRInputFile, getOriginEntry, getPastFiscalYearsToConsider, getPosterErrorOutputFile, getPosterInputFile, getReversalErrorOutputFile, getReversalInputFile, getShortTableLabel, updateBalanceHistory, updateEntryHistory |
Field Detail |
---|
protected Class<T extends Entry> entryHistoryPersistentClass
protected Class<S extends Balance> balanceHistoryPersistentClass
protected org.kuali.rice.kns.service.ParameterService parameterService
protected org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService
protected org.kuali.rice.kns.service.BusinessObjectService businessObjectService
protected org.kuali.rice.kns.service.DateTimeService dateTimeService
protected UniversityDateService universityDateService
protected LedgerBalancingDao ledgerBalancingDao
protected LedgerEntryBalancingDao ledgerEntryBalancingDao
protected LedgerEntryBalanceCachingDao ledgerEntryBalanceCachingDao
protected LedgerBalanceBalancingDao ledgerBalanceBalancingDao
protected LedgerBalanceHistoryBalancingDao ledgerBalanceHistoryBalancingDao
protected LedgerEntryHistoryBalancingDao ledgerEntryHistoryBalancingDao
protected ReportWriterService reportWriterService
protected String batchFileDirectoryName
Constructor Detail |
---|
public BalancingServiceBaseImpl()
Method Detail |
---|
public boolean runBalancing()
BalancingService
runBalancing
in interface BalancingService
BalancingService.runBalancing()
protected boolean isFilesReady()
protected void deleteHistory(Integer universityFiscalYear, Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObjectBase> persistentClass)
universityFiscalYear
- the given university fiscal yearpersistentClass
- table for which to delete the historyprotected int getHistoryCount(Integer fiscalYear, Class<? extends org.kuali.rice.kns.bo.PersistableBusinessObjectBase> persistentClass)
fiscalYear
- parameter may be null which will get count for all yearspersistentClass
- table for which to get the count
protected int updateHistoriesHelper(Integer postMode, Integer startUniversityFiscalYear, File inputFile, File errorFile)
startUniversityFiscalYear
- fiscal year for which to accept the earlier parsed lines from the input file
protected abstract Integer compareBalanceHistory()
protected abstract Integer compareEntryHistory()
public void customPopulateHistoryTables(Integer fiscalYear)
fiscalYear
- fiscal year populate should start fromprotected boolean doesCustomHistoryExist(Integer fiscalYear)
fiscalYear
- given fiscal year
protected void deleteCustomHistory(Integer fiscalYear)
fiscalYear
- given fiscal yearprotected void updateCustomHistory(Integer postMode, OriginEntryInformation originEntry)
originEntry
- representing the update detailsprotected Map<String,Integer> customCompareHistory()
protected void customPrintRowCountHistory(Integer fiscalYear)
fiscalYear
- starting from which fiscal year the comparision should take placepublic void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService
- The ParameterService to set.public void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
kualiConfigurationService
- The KualiConfigurationService to set.public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- The BusinessObjectService to set.public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
dateTimeService
- The DateTimeService to set.public void setUniversityDateService(UniversityDateService universityDateService)
universityDateService
- The UniversityDateService to set.public void setLedgerBalancingDao(LedgerBalancingDao ledgerBalancingDao)
ledgerBalancingDao
- The LedgerBalancingDao to set.public void setLedgerEntryBalancingDao(LedgerEntryBalancingDao ledgerEntryBalancingDao)
ledgerEntryBalancingDao
- The LedgerEntryBalancingDao to set.public void setLedgerBalanceBalancingDao(LedgerBalanceBalancingDao ledgerBalanceBalancingDao)
ledgerBalanceBalancingDao
- The LedgerBalanceBalancingDao to set.public void setLedgerBalanceHistoryBalancingDao(LedgerBalanceHistoryBalancingDao ledgerBalanceHistoryBalancingDao)
ledgerBalanceHistoryBalancingDao
- The LedgerBalanceHistoryBalancingDao to set.public void setLedgerEntryHistoryBalancingDao(LedgerEntryHistoryBalancingDao ledgerEntryHistoryBalancingDao)
ledgerEntryHistoryBalancingDao
- The LedgerEntryHistoryBalancingDao to set.public void setReportWriterService(ReportWriterService reportWriterService)
reportWriterService
- The reportWriterService to set.public void setBatchFileDirectoryName(String batchFileDirectoryName)
batchFileDirectoryName
- The batchFileDirectoryName to set.public void setLedgerEntryBalanceCachingDao(LedgerEntryBalanceCachingDao ledgerEntryBalanceCachingDao)
ledgerEntryBalanceCachingDao
- The ledgerEntryBalanceCachingDao to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |