|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjgroup.test.jini.txn.Account
public class Account
Persistent class used to save Accounts. Used together with the package.jdo file.
| Constructor Summary | |
|---|---|
Account()
Empty constructor |
|
Account(long number,
int balance)
Creates a new account. |
|
| Method Summary | |
|---|---|
int |
getBalance()
Get the balance of an account. |
long |
getNumber()
Get the account number of an account. |
void |
setBalance(int balance)
Set balance of an account. |
void |
setNumber(long number)
Set the account number of an account. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Account()
public Account(long number,
int balance)
number - Account numberbalance - Balance of account| Method Detail |
|---|
public long getNumber()
public int getBalance()
public void setNumber(long number)
number - new Account numberpublic void setBalance(int balance)
balance - New balance
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||