org.kuali.kfs.module.cam.document.dataaccess
Interface DepreciationBatchDao

All Known Implementing Classes:
DepreciationBatchDaoJdbc

public interface DepreciationBatchDao

Interface declaring DAO methods required by CAMS depreciation batch job


Method Summary
 Object[] getAssetAndPaymentCount(Integer fiscalYear, Integer fiscalMonth, Calendar depreciationDate, boolean includePending)
          Retrieves asset and asset payment count eligible for depreciation
 Object[] getFederallyOwnedAssetAndPaymentCount(Integer fiscalYear, Integer fiscalMonth, Calendar depreciationDate)
          This method...
 Integer getFullyDepreciatedAssetCount()
          Counts the number of assets which has (SUM(Primary Depreciation Amount - Accumulated Depreciation) - Salvage Amount) is zero
 Collection<AssetPaymentInfo> getListOfDepreciableAssetPaymentInfo(Integer fiscalYear, Integer fiscalMonth, Calendar depreciationDate)
          Gets the list of depreciable asset payment list and corresponding details
 Set<Long> getLockedAssets()
          Returns the list of locked asset by pending transfer and retirement documents
 Map<Long,org.kuali.rice.kns.util.KualiDecimal> getPrimaryDepreciationBaseAmountForSV()
          Primary depreciation base amount for assets with Salvage Value depreciation method code.
 Integer getRetireDocLockedAssetCount()
          Retirement document locked count
 Integer getTransferDocLockedAssetCount()
          Transfer document locked count
 void resetPeriodValuesWhenFirstFiscalPeriod(Integer fiscalPeriod)
          Sum all period column and set as previous year value and then reset period columns with zero dollar
 void savePendingGLEntries(List<GeneralLedgerPendingEntry> glPendingEntries)
          Saves a batch of GL Pending entries
 void updateAssetPayments(List<AssetPaymentInfo> assetPayments, Integer fiscalPeriod)
          Updates payments as batch, columns updated are accumulated depreciation amount and current period column decided by fiscal period
 void updateAssetsCreatedInLastFiscalPeriod(Integer fiscalMonth, Integer fiscalYear)
          Updates depreciation and service date for all the assets created after last fiscal period date
 

Method Detail

updateAssetPayments

void updateAssetPayments(List<AssetPaymentInfo> assetPayments,
                         Integer fiscalPeriod)
Updates payments as batch, columns updated are accumulated depreciation amount and current period column decided by fiscal period

Parameters:
assetPayments - Batch of asset payments
fiscalPeriod - Current fiscal period

resetPeriodValuesWhenFirstFiscalPeriod

void resetPeriodValuesWhenFirstFiscalPeriod(Integer fiscalPeriod)
                                            throws Exception
Sum all period column and set as previous year value and then reset period columns with zero dollar

Parameters:
fiscalMonth - Fiscal period
Throws:
Exception

updateAssetsCreatedInLastFiscalPeriod

void updateAssetsCreatedInLastFiscalPeriod(Integer fiscalMonth,
                                           Integer fiscalYear)
Updates depreciation and service date for all the assets created after last fiscal period date

Parameters:
fiscalMonth - fiscal month
fiscalYear - fiscal year

savePendingGLEntries

void savePendingGLEntries(List<GeneralLedgerPendingEntry> glPendingEntries)
Saves a batch of GL Pending entries

Parameters:
glPendingEntries - GLPE list to be saved

getListOfDepreciableAssetPaymentInfo

Collection<AssetPaymentInfo> getListOfDepreciableAssetPaymentInfo(Integer fiscalYear,
                                                                  Integer fiscalMonth,
                                                                  Calendar depreciationDate)
Gets the list of depreciable asset payment list and corresponding details

Parameters:
fiscalYear - Fiscal year
fiscalMonth - Fiscal period
depreciationDate - Depreciation Date
Returns:
List found matching depreciation criteria

getFullyDepreciatedAssetCount

Integer getFullyDepreciatedAssetCount()
Counts the number of assets which has (SUM(Primary Depreciation Amount - Accumulated Depreciation) - Salvage Amount) is zero

Returns:
count of assets matching condition

getPrimaryDepreciationBaseAmountForSV

Map<Long,org.kuali.rice.kns.util.KualiDecimal> getPrimaryDepreciationBaseAmountForSV()
Primary depreciation base amount for assets with Salvage Value depreciation method code.

Returns:
Map

getAssetAndPaymentCount

Object[] getAssetAndPaymentCount(Integer fiscalYear,
                                 Integer fiscalMonth,
                                 Calendar depreciationDate,
                                 boolean includePending)
Retrieves asset and asset payment count eligible for depreciation

Parameters:
fiscalYear -
fiscalMonth -
depreciationDate -
inincludePending -
Returns:

getFederallyOwnedAssetAndPaymentCount

Object[] getFederallyOwnedAssetAndPaymentCount(Integer fiscalYear,
                                               Integer fiscalMonth,
                                               Calendar depreciationDate)
This method...

Parameters:
fiscalYear -
fiscalMonth -
depreciationDate -
Returns:

getTransferDocLockedAssetCount

Integer getTransferDocLockedAssetCount()
Transfer document locked count

Returns:

getRetireDocLockedAssetCount

Integer getRetireDocLockedAssetCount()
Retirement document locked count

Returns:

getLockedAssets

Set<Long> getLockedAssets()
Returns the list of locked asset by pending transfer and retirement documents

Returns:


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.