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

📄 contactinfo.java

📁 Oracle的J2EE Sample
💻 JAVA
字号:
/*
 * @author : Umesh Kulkarni
 * @version 1.0
 *
 * Development Environment : Oracle9i JDeveloper
 *
 * Name of the File : ContactInfo.java
 *
 * Creation / Modification History
 *    Umesh           26-Apr-2002        Created
 *
 */
package oracle.otnsamples.ibfbs.usermanagement.ejb;

import java.io.Serializable;

/**
 *  This Class encapsulates Contact Information for a particular User Account.
 *  Whenever Session Facade Bean namely UserManagementSessionFacadeBean, needs
 *  to get the Contact Info for a particular User Account, the Session Facade 
 *  Bean gets this information as ContactInfo value object. Thus this class 
 *  acts as Value object while getting/setting contact information between 
 *  Session Facade Bean and User Account Entity Bean.

 *  @version 1.0

 *  @since   1.0
 */
public class ContactInfo implements Serializable {

  private String firstName;     // First Name
  private String lastName;      // Last Name
  private String organization;  // Organisation
  private String address;       // Address
  private String city;          // City
  private String state;         // State
  private String country;       // Country
  private String phone;         // Phone
  private String email;         // Email
  private String mobileEmail;   // Mobile Email

  /**
   * Empty Constructor of this Class
   * @since   1.0

   */
  public ContactInfo() {}

  /**
   * Constructor with appropriate parameters. Sets the value of instance
   * variables with appropriate values.
   *
   * @param firstName    Value of User's First Name
   * @param lastName     Value of User's Last Name
   * @param organization Value of User's Organization
   * @param address      Value of User's address
   * @param city         Value of User's city
   * @param state        Value of User's State
   * @param country      Value of User's country
   * @param phone        Value of User's country
   * @param email        Value of User's Email Address
   * @param mobileEmail  Value of User's Mobile Email Address
   * @since   1.0

   *
   */
  public ContactInfo(String firstName, String lastName, String organization,
                     String address, String city, String state, String country,
                     String phone, String email, String mobileEmail) {
    this.firstName    = firstName;
    this.lastName     = lastName;
    this.organization = organization;
    this.address      = address;
    this.city         = city;
    this.state        = state;
    this.country      = country;
    this.phone        = phone;
    this.email        = email;
    this.mobileEmail  = mobileEmail;
  }

  /**
   * Method to retrieve the value of firstName instance variable
   *
   * @return  The Desired First Name Value
   * @since   1.0

   */
  public String getFirstName() {
    return firstName;
  }

  /**
   * Assign the new firstName value to firstName instance variable.
   *
   * @param firstName New firstName Value
   * @since   1.0

   */
  public void setFistName(String firstName) {
    this.firstName = firstName;
  }

  /**
   * Method to retrieve the value of lastName instance variable
   *
   * @return  The Desired Last Name Value
   * @since   1.0

   */
  public String getLastName() {
    return lastName;
  }

  /**
   * Assign the new lastName value to lastName instance variable.
   *
   * @param lastName New lastName Value
   * @since   1.0

   */
  public void setLastName(String lastName) {
    this.lastName = lastName;
  }

  /**
   * Method to retrieve the value of Organization instance variable
   *
   * @return  The Desired Organization Value
   * @since   1.0

   */
  public String getOrganization() {
    return organization;
  }

  /**
   * Assign the new organization value to organization instance variable.
   *
   * @param organization New Organization Value
   * @since   1.0

   */
  public void setOrganization(String organization) {
    this.organization = organization;
  }

  /**
   * Method to retrieve the value of Address instance variable
   *
   * @return  The Desired Address Value
   * @since   1.0

   */
  public String getAddress() {
    return address;
  }

  /**
   * Assign the new address value to address instance variable.
   *
   * @param address New Address Value
   * @since   1.0

   */
  public void setAddress(String address) {
    this.address = address;
  }

  /**
   * Method to retrieve the value of City instance variable
   *
   * @return  The Desired City Value
   * @since   1.0

   */
  public String getCity() {
    return city;
  }

  /**
   * Assign the new city value to city instance variable.
   *
   * @param city New City Value
   * @since   1.0

   */
  public void setCity(String city) {
    this.city = city;
  }

  /**
   * Method to retrieve the value of State instance variable
   *
   * @return  The Desired State Value
   * @since   1.0

   */
  public String getState() {
    return state;
  }

  /**
   * Assign the new State value to state instance variable.
   *
   * @param state New State Value
   * @since   1.0

   */
  public void setState(String state) {
    this.state = state;
  }

  /**
   * Method to retrieve the value of Country instance variable
   *
   * @return  The Desired Country Value
   * @since   1.0

   */
  public String getCountry() {
    return country;
  }

  /**
   * Assign the new country value to country instance variable.
   *
   * @param country New Country Value
   * @since   1.0

   */
  public void setCountry(String country) {
    this.country = country;
  }

  /**
   * Method to retrieve the value of Phone instance variable
   *
   * @return  The Desired Phone Value
   * @since   1.0

   */
  public String getPhone() {
    return phone;
  }

  /**
   * Assign the new phone value to phone instance variable.
   *
   * @param phone New phone Value
   * @since   1.0

   */
  public void setPhone(String phone) {
    this.phone = phone;
  }

  /**
   * Method to retrieve the value of Email instance variable
   *
   * @return  The Desired Email Value
   * @since   1.0

   */
  public String getEmail() {
    return email;
  }

  /**
   * Assign the new email value to email instance variable.
   *
   * @param email New email Value
   * @since   1.0

   */
  public void setEmail(String email) {
    this.email = email;
  }

  /**
   * Method to retrieve the value of mobileEmail instance variable
   *
   * @return  The Desired Mobile Email Value
   * @since   1.0

   */
  public String getMobileEmail() {
    return mobileEmail;
  }

  /**
   * Assign the new mobileEmail value to mobileEmail instance variable.
   *
   * @param mobileEmail New mobileEmail Value
   * @since   1.0

   */
  public void setMobileEmail(String mobileEmail) {
    this.city = mobileEmail;
  }
}

⌨️ 快捷键说明

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