⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 accountmodel.java~

📁 J2EE & Tomcat books published by hope
💻 JAVA~
字号:
/*
 * $Id: AccountModel.java~,v 1.3 2002/04/26 00:52:05 jc123804 Exp $
 * Copyright 2001 Sun Microsystems, Inc. All rights reserved.
 * Copyright 2001 Sun Microsystems, Inc. Tous droits r閟erv閟.
 */

package com.sun.j2ee.blueprints.customer.account.model;

import java.rmi.RemoteException;

import com.sun.j2ee.blueprints.customer.util.ContactInformation;

/**
 * This class provides methods to view and modify account
 * information for a particular account.
 */
public class AccountModel implements java.io.Serializable {

    protected String userId;
    private String status;
    private ContactInformation info;

    public AccountModel(String userId, String status,
                        ContactInformation info) {
        this.userId = userId;
        this.status = status;
        this.info = info;
    }

    /**
     * Class constructor with no arguments, used by the web tier.
     */
    public AccountModel() {}

    // get and set methods for the instance variables

    public String getUserId() {
        return userId;
    }

    public String getStatus() {
        return status;
    }

    public ContactInformation getContactInformation() {
        return info;
    }

    public String toString() {
        String ret = null;
        ret = "userId = " + userId + "\n";
        ret += "status = " + status + "\n";
        ret += "contact info = " + info.toString() + "\n";
        return ret;
    }

    /** shallow copy */
    public void copy(AccountModel other) {
        this.userId = other.userId;
        this.status = other.status;
        this.info = other.info;
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -