org.kuali.kfs.module.cam.document.dataaccess.impl
Class DepreciableAssetsDaoOjb

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
          extended by org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
              extended by org.kuali.kfs.module.cam.document.dataaccess.impl.DepreciableAssetsDaoOjb
All Implemented Interfaces:
DepreciableAssetsDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class DepreciableAssetsDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
implements DepreciableAssetsDao


Field Summary
protected static String ASSET_TO_ASSET_TYPE_REFERENCE_DESCRIPTOR
           
protected static String PAYMENT_TO_ASSET_REFERENCE_DESCRIPTOR
           
protected static String PAYMENT_TO_OBJECT_REFERENCE_DESCRIPTOR
           
protected static String[] REPORT_GROUP
           
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
DepreciableAssetsDaoOjb()
           
 
Method Summary
protected  String convertCountValueToString(Object fieldValue)
          This method converts a variable of type object to BigDecimal or a Long type in order to return a string
 List<String[]> generateStatistics(boolean beforeDepreciationReport, List<String> documentNumbers, Integer fiscalYear, Integer fiscalMonth, Calendar depreciationDate)
          This method stores in a collection each item the depreciation report will print out
protected  List<String> getAccumulatedDepreciationObjectCodes(Integer fiscalYear)
          This method gets a list of Accumulated Depreciation Object Codes from the asset object code table for a particular fiscal year.
 Collection<AssetObjectCode> getAssetObjectCodes(Integer fiscalYear)
          This method retrieves a list of valid asset object codes for a particular fiscal year
protected  Object getAssetObjectCodesCount(Integer fiscalYear)
          This method counts the number of assets that exist in both chart of accounts object code table and capital asset object code tables
protected  Object getCOAsCount()
          This method returns the number of records found resulting from a join of the organization table and the account table
 DepreciationBatchDao getDepreciationBatchDao()
          Gets the depreciationBatchDao attribute.
protected  List<String> getExpenseObjectCodes(Integer fiscalYear)
          This method gets a list of Expense object codes from the asset object code table for a particular fiscal year
protected  List<String> getFederallyOwnedObjectSubTypes()
          This method the value of the system parameter NON_DEPRECIABLE_FEDERALLY_OWNED_OBJECT_SUB_TYPES
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
           
 void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)
           
 void setDepreciationBatchDao(DepreciationBatchDao depreciationBatchDao)
          Sets the depreciationBatchDao attribute value.
 void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kcs)
           
 void setOptionsService(OptionsService optionService)
           
 void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
           
 void setUniversityDateDao(UniversityDateDao universityDateDao)
           
 
Methods inherited from class org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
getDbPlatform, setDbPlatform
 
Methods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate
 
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
 

Field Detail

PAYMENT_TO_ASSET_REFERENCE_DESCRIPTOR

protected static final String PAYMENT_TO_ASSET_REFERENCE_DESCRIPTOR
See Also:
Constant Field Values

PAYMENT_TO_OBJECT_REFERENCE_DESCRIPTOR

protected static final String PAYMENT_TO_OBJECT_REFERENCE_DESCRIPTOR
See Also:
Constant Field Values

ASSET_TO_ASSET_TYPE_REFERENCE_DESCRIPTOR

protected static final String ASSET_TO_ASSET_TYPE_REFERENCE_DESCRIPTOR
See Also:
Constant Field Values

REPORT_GROUP

protected static final String[] REPORT_GROUP
Constructor Detail

DepreciableAssetsDaoOjb

public DepreciableAssetsDaoOjb()
Method Detail

generateStatistics

public List<String[]> generateStatistics(boolean beforeDepreciationReport,
                                         List<String> documentNumbers,
                                         Integer fiscalYear,
                                         Integer fiscalMonth,
                                         Calendar depreciationDate)
Description copied from interface: DepreciableAssetsDao
This method stores in a collection each item the depreciation report will print out

Specified by:
generateStatistics in interface DepreciableAssetsDao
Parameters:
beforeDepreciationReport - when true will print out some of the items
fiscalYear - fiscal year of the date in depreciation
fiscalMonth - fiscal month of the date in depreciation
depreciationDate - depreciation date that will be print out
Returns:
See Also:
org.kuali.kfs.module.cam.document.dataaccess.DepreciableAssetsDao#generateStatistics(boolean, java.lang.String, java.lang.Integer, java.lang.Integer, java.util.Calendar)

getCOAsCount

protected Object getCOAsCount()
This method returns the number of records found resulting from a join of the organization table and the account table

Parameters:
fiscalYear -
Returns:

getFederallyOwnedObjectSubTypes

protected List<String> getFederallyOwnedObjectSubTypes()
This method the value of the system parameter NON_DEPRECIABLE_FEDERALLY_OWNED_OBJECT_SUB_TYPES

Returns:

getAssetObjectCodes

public Collection<AssetObjectCode> getAssetObjectCodes(Integer fiscalYear)
Description copied from interface: DepreciableAssetsDao
This method retrieves a list of valid asset object codes for a particular fiscal year

Specified by:
getAssetObjectCodes in interface DepreciableAssetsDao
Returns:
Collection
See Also:
DepreciableAssetsDao.getAssetObjectCodes(java.lang.Integer)

getExpenseObjectCodes

protected List<String> getExpenseObjectCodes(Integer fiscalYear)
This method gets a list of Expense object codes from the asset object code table for a particular fiscal year

Parameters:
fiscalYear -
Returns:
a List

getAccumulatedDepreciationObjectCodes

protected List<String> getAccumulatedDepreciationObjectCodes(Integer fiscalYear)
This method gets a list of Accumulated Depreciation Object Codes from the asset object code table for a particular fiscal year.

Parameters:
fiscalYear -
Returns:
List

getAssetObjectCodesCount

protected Object getAssetObjectCodesCount(Integer fiscalYear)
This method counts the number of assets that exist in both chart of accounts object code table and capital asset object code tables

Parameters:
fiscalYear -
Returns:
number of object codes found

convertCountValueToString

protected String convertCountValueToString(Object fieldValue)
This method converts a variable of type object to BigDecimal or a Long type in order to return a string

Parameters:
fieldValue -
Returns:
String

setKualiConfigurationService

public void setKualiConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService kcs)

setParameterService

public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)

setDateTimeService

public void setDateTimeService(org.kuali.rice.kns.service.DateTimeService dateTimeService)

setOptionsService

public void setOptionsService(OptionsService optionService)

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)

setUniversityDateDao

public void setUniversityDateDao(UniversityDateDao universityDateDao)

getDepreciationBatchDao

public DepreciationBatchDao getDepreciationBatchDao()
Gets the depreciationBatchDao attribute.

Returns:
Returns the depreciationBatchDao.

setDepreciationBatchDao

public void setDepreciationBatchDao(DepreciationBatchDao depreciationBatchDao)
Sets the depreciationBatchDao attribute value.

Parameters:
depreciationBatchDao - The depreciationBatchDao to set.


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