org.kuali.kfs.gl.dataaccess.impl
Class ExpenditureTransactionDaoOjb

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

public class ExpenditureTransactionDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
implements ExpenditureTransactionDao

The OJB implmentation of ExpenditureTransactionDao


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
ExpenditureTransactionDaoOjb()
          Constructs a ExpenditureTransactionDaoOjb instance
 
Method Summary
 void delete(ExpenditureTransaction et)
          Deletes the given expenditure transaction
 void deleteAllExpenditureTransactions()
          Since expenditure transactions are temporary, just like flies that live for a mere day, this method removes all of the currently existing expenditure transactions from the database, all expenditure transactions having run through the poster and fulfilled their lifecycle
 Iterator getAllExpenditureTransactions()
          Fetches all expenditure transactions currently in the database
 ExpenditureTransaction getByTransaction(Transaction t)
          Queries the database to find the expenditure transaction in the database that would be affected if the given transaction is posted
 void save(ExpenditureTransaction et)
          Saves an expenditure transaction
 
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

ExpenditureTransactionDaoOjb

public ExpenditureTransactionDaoOjb()
Constructs a ExpenditureTransactionDaoOjb instance

Method Detail

getByTransaction

public ExpenditureTransaction getByTransaction(Transaction t)
Queries the database to find the expenditure transaction in the database that would be affected if the given transaction is posted

Specified by:
getByTransaction in interface ExpenditureTransactionDao
Parameters:
t - a transaction to find a related expenditure transaction for
Returns:
the expenditure transaction if found, null otherwise
See Also:
ExpenditureTransactionDao.getByTransaction(org.kuali.kfs.gl.businessobject.Transaction)

getAllExpenditureTransactions

public Iterator getAllExpenditureTransactions()
Fetches all expenditure transactions currently in the database

Specified by:
getAllExpenditureTransactions in interface ExpenditureTransactionDao
Returns:
an Iterator with all expenditure transactions from the database
See Also:
ExpenditureTransactionDao.getAllExpenditureTransactions()

delete

public void delete(ExpenditureTransaction et)
Deletes the given expenditure transaction

Specified by:
delete in interface ExpenditureTransactionDao
Parameters:
et - the expenditure transaction that will be removed, as such, from the database
See Also:
ExpenditureTransactionDao.delete(org.kuali.kfs.gl.businessobject.ExpenditureTransaction)

save

public void save(ExpenditureTransaction et)
Saves an expenditure transaction

Specified by:
save in interface ExpenditureTransactionDao
Parameters:
et - the expenditure transaction to save
See Also:
ExpenditureTransactionDao.save(org.kuali.kfs.gl.businessobject.ExpenditureTransaction)

deleteAllExpenditureTransactions

public void deleteAllExpenditureTransactions()
Since expenditure transactions are temporary, just like flies that live for a mere day, this method removes all of the currently existing expenditure transactions from the database, all expenditure transactions having run through the poster and fulfilled their lifecycle

Specified by:
deleteAllExpenditureTransactions in interface ExpenditureTransactionDao
See Also:
ExpenditureTransactionDao.deleteAllExpenditureTransactions()


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