|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.jdbc.core.support.JdbcDaoSupport
org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport
org.kuali.rice.kns.dao.jdbc.PlatformAwareDaoBaseJdbc
org.kuali.kfs.module.cam.document.dataaccess.impl.DepreciationBatchDaoJdbc
public class DepreciationBatchDaoJdbc
JDBC implementation of DepreciationBatchDao
Field Summary |
---|
Fields inherited from class org.springframework.dao.support.DaoSupport |
---|
logger |
Constructor Summary | |
---|---|
DepreciationBatchDaoJdbc()
|
Method Summary | |
---|---|
protected String |
buildCriteria(Integer fiscalYear,
Integer fiscalMonth,
List<String> depreciationMethodList,
List<String> notAcceptedAssetStatus,
List<String> federallyOwnedObjectSubTypes,
boolean includeFederal,
boolean includePending)
|
protected String |
buildINValues(List<String> list)
Utility method that will convert a list into IN string clause for SQL |
Object[] |
getAssetAndPaymentCount(Integer fiscalYear,
Integer fiscalMonth,
Calendar depreciationDate,
boolean includePending)
Retrieves asset and asset payment count eligible for depreciation |
org.kuali.rice.kns.service.BusinessObjectService |
getBusinessObjectService()
Gets the businessObjectService attribute. |
org.kuali.rice.kns.service.DateTimeService |
getDateTimeService()
Gets the dateTimeService attribute. |
Object[] |
getFederallyOwnedAssetAndPaymentCount(Integer fiscalYear,
Integer fiscalMonth,
Calendar depreciationDate)
This method... |
protected List<String> |
getFederallyOwnedObjectSubTypes()
This method the value of the system parameter NON_DEPRECIABLE_FEDERALLY_OWNED_OBJECT_SUB_TYPES |
Integer |
getFullyDepreciatedAssetCount()
Counts the number of assets which has (SUM(Primary Depreciation Amount - Accumulated Depreciation) - Salvage Amount) is zero |
org.kuali.rice.kns.service.KualiConfigurationService |
getKualiConfigurationService()
Gets the kualiConfigurationService attribute. |
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 |
OptionsService |
getOptionsService()
Gets the optionsService attribute. |
org.kuali.rice.kns.service.ParameterService |
getParameterService()
Gets the parameterService attribute. |
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 |
UniversityDateDao |
getUniversityDateDao()
Gets the universityDateDao attribute. |
protected org.springframework.jdbc.core.PreparedStatementSetter |
preparedStatementSetter(Calendar depreciationDate)
|
void |
resetPeriodValuesWhenFirstFiscalPeriod(Integer fiscalMonth)
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 |
setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value. |
void |
setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
Sets the dateTimeService attribute value. |
void |
setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
Sets the kualiConfigurationService attribute value. |
void |
setOptionsService(OptionsService optionsService)
Sets the optionsService attribute value. |
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
Sets the parameterService attribute value. |
void |
setUniversityDateDao(UniversityDateDao universityDateDao)
Sets the universityDateDao attribute value. |
void |
updateAssetPayments(List<AssetPaymentInfo> assetPayments,
Integer fiscalMonth)
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 |
Methods inherited from class org.kuali.rice.kns.dao.jdbc.PlatformAwareDaoBaseJdbc |
---|
getDbPlatform, setDbPlatform |
Methods inherited from class org.springframework.jdbc.core.simple.SimpleJdbcDaoSupport |
---|
getSimpleJdbcTemplate, initTemplateConfig |
Methods inherited from class org.springframework.jdbc.core.support.JdbcDaoSupport |
---|
checkDaoConfig, createJdbcTemplate, getConnection, getDataSource, getExceptionTranslator, getJdbcTemplate, releaseConnection, setDataSource, setJdbcTemplate |
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 DepreciationBatchDaoJdbc()
Method Detail |
---|
public void resetPeriodValuesWhenFirstFiscalPeriod(Integer fiscalMonth) throws Exception
DepreciationBatchDao
resetPeriodValuesWhenFirstFiscalPeriod
in interface DepreciationBatchDao
Exception
DepreciationBatchDao.resetPeriodValuesWhenFirstFiscalPeriod(java.lang.Integer)
public void updateAssetPayments(List<AssetPaymentInfo> assetPayments, Integer fiscalMonth)
DepreciationBatchDao
updateAssetPayments
in interface DepreciationBatchDao
assetPayments
- Batch of asset paymentsfiscalMonth
- Current fiscal periodDepreciationBatchDao.updateAssetPayments(java.util.List, java.lang.Integer)
public void updateAssetsCreatedInLastFiscalPeriod(Integer fiscalMonth, Integer fiscalYear)
DepreciationBatchDao
updateAssetsCreatedInLastFiscalPeriod
in interface DepreciationBatchDao
fiscalMonth
- fiscal monthfiscalYear
- fiscal yearDepreciationBatchDao.updateAssetsCreatedInLastFiscalPeriod(java.lang.Integer,
java.lang.Integer)
public void savePendingGLEntries(List<GeneralLedgerPendingEntry> glPendingEntries)
DepreciationBatchDao
savePendingGLEntries
in interface DepreciationBatchDao
glPendingEntries
- GLPE list to be savedDepreciationBatchDao.savePendingGLEntries(java.util.List)
public Collection<AssetPaymentInfo> getListOfDepreciableAssetPaymentInfo(Integer fiscalYear, Integer fiscalMonth, Calendar depreciationDate)
DepreciationBatchDao
getListOfDepreciableAssetPaymentInfo
in interface DepreciationBatchDao
fiscalYear
- Fiscal yearfiscalMonth
- Fiscal perioddepreciationDate
- Depreciation Date
DepreciationBatchDao.getListOfDepreciableAssetPaymentInfo(java.lang.Integer,
java.lang.Integer, java.util.Calendar)
protected org.springframework.jdbc.core.PreparedStatementSetter preparedStatementSetter(Calendar depreciationDate)
protected String buildCriteria(Integer fiscalYear, Integer fiscalMonth, List<String> depreciationMethodList, List<String> notAcceptedAssetStatus, List<String> federallyOwnedObjectSubTypes, boolean includeFederal, boolean includePending)
public Integer getFullyDepreciatedAssetCount()
DepreciationBatchDao
getFullyDepreciatedAssetCount
in interface DepreciationBatchDao
DepreciationBatchDao.getFullyDepreciatedAssetCount()
public Object[] getAssetAndPaymentCount(Integer fiscalYear, Integer fiscalMonth, Calendar depreciationDate, boolean includePending)
DepreciationBatchDao
getAssetAndPaymentCount
in interface DepreciationBatchDao
public Object[] getFederallyOwnedAssetAndPaymentCount(Integer fiscalYear, Integer fiscalMonth, Calendar depreciationDate)
DepreciationBatchDao
getFederallyOwnedAssetAndPaymentCount
in interface DepreciationBatchDao
public Map<Long,org.kuali.rice.kns.util.KualiDecimal> getPrimaryDepreciationBaseAmountForSV()
DepreciationBatchDao
getPrimaryDepreciationBaseAmountForSV
in interface DepreciationBatchDao
DepreciationBatchDao.getPrimaryDepreciationBaseAmountForSV()
public Integer getTransferDocLockedAssetCount()
DepreciationBatchDao
getTransferDocLockedAssetCount
in interface DepreciationBatchDao
DepreciationBatchDao.getTransferDocLockedAssetCount()
public Integer getRetireDocLockedAssetCount()
DepreciationBatchDao
getRetireDocLockedAssetCount
in interface DepreciationBatchDao
DepreciationBatchDao.getRetireDocLockedAssetCount()
public Set<Long> getLockedAssets()
DepreciationBatchDao
getLockedAssets
in interface DepreciationBatchDao
DepreciationBatchDao.getLockedAssets()
protected List<String> getFederallyOwnedObjectSubTypes()
protected String buildINValues(List<String> list)
list
- values
public org.kuali.rice.kns.service.KualiConfigurationService getKualiConfigurationService()
public void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kualiConfigurationService)
kualiConfigurationService
- The kualiConfigurationService to set.public org.kuali.rice.kns.service.ParameterService getParameterService()
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
parameterService
- The parameterService to set.public org.kuali.rice.kns.service.DateTimeService getDateTimeService()
public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
dateTimeService
- The dateTimeService to set.public OptionsService getOptionsService()
public void setOptionsService(OptionsService optionsService)
optionsService
- The optionsService to set.public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
businessObjectService
- The businessObjectService to set.public UniversityDateDao getUniversityDateDao()
public void setUniversityDateDao(UniversityDateDao universityDateDao)
universityDateDao
- The universityDateDao to set.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |