|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.tolven.core.entity.AccountExchange
public class AccountExchange
This entity represents allowable points of exchange between accounts. There are two types of objects due to the boundary between accounts. These two types of entries generally work in pairs. Both sides must have active entries for a message to exchange. A sender must be willing to send to a receiving account and a receiver must be willing to receive from a sending account. Further, the roles may, but are not required, to be reversed. If the reverse is not provided, then all communication between two parties will be one way. Example of a complete, two-way channel:
This entity has a separate id. This allows, over time, entries to be added and then subsequently discontinued. In that case, a new agreement is a new row in the table. But only one row for each account/otherAccount/direction combination should exist at a time with a status of active.
| Nested Class Summary | |
|---|---|
static class |
AccountExchange.Direction
|
| Constructor Summary | |
|---|---|
AccountExchange()
|
|
| Method Summary | |
|---|---|
Account |
getAccount()
The account that owns this exchange |
AccountExchange.Direction |
getDirection()
The direction of the exchange (SEND or RECEIVE) |
java.util.Date |
getEffectiveTime()
The effective time of this exchange agreement |
java.util.Date |
getExpirationTime()
The effective time of this exchange agreement |
long |
getId()
Unique id of this exchange record |
java.lang.String |
getName()
The name of the connection. |
Account |
getOtherAccount()
The distal account. |
java.lang.String |
getStatus()
NEW means an exchange is pending. |
void |
setAccount(Account account)
|
void |
setDirection(AccountExchange.Direction direction)
|
void |
setEffectiveTime(java.util.Date effectiveTime)
|
void |
setExpirationTime(java.util.Date expirationTime)
|
void |
setId(long id)
|
void |
setName(java.lang.String name)
|
void |
setOtherAccount(Account otherAccount)
|
void |
setStatus(java.lang.String status)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AccountExchange()
| Method Detail |
|---|
public Account getAccount()
public void setAccount(Account account)
public AccountExchange.Direction getDirection()
public void setDirection(AccountExchange.Direction direction)
public java.util.Date getEffectiveTime()
public void setEffectiveTime(java.util.Date effectiveTime)
public java.util.Date getExpirationTime()
public void setExpirationTime(java.util.Date expirationTime)
public long getId()
public void setId(long id)
public Account getOtherAccount()
public void setOtherAccount(Account otherAccount)
public java.lang.String getStatus()
public void setStatus(java.lang.String status)
public java.lang.String getName()
public void setName(java.lang.String name)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||