|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.geebis.books.model.transaction.Transaction
@Name(value="transaction") public class Transaction
The Transaction class represents a single transaction in the GeebisBooks system
The total of Transactions in the system represent the audit log for GeebisBooks
| Constructor Summary | |
|---|---|
Transaction()
|
|
Transaction(java.lang.String description,
java.util.Date date,
Account account,
java.lang.Double amount)
|
|
| Method Summary | |
|---|---|
Account |
getAccount()
Gets the Account that this transaction was posted to |
java.lang.Double |
getAmount()
Gets the amount of the transaction. |
java.util.Date |
getDate()
Gets the date that this transaction is for |
java.lang.String |
getDescription()
Gets the description of this transaction |
java.lang.Long |
getId()
|
java.util.Date |
getTimestamp()
Gets the date when this transaction created |
java.lang.Integer |
getVersion()
|
void |
setAccount(Account account)
Sets the Account that this transaction was posted to |
void |
setAmount(java.lang.Double amount)
Sets the amount of the transaction |
void |
setDate(java.util.Date date)
Sets the date that this transaction is for |
void |
setDescription(java.lang.String description)
Sets the description of this transaction |
void |
setId(java.lang.Long id)
|
void |
setTimestamp(java.util.Date timestamp)
Sets the date when this transaction was created |
void |
setVersion(java.lang.Integer version)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Transaction()
public Transaction(java.lang.String description,
java.util.Date date,
Account account,
java.lang.Double amount)
| Method Detail |
|---|
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - the new description for this transactionpublic java.util.Date getDate()
public void setDate(java.util.Date date)
date - the new date that this transaction is forpublic java.util.Date getTimestamp()
public void setTimestamp(java.util.Date timestamp)
timestamp - the new date when this transaction was createdpublic Account getAccount()
Account that this transaction was posted to
Account that this transaction was posted topublic void setAccount(Account account)
Account that this transaction was posted to
account - the new Account that this transaction was posted topublic java.lang.Double getAmount()
public void setAmount(java.lang.Double amount)
amount - the new amount for this transactiongetAmount()public java.lang.Integer getVersion()
public void setVersion(java.lang.Integer version)
public java.lang.Long getId()
public void setId(java.lang.Long id)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||