@Transactional public class BalancingServiceImpl extends BalancingServiceBaseImpl<EntryHistory,BalanceHistory> implements BalancingService
| Modifier and Type | Field and Description |
|---|---|
protected AccountBalanceDao |
accountBalanceDao |
protected BalancingDao |
balancingDao |
protected EncumbranceDao |
encumbranceDao |
protected File |
icrErrorOutputFile |
protected File |
icrInputFile |
protected File |
posterErrorOutputFile |
protected File |
posterInputFile |
protected File |
reversalErrorOutputFile |
protected File |
reversalInputFile |
balanceHistoryPersistentClass, batchFileDirectoryName, businessObjectService, dateTimeService, entryHistoryPersistentClass, kualiConfigurationService, ledgerBalanceBalancingDao, ledgerBalanceHistoryBalancingDao, ledgerBalancingDao, ledgerEntryBalanceCachingDao, ledgerEntryBalancingDao, ledgerEntryHistoryBalancingDao, parameterService, persistenceStructureService, reportWriterService, universityDateService| Constructor and Description |
|---|
BalancingServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected Integer |
accountBalanceCompareHistory()
Does comparision, error printing and returns failure count for account balances
|
void |
clearHistories()
Removes the data from the History tables.
|
void |
clearPosterFileCache()
In order to avoid file system scans this class caches poster input and poster error filenames.
|
protected Integer |
compareBalanceHistory()
Compares entries in the Balance and BalanceHistory tables to ensure the amounts match.
|
protected Integer |
compareEntryHistory()
Compares entries in the Entry and EntryHistory tables to ensure the amounts match.
|
protected org.kuali.rice.core.api.util.type.KualiDecimal |
convertBigDecimalToKualiDecimal(BigDecimal biggy) |
protected AccountBalanceHistory |
createAccountBalanceHistoryFromMap(Map<String,Object> map) |
protected BalanceHistory |
createBalanceFromMap(Map<String,Object> map) |
protected EncumbranceHistory |
createEncumbranceHistoryFromMap(Map<String,Object> map) |
protected EntryHistory |
createEntryHistoryFromMap(Map<String,Object> map) |
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 boolean |
doesCustomHistoryExist(Integer fiscalYear)
Possible override if sub class has additional history tables.
|
protected Integer |
encumbranceCompareHistory()
Does comparision, error printing and returns failure count for encumbrances
|
Balance |
getBalance(LedgerBalanceHistory ledgerBalanceHistory)
Returns a Balance object for the parameters of the passed in LedgerBalanceHistory.
|
int |
getComparisonFailuresToPrintPerReport() |
File |
getFile(String fileName,
String fileExtension) |
String |
getFilenames()
Returns filenames used by process.
|
File |
getICRErrorOutputFile() |
File |
getICRInputFile() |
OriginEntryInformation |
getOriginEntry(String inputLine,
int lineNumber)
Gets an OriginEntryInformation for the parsed line.
|
int |
getPastFiscalYearsToConsider() |
File |
getPosterErrorOutputFile() |
File |
getPosterInputFile() |
File |
getReversalErrorOutputFile() |
File |
getReversalInputFile() |
String |
getShortTableLabel(String businessObjectName) |
boolean |
runBalancing()
Handle for batch processes to kick off balancing
|
void |
setAccountBalanceDao(AccountBalanceDao accountBalanceDao)
Sets the AccountBalanceDao
|
void |
setBalancingDao(BalancingDao balancingDao)
Sets the BalancingDao
|
void |
setEncumbranceDao(EncumbranceDao encumbranceDao)
Sets the EncumbranceDao
|
protected void |
updateAccountBalanceHistory(OriginEntryInformation originEntry)
Update the account balance history table
|
void |
updateBalanceHistory(Integer postMode,
OriginEntryInformation originEntry)
Updates the balance history table
|
protected void |
updateCustomHistory(Integer postMode,
OriginEntryInformation originEntry)
Possible override if sub class has additional history tables.
|
protected void |
updateEncumbranceHistory(OriginEntryInformation originEntry)
Update the encumbrance history table
|
void |
updateEntryHistory(Integer postMode,
OriginEntryInformation originEntry)
Update the entry history table
|
deleteHistory, getFiscalYear, getHistoryCount, isFilesReady, setBatchFileDirectoryName, setBusinessObjectService, setConfigurationService, setDateTimeService, setLedgerBalanceBalancingDao, setLedgerBalanceHistoryBalancingDao, setLedgerBalancingDao, setLedgerEntryBalanceCachingDao, setLedgerEntryBalancingDao, setLedgerEntryHistoryBalancingDao, setParameterService, setPersistenceStructureService, setReportWriterService, setUniversityDateService, updateHistoriesHelperprotected BalancingDao balancingDao
protected AccountBalanceDao accountBalanceDao
protected EncumbranceDao encumbranceDao
protected File posterInputFile
protected File posterErrorOutputFile
protected File reversalInputFile
protected File reversalErrorOutputFile
protected File icrInputFile
protected File icrErrorOutputFile
public BalancingServiceImpl()
public boolean runBalancing()
BalancingServicerunBalancing in interface BalancingServicerunBalancing in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>BalancingService.runBalancing()public File getPosterInputFile()
getPosterInputFile in interface BalancingServiceBalancingService.getPosterInputFile()public File getPosterErrorOutputFile()
getPosterErrorOutputFile in interface BalancingServiceBalancingService.getPosterErrorOutputFile()public File getReversalInputFile()
getReversalInputFile in interface BalancingServiceBalancingService.getReversalInputFile()public File getReversalErrorOutputFile()
getReversalErrorOutputFile in interface BalancingServiceBalancingService.getReversalErrorOutputFile()public File getICRInputFile()
getICRInputFile in interface BalancingServiceBalancingService.getICRInputFile()public File getICRErrorOutputFile()
getICRErrorOutputFile in interface BalancingServiceBalancingService.getICRErrorOutputFile()public int getPastFiscalYearsToConsider()
getPastFiscalYearsToConsider in interface BalancingServiceBalancingService.getPastFiscalYearsToConsider()public int getComparisonFailuresToPrintPerReport()
getComparisonFailuresToPrintPerReport in interface BalancingServiceBalancingService.getComparisonFailuresToPrintPerReport()public String getShortTableLabel(String businessObjectName)
getShortTableLabel in interface BalancingServicebusinessObjectName - name of the BO for which to return the labelBalancingService.getShortTableLabel(java.lang.String)public OriginEntryInformation getOriginEntry(String inputLine, int lineNumber)
BalancingServicegetOriginEntry in interface BalancingServiceinputLine - line that was read from getPosterInputFilenamelineNumber - line number we are currently reading from getPosterInputFilenameBalancingService.getOriginEntry(java.lang.String, int)public void updateEntryHistory(Integer postMode, OriginEntryInformation originEntry)
BalancingServiceupdateEntryHistory in interface BalancingServiceoriginEntry - representing the update detailsorg.kuali.ole.gl.batch.service.BalancingService#updateEntryHistory(org.kuali.ole.gl.businessobject.OriginEntryInformation),
org.kuali.ole.gl.batch.service.impl.PostEntry#post(org.kuali.ole.gl.businessobject.Transaction, int, java.util.Date)public void updateBalanceHistory(Integer postMode, OriginEntryInformation originEntry)
BalancingServiceupdateBalanceHistory in interface BalancingServiceoriginEntry - representing the update detailsorg.kuali.ole.gl.batch.service.BalancingService#updateBalanceHistory(org.kuali.ole.gl.businessobject.OriginEntryInformation),
org.kuali.ole.gl.batch.service.impl.PostBalance#post(org.kuali.ole.gl.businessobject.Transaction, int, java.util.Date)public Balance getBalance(LedgerBalanceHistory ledgerBalanceHistory)
BalancingServicegetBalance in interface BalancingServiceledgerBalanceHistory - to retrieve the Balance object forBalancingService.getBalance(org.kuali.ole.gl.businessobject.LedgerBalanceHistory)public void clearPosterFileCache()
BalancingServiceclearPosterFileCache in interface BalancingServiceBalancingService.clearPosterFileCache()public void customPopulateHistoryTables(Integer fiscalYear)
BalancingServiceBaseImplcustomPopulateHistoryTables in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>fiscalYear - fiscal year populate should start fromBalancingServiceBaseImpl.customPopulateHistoryTables(java.lang.Integer)protected boolean doesCustomHistoryExist(Integer fiscalYear)
BalancingServiceBaseImpldoesCustomHistoryExist in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>fiscalYear - given fiscal yearBalancingServiceBaseImpl.doesCustomHistoryExist(java.lang.Integer)protected void deleteCustomHistory(Integer fiscalYear)
BalancingServiceBaseImpldeleteCustomHistory in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>fiscalYear - given fiscal yearBalancingServiceBaseImpl.deleteCustomHistory(java.lang.Integer)protected void updateCustomHistory(Integer postMode, OriginEntryInformation originEntry)
BalancingServiceBaseImplupdateCustomHistory in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>originEntry - representing the update detailsorg.kuali.ole.gl.batch.service.impl.BalancingServiceBaseImpl#updateCustomHistory(org.kuali.ole.gl.businessobject.OriginEntryInformation)protected void updateAccountBalanceHistory(OriginEntryInformation originEntry)
originEntry - representing the update detailsorg.kuali.ole.gl.batch.service.impl.PostAccountBalance#post(org.kuali.ole.gl.businessobject.Transaction, int, java.util.Date)public void clearHistories()
BalancingServiceclearHistories in interface BalancingServiceorg.kuali.ole.gl.batch.service.BalancingService#clearBalanceHistory()public String getFilenames()
BalancingServicegetFilenames in interface BalancingServiceBalancingService.getFilenames()protected Integer compareBalanceHistory()
compareBalanceHistory in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>protected Integer compareEntryHistory()
compareEntryHistory in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>protected void updateEncumbranceHistory(OriginEntryInformation originEntry)
originEntry - representing the update detailsorg.kuali.ole.gl.batch.service.impl.PostEncumbrance#post(org.kuali.ole.gl.businessobject.Transaction, int, java.util.Date)protected Map<String,Integer> customCompareHistory()
BalancingServiceBaseImplcustomCompareHistory in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>BalancingServiceBaseImpl.customCompareHistory()protected Integer accountBalanceCompareHistory()
protected Integer encumbranceCompareHistory()
protected void customPrintRowCountHistory(Integer fiscalYear)
BalancingServiceBaseImplcustomPrintRowCountHistory in class BalancingServiceBaseImpl<EntryHistory,BalanceHistory>fiscalYear - starting from which fiscal year the comparision should take placeorg.kuali.ole.gl.batch.service.impl.BalancingServiceBaseImpl#customPrintRowCountHistory()public void setBalancingDao(BalancingDao balancingDao)
balancingDao - The BalancingDao to set.public void setAccountBalanceDao(AccountBalanceDao accountBalanceDao)
accountBalanceDao - The AccountBalanceDao to set.public void setEncumbranceDao(EncumbranceDao encumbranceDao)
encumbranceDao - The EncumbranceDao to set.protected BalanceHistory createBalanceFromMap(Map<String,Object> map)
protected EntryHistory createEntryHistoryFromMap(Map<String,Object> map)
protected AccountBalanceHistory createAccountBalanceHistoryFromMap(Map<String,Object> map)
protected EncumbranceHistory createEncumbranceHistoryFromMap(Map<String,Object> map)
protected org.kuali.rice.core.api.util.type.KualiDecimal convertBigDecimalToKualiDecimal(BigDecimal biggy)
Copyright © 2004–2015 The Kuali Foundation. All rights reserved.