org.zeroexchange.dao.resource.money.fixed
Interface CHECreditStatusDAO

All Superinterfaces:
DAO<Integer,CHECreditStatus>, IntegerPKDAO<CHECreditStatus>
All Known Implementing Classes:
CHECreditStatusDAOImpl

public interface CHECreditStatusDAO
extends IntegerPKDAO<CHECreditStatus>

Author:
black

Method Summary
 void freeAmount(BigDecimal amount, Integer userId)
          Frees specified amount.
 CHECreditStatus getByUserId(Integer id)
          Returns the status by the user id.
 CHECreditStatus getOrCreateByUserId(Integer userId)
          Returns credit status by the user's id OR creates it if not exists.
 BigDecimal getReserved(Integer userId)
          Returns reserved amount.
 void markReserved(BigDecimal amount, Integer userId)
          Marks specified amount as reserved.
 
Methods inherited from interface org.zeroexchange.dao.DAO
getById, removeById, save
 

Method Detail

markReserved

void markReserved(BigDecimal amount,
                  Integer userId)
Marks specified amount as reserved.


freeAmount

void freeAmount(BigDecimal amount,
                Integer userId)
Frees specified amount.


getReserved

BigDecimal getReserved(Integer userId)
Returns reserved amount.


getByUserId

CHECreditStatus getByUserId(Integer id)
Returns the status by the user id.


getOrCreateByUserId

CHECreditStatus getOrCreateByUserId(Integer userId)
Returns credit status by the user's id OR creates it if not exists.



Copyright © 2013. All Rights Reserved.