FileDocCategorySizeDatePackage
AccountBeanCMP.javaAPI DocJBoss 4.2.14129Fri Jul 13 20:53:28 BST 2007org.jboss.ejb3.test.bank

AccountBeanCMP

public class AccountBeanCMP extends AccountBean
see
author
$Author: dimitris@jboss.org $
version
$Revision: 57207 $

Fields Summary
public String
id
public float
balance
public Customer
owner
private boolean
dirty
Constructors Summary
Methods Summary
public java.lang.StringejbCreate(AccountData data)

      setId(data.id);
      setData(data);
      dirty = false;
      return null;
   
public voidejbLoad()

      dirty = false;
   
public voidejbPostCreate(AccountData data)

   
public floatgetBalance()

      return balance;
   
public AccountDatagetData()

      AccountData data = new AccountData();
      data.setId(id);
      data.setBalance(balance);
      data.setOwner(owner);
      return data;
   
public java.lang.StringgetId()

      return id;
   
public CustomergetOwner()

      return owner;
   
public booleanisModified()

      return dirty;
   
public voidsetBalance(float balance)

      this.balance = balance;
      dirty = true;
   
public voidsetData(AccountData data)

      setBalance(data.getBalance());
      setOwner(data.getOwner());
   
public voidsetId(java.lang.String id)

      this.id = id;
      dirty = true;
   
public voidsetOwner(Customer owner)

      this.owner = owner;
      dirty = true;