org.kuali.kfs.pdp.dataaccess.impl
Class BatchMaintenanceDaoOjb

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.pdp.dataaccess.impl.BatchMaintenanceDaoOjb
All Implemented Interfaces:
BatchMaintenanceDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean

public class BatchMaintenanceDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
implements BatchMaintenanceDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
BatchMaintenanceDaoOjb()
           
 
Method Summary
 boolean doBatchPaymentsHaveHeldStatus(Integer batchId)
          doBatchPaymentsHaveHeldStatus() Return true if all payments in batch have an 'HELD' status.
 boolean doBatchPaymentsHaveOpenStatus(Integer batchId)
          doBatchPaymentsHaveOpenStatus() Return true if all payments in batch have an 'OPEN' status.
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
           
 
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
 

Constructor Detail

BatchMaintenanceDaoOjb

public BatchMaintenanceDaoOjb()
Method Detail

setBusinessObjectService

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

doBatchPaymentsHaveOpenStatus

public boolean doBatchPaymentsHaveOpenStatus(Integer batchId)
doBatchPaymentsHaveOpenStatus() Return true if all payments in batch have an 'OPEN' status. Return false if all payments in batch do not have an 'OPEN' status. The query in this method searches the payment detail table for payments of the given batchId where the status equals any status other than 'OPEN'. If any rows exist with a status other than 'OPEN', return false.

Specified by:
doBatchPaymentsHaveOpenStatus in interface BatchMaintenanceDao
Parameters:
batchId - Integer value of batch id of payments to search.
Returns:
boolean true = all payments are 'OPEN'; false = all payments are not 'OPEN'

doBatchPaymentsHaveHeldStatus

public boolean doBatchPaymentsHaveHeldStatus(Integer batchId)
doBatchPaymentsHaveHeldStatus() Return true if all payments in batch have an 'HELD' status. Return false if all payments in batch do not have an 'HELD' status. The query in this method searches the payment detail table for payments of the given batchId where the status equals any status other than 'HELD'. If any rows exist with a status other than 'HELD', return false.

Specified by:
doBatchPaymentsHaveHeldStatus in interface BatchMaintenanceDao
Parameters:
batchId - Integer value of batch id of payments to search.
Returns:
boolean true = all payments are 'HELD'; false = all payments are not 'HELD'


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