Package ejava.examples.ejbsessionbank.bo
Class Account
- java.lang.Object
-
- ejava.examples.ejbsessionbank.bo.Account
-
- All Implemented Interfaces:
Serializable
public class Account extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private String
accountNumber
private double
balance
private long
id
private static long
serialVersionUID
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deposit(double amount)
String
getAccountNumber()
double
getBalance()
long
getId()
void
setAccountNumber(String accountNumber)
private void
setBalance(double balance)
private void
setId(long id)
String
toString()
void
withdraw(double amount)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
id
private long id
-
accountNumber
private String accountNumber
-
balance
private double balance
-
-
Constructor Detail
-
Account
public Account()
-
Account
public Account(long id)
-
Account
public Account(long id, String accountNumber)
-
-
Method Detail
-
getId
public long getId()
-
setId
private void setId(long id)
-
deposit
public void deposit(double amount)
-
withdraw
public void withdraw(double amount)
-
getAccountNumber
public String getAccountNumber()
-
setAccountNumber
public void setAccountNumber(String accountNumber)
-
getBalance
public double getBalance()
-
setBalance
private void setBalance(double balance)
-
-