org.kuali.kfs.sys.dataaccess.impl
Class AccountingLineDaoOjb

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

public class AccountingLineDaoOjb
extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
implements AccountingLineDao

This class is the OJB implementation of the AccountingLineDao interface.


Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
AccountingLineDaoOjb()
          Default constructor.
 
Method Summary
 void deleteAccountingLine(AccountingLine line)
          Deletes an accounting line from the DB using OJB.
 ArrayList findByDocumentHeaderId(Class clazz, String documentHeaderId)
          Retrieves accounting lines associate with a given document header ID using OJB.
protected  Collection findCollection(org.apache.ojb.broker.query.Query query)
          Retrieve a Collection of Document instances found by a query.
 void save(AccountingLine line)
          Saves an accounting line to the DB using OJB.
 
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

AccountingLineDaoOjb

public AccountingLineDaoOjb()
Default constructor.

Method Detail

save

public void save(AccountingLine line)
          throws org.springframework.dao.DataAccessException
Saves an accounting line to the DB using OJB.

Specified by:
save in interface AccountingLineDao
Parameters:
line -
Throws:
org.springframework.dao.DataAccessException

deleteAccountingLine

public void deleteAccountingLine(AccountingLine line)
                          throws org.springframework.dao.DataAccessException
Deletes an accounting line from the DB using OJB.

Specified by:
deleteAccountingLine in interface AccountingLineDao
Throws:
org.springframework.dao.DataAccessException

findByDocumentHeaderId

public ArrayList findByDocumentHeaderId(Class clazz,
                                        String documentHeaderId)
                                 throws org.springframework.dao.DataAccessException
Retrieves accounting lines associate with a given document header ID using OJB.

Specified by:
findByDocumentHeaderId in interface AccountingLineDao
Parameters:
classname -
id -
Returns:
Throws:
org.springframework.dao.DataAccessException

findCollection

protected Collection findCollection(org.apache.ojb.broker.query.Query query)
                             throws org.springframework.dao.DataAccessException
Retrieve a Collection of Document instances found by a query.

Parameters:
query -
Returns:
Throws:
org.springframework.dao.DataAccessException


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