org.zeroexchange.dao.mcredit
Class CreditLineDAOImpl

java.lang.Object
  extended by org.zeroexchange.dao.HibernateSessionHolder
      extended by org.zeroexchange.dao.BaseHibernateDAO<Integer,T>
          extended by org.zeroexchange.dao.BaseIntegerPKDAO<CreditLine>
              extended by org.zeroexchange.dao.mcredit.CreditLineDAOImpl
All Implemented Interfaces:
DAO<Integer,CreditLine>, IntegerPKDAO<CreditLine>, CreditLineDAO

@Repository
public class CreditLineDAOImpl
extends BaseIntegerPKDAO<CreditLine>
implements CreditLineDAO

Author:
black

Constructor Summary
CreditLineDAOImpl()
           
 
Method Summary
 CreditLine getCreditLine(User creditor, User debtor)
          Returns credit line between specified users.
 SlicingDataSet<CreditLine> getCreditorLines(User creditor)
          Returns credit lines for the specified creditor.
 SlicingDataSet<CreditLine> getDebtorLines(User debtor)
          Returns credit lines for the specified debtor.
protected  Class<CreditLine> getEntityClass()
          
 void remove(CreditLine creditLine)
          Removes line by id.
 
Methods inherited from class org.zeroexchange.dao.BaseHibernateDAO
getById, removeById, save
 
Methods inherited from class org.zeroexchange.dao.HibernateSessionHolder
getSession
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.zeroexchange.dao.DAO
getById, removeById, save
 

Constructor Detail

CreditLineDAOImpl

public CreditLineDAOImpl()
Method Detail

getEntityClass

protected Class<CreditLine> getEntityClass()

Specified by:
getEntityClass in class BaseHibernateDAO<Integer,CreditLine>

getCreditorLines

public SlicingDataSet<CreditLine> getCreditorLines(User creditor)
Returns credit lines for the specified creditor.

Specified by:
getCreditorLines in interface CreditLineDAO

getDebtorLines

public SlicingDataSet<CreditLine> getDebtorLines(User debtor)
Returns credit lines for the specified debtor.

Specified by:
getDebtorLines in interface CreditLineDAO

getCreditLine

public CreditLine getCreditLine(User creditor,
                                User debtor)
Returns credit line between specified users.

Specified by:
getCreditLine in interface CreditLineDAO

remove

public void remove(CreditLine creditLine)
Removes line by id.

Specified by:
remove in interface CreditLineDAO


Copyright © 2013. All Rights Reserved.