|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zeroexchange.dao.HibernateSessionHolder org.zeroexchange.dao.BaseHibernateDAO<Integer,T> org.zeroexchange.dao.BaseIntegerPKDAO<CHECreditStatus> org.zeroexchange.dao.resource.money.fixed.CHECreditStatusDAOImpl
public class CHECreditStatusDAOImpl
Constructor Summary | |
---|---|
CHECreditStatusDAOImpl()
|
Method Summary | |
---|---|
void |
freeAmount(BigDecimal amount,
Integer userId)
Frees specified amount. |
CHECreditStatus |
getByUserId(Integer userId)
Returns credit status by the user's id. |
Class<CHECreditStatus> |
getEntityClass()
|
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 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 |
---|
public CHECreditStatusDAOImpl()
Method Detail |
---|
public Class<CHECreditStatus> getEntityClass()
getEntityClass
in class BaseHibernateDAO<Integer,CHECreditStatus>
public void markReserved(BigDecimal amount, Integer userId)
markReserved
in interface CHECreditStatusDAO
public BigDecimal getReserved(Integer userId)
getReserved
in interface CHECreditStatusDAO
public void freeAmount(BigDecimal amount, Integer userId)
freeAmount
in interface CHECreditStatusDAO
public CHECreditStatus getByUserId(Integer userId)
getByUserId
in interface CHECreditStatusDAO
public CHECreditStatus getOrCreateByUserId(Integer userId)
getOrCreateByUserId
in interface CHECreditStatusDAO
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |