|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zeroexchange.mcredit.write.DefaultCreditLineWriter
public class DefaultCreditLineWriter
Constructor Summary | |
---|---|
DefaultCreditLineWriter()
|
Method Summary | |
---|---|
SlicingDataSet<CreditLine> |
getUserLines(User creditor)
Returns credit lines for the specified creditor. |
void |
remove(CreditLine creditLine)
Remove credit line by id. |
protected Collection<CreditLine> |
roteDebt(Collection<CreditLine> path,
BigDecimal valueToMove)
Routes the specified value over the route. |
CreditPaths |
roteDebt(CreditPaths originalTwoPartnerPaths,
BigDecimal value)
Performs movement of mutual credit. |
CreditLine |
setCreditLine(User creditor,
User debtor,
BigDecimal value)
Adds user credit relation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCreditLineWriter()
Method Detail |
---|
public SlicingDataSet<CreditLine> getUserLines(User creditor)
getUserLines
in interface CreditLineWriter
@Transactional public CreditLine setCreditLine(User creditor, User debtor, BigDecimal value)
setCreditLine
in interface CreditLineWriter
@Transactional(rollbackFor=DebtRotingException.class) public CreditPaths roteDebt(CreditPaths originalTwoPartnerPaths, BigDecimal value) throws DebtRotingException
roteDebt
in interface CreditLineWriter
DebtRotingException
@Transactional public void remove(CreditLine creditLine)
remove
in interface CreditLineWriter
protected Collection<CreditLine> roteDebt(Collection<CreditLine> path, BigDecimal valueToMove)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |