|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.carlosbcruz.account.dynamicmodel.AccountTransaction
public class AccountTransaction
Represents a transaction in an com.carlosbcruz.account.control. It can be a withdraw, deposit to a current com.carlosbcruz.account.control, deposit to a savings com.carlosbcruz.account.control or a move between current com.carlosbcruz.account.control and savings. A transaction also has a date, a value and a description.
| Field Summary | |
|---|---|
static int |
DEPOSIT_CURRENT_ACCOUNT
|
static int |
DEPOSIT_SAVINGS_ACCOUNT
|
static int |
MOVE_FROM_CURRENT_ACCOUNT_TO_SAVINGS
|
static int |
MOVE_FROM_SAVINGS_TO_CURRENT_ACCOUNT
|
static int |
WITHDRAW
|
| Constructor Summary | |
|---|---|
AccountTransaction()
|
|
| Method Summary | |
|---|---|
int |
getDay()
Returns the day. |
java.lang.String |
getDescription()
Returns the description. |
int |
getMonth()
Returns the month. |
int |
getType()
Returns the type. |
float |
getValue()
Returns the value. |
int |
getYear()
Returns the year. |
void |
setDay(int day)
Sets the day. |
void |
setDescription(java.lang.String description)
Sets the description. |
void |
setMonth(int month)
Sets the month. |
void |
setType(int type)
Sets the type. |
void |
setValue(float value)
Sets the value. |
void |
setYear(int year)
Sets the year. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int WITHDRAW
public static final int DEPOSIT_CURRENT_ACCOUNT
public static final int DEPOSIT_SAVINGS_ACCOUNT
public static final int MOVE_FROM_CURRENT_ACCOUNT_TO_SAVINGS
public static final int MOVE_FROM_SAVINGS_TO_CURRENT_ACCOUNT
| Constructor Detail |
|---|
public AccountTransaction()
| Method Detail |
|---|
public int getType()
public float getValue()
public void setType(int type)
type - The type to setpublic int getDay()
public void setDay(int day)
day - The day to setpublic int getMonth()
public void setMonth(int month)
month - The month to setpublic int getYear()
public void setValue(float value)
value - The value to setpublic void setYear(int year)
year - The year to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description - The description to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||