jgroup.test.jini.txn
Class Account

java.lang.Object
  extended by jgroup.test.jini.txn.Account

public class Account
extends java.lang.Object

Persistent class used to save Accounts. Used together with the package.jdo file.

Author:
Rohnny Moland

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

Account

public Account()
Empty constructor


Account

public Account(long number,
               int balance)
Creates a new account.

Parameters:
number - Account number
balance - Balance of account
Method Detail

getNumber

public long getNumber()
Get the account number of an account.

Returns:
account number

getBalance

public int getBalance()
Get the balance of an account.

Returns:
balance of account

setNumber

public void setNumber(long number)
Set the account number of an account.

Parameters:
number - new Account number

setBalance

public void setBalance(int balance)
Set balance of an account.

Parameters:
balance - New balance


Copyright © 1998-2006 The Jgroup/ARM development team. All Rights Reserved.