AccountBean.java
资源名称:某公司的java培训教材 [点击查看]
上传用户:dinglihq
上传日期:2013-02-04
资源大小:99958k
文件大小:1k
源码类别:
Java编程
开发平台:
Java
- package bible.jsp;
- /**
- * Title: AccountBean
- * Description: JavaBean value object for Brokerage Accounts
- * Copyright: Copyright (c) 2001
- * Company: ZeeWare Inc.
- * @author Gary Wells
- * @version 1.0
- */
- public class AccountBean implements ValueBean, java.io.Serializable {
- // private properties
- private String accountNumber;
- private String accountName;
- private String status;
- // getters and setters
- public String getAccountNumber() {
- return accountNumber;
- }
- public void setAccountNumber(String accountNumber) {
- this.accountNumber = accountNumber;
- }
- public void setAccountName(String accountName) {
- this.accountName = accountName;
- }
- public String getAccountName() {
- return accountName;
- }
- public void setStatus(String status) {
- this.status = status;
- }
- public String getStatus() {
- return status;
- }
- /**
- * Sets the bean with static test data
- */
- public void setTestData() {
- setAccountNumber("110-12345");
- setAccountName("Martin Moneybags");
- setStatus("A");
- }
- }