/* * $Id: CustomerBean.java,v 1.3 2004/11/14 07:33:17 tcfujii Exp $ */ /* * Copyright 2004-2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ package demo.model; import java.io.Serializable; /** * <p>JavaBean represented the data for an individual customer.</p> */ public class CustomerBean implements Serializable { public CustomerBean() { this(null, null, null, 0.0); } public CustomerBean(String accountId, String name, String symbol, double totalSales) { this.accountId = accountId; this.name = name; this.symbol = symbol; this.totalSales = totalSales; } private String accountId = null; public String getAccountId() { return (this.accountId); } public void setAccountId(String accountId) { this.accountId = accountId; } private String name = null; public String getName() { return (this.name); } public void setName(String name) { this.name = name; } private String symbol = null; public String getSymbol() { return (this.symbol); } public void setSymbol(String symbol) { this.symbol = symbol; } private double totalSales = 0.0; public double getTotalSales() { return (this.totalSales); } public void setTotalSales(double totalSales) { this.totalSales = totalSales; } public String toString() { StringBuffer sb = new StringBuffer("CustomerBean[accountId="); sb.append(accountId); sb.append(",name="); sb.append(name); sb.append(",symbol="); sb.append(symbol); sb.append(",totalSales="); sb.append(totalSales); sb.append("]"); return (sb.toString()); } }