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

📄 useraccountlocal.java

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

//Import Required Packages
import javax.ejb.EJBLocalObject;

import javax.naming.InitialContext;

import java.util.Collection;

/**
 * This Class acts as remote local interface for the UserAccountBean which is
 * a local EJB Object. UserAccount is an Entity Object. Every User Account
 * can have multiple Alerts, multiple Preferences, multiple Portfolio and
 * multiple Trade Details. This 1:N relationship between User Account
 * Entity Bean and other local Beans (Alerts,Preferences, Portfolio and
 * TradeDetails) is managed by the OC4J EJB Container.
 *
 * This new feature called CMR (Container Managed RelationShips) is a new
 * feature added in EJB 2.0 Specification.
 *
 * Note that the JSP/Servlet Clients never invoke the Local Objects directly.
 * Session Bean namely 'UserManagementSessionFacadeBean' invokes the methods
 * on this Local Objects on the behalf of outside clients.
 * This pattern is called as Session Facade Pattern.
 * @version 1.0
 * @since   1.0
 */
public interface UserAccountLocal extends EJBLocalObject {


  /**
   * Method to retrieve the value of AccountNumber associated with
   * the User Account
   *
   * @return  The Desired Account Number Value
   * @since   1.0
   */
  public Integer getAccountNumber();

  /**
   * Method to assign the new AccountNumber value in the User Account.
   *
   * @param accountNumber New Account Number Value
   * @since   1.0
   */
  public void setAccountNumber(Integer accountNumber);

  /**
   * Method to retrieve the value of Password associated with the User Account
   *
   * @return  The Desired Password Value
   * @since   1.0
   */
  public String getPassword();

  /**
   * Method to assign the new Password value in the User Account.
   *
   * @param password New Password Value
   * @since   1.0
   */
  public void setPassword(String password);

  /**
   * Method to retrieve the value of First Name associated with User Account
   *
   * @return  The Desired First Name Value
   * @since   1.0
   */
  public String getFirstName();

  /**
   * Method to assign the new First Name value in the User Account.
   *
   * @param firstName New First Name Value
   * @since   1.0
   */
  public void setFirstName(String firstName);

  /**
   * Method to retrieve the value of Last Name associated with the User Account
   *
   * @return  The Desired Last Name Value
   * @since   1.0
   */
  public String getLastName();

  /**
   * Method to assign the new Last Name value in the User Account.
   *
   * @param lastName New Last Name Value
   * @since   1.0
   */
  public void setLastName(String lastName);

  /**
   * Method to retrieve the value of Organization associated with User Account
   *
   * @return  The Desired Organization Value
   * @since   1.0
   */
  public String getOrganization();

  /**
   * Method to assign the new Organization value in the User Account.
   *
   * @param organization New Organization Value
   * @since   1.0
   */
  public void setOrganization(String organization);

  /**
   * Method to retrieve the value of Address associated with the User Account
   *
   * @return  The Desired Address Value
   * @since   1.0
   */
  public String getAddress();

  /**
   * Method to assign the new Address value in the User Account.
   *
   * @since   1.0
   */
  public void setAddress(String address);

  /**
   * Method to retrieve the value of City associated with the User Account
   *
   * @return  The Desired City Value
   * @since   1.0
   */
  public String getCity();

  /**
   * Method to assign the new City value in the User Account.
   *
   * @param city New City Value
   * @since   1.0
   */
  public void setCity(String city);

  /**
   * Method to retrieve the value of State associated with the User Account
   *
   * @return  The Desired State Value
   * @since   1.0
   */
  public String getState();

  /**
   * Method to assign the new State value in the User Account.
   *
   * @param state New State Value
   * @since   1.0
   */
  public void setState(String state);

  /**
   * Method to retrieve the value of Country associated with the User Account
   *
   * @return  The Desired Country Value
   * @since   1.0
   */
  public String getCountry();

  /**
   * Method to assign the new country value in the User Account.
   *
   * @param country New Country Value
   * @since   1.0
   */
  public void setCountry(String country);

  /**
   * Method to retrieve the value of Phone associated with the User Account
   *
   * @return  The Desired Phone Value
   * @since   1.0
   */
  public String getPhone();

  /**
   * Method to assign the new Phone value in the User Account.
   *
   * @param phone New Phone Value
   * @since   1.0
   */
  public void setPhone(String phone);

  /**
   * Method to retrieve the value of AccountBalance associated with User Account
   *
   * @return  The Desired AccountBalance Value
   * @since   1.0
   */
  public float getAccountBalance();

  /**
   * Method to assign the new AccountBalance value in the User Account.
   *
   * @param accountBalance New Account Balance Value
   * @since   1.0
   */
  public void setAccountBalance(float accountBalance);

  /**
   * Method to retrieve the value of Email associated with the User Account
   *
   * @return  The Desired Email Value
   * @since   1.0
   */
  public String getEmail();

  /**
   * Method to assign the new Email value in the User Account.
   *
   * @param email New Email Value
   * @since   1.0
   */
  public void setEmail(String email);

  /**
   * Method to retrieve the value of UserType associated with the User Account
   *
   * @return  The Desired User Type Value
   * @since   1.0
   */
  public String getUserType();

  /**
   * Method to assign the new UserType value in the User Account.
   *
   * @param userType New User Type Value
   * @since   1.0
   */
  public void setUserType(String userType);

  /**
   * Method to retrieve the value of Lines Per Page associated with the
   * User Account
   *
   * @return  The Desired Lines Per Page Value
   * @since   1.0
   */
  public Integer getLinesPerPage();

  /**
   * Method to assign the new Lines Per Page value in the User Account.
   *
   * @since   1.0
   */
  public void setLinesPerPage(Integer linePerPage);

  /**
   * Method to retrieve the value of Alert Mode associated with the User Account
   *
   * @return  The Desired Alert Mode Value
   * @since   1.0
   */
  public String getAlertMode();

  /**
   * Method to assign the new Alert Mode value in the User Account.
   *
   * @param alertMode New Alert Mode Value
   * @since   1.0
   */
  public void setAlertMode(String alertMode);

  /**
   * Method to retrieve the value of Mobile Email associated with User Account
   *
   * @return  The Desired Mobile Email Value
   * @since   1.0
   */
  public String getMobileEmail();

  /**
   * Method to assign the new Mobile Email value in the User Account.
   *
   * @param mobileEmail New Mobile Email Value
   * @since   1.0
   */
  public void setMobileEmail(String mobileEmail);

  /**
   * Method to get all the preferences for this User Account.
   * Note that there are multiple Preferences for a User Account
   * and return value is a collection of 'PreferencesLocal'
   *
   * @return All Preferences Associated with the User Account.
   * @since   1.0
   */
  public Collection getPreferences();

  /**
   * Method to set all the preferences for this User Account.
   * Note that there are multiple Preferences for a User Account
   * and input value is a collection of 'PreferencesLocal'
   *
   * @param preferences All Preferences Associated with the User Account.
   * @since   1.0
   */
  public void setPreferences(Collection preferences);

  /**
   * Method to get all the Alerts for this User Account.
   * Note that there are multiple Alerts for a User Account
   * and return value is a collection of 'AlertsLocal'
   *
   * @return All Alerts Associated with the User Account.
   * @since   1.0
   */
  public Collection getAlerts();

  /**
   * Method to set all the Alerts for this User Account.
   * Note that there are multiple Alerts for a User Account
   * and input value is a collection of 'AlertsLocal'
   *
   * @param alerts All Alerts Associated with the User Account.
   * @since   1.0
   */
  public void setAlerts(Collection alerts);

  /**
   * Method to get all the Portfolio Records for this User Account.
   * Note that there are multiple portfolio records for a User Account
   * and return value is a collection of 'PortfolioLocal'
   *
   * @return All Portfolio records Associated with the User Account.
   * @since   1.0
   */
  public Collection getPortfolio();

  /**
   * Method to set all the portfolio for this User Account.
   * Note that there are multiple portfolio records for a User Account
   * and input value is a collection of 'PortfolioLocal'
   *
   * @param portfolio All Portfolio Records Associated with User Account.
   * @since   1.0
   */
  public void setPortfolio(Collection portfolio);

  /**
   * Method to get all the Trade Details records for this User Account.
   * Note that there are multiple Trade Details Records for a User Account
   * and return value is a collection of 'TradeDetailsLocal'
   *
   * @return All Trade Detail Records Associated with the User Account.
   * @since   1.0
   */
  public Collection getTradeDetails();

  /**
   * Method to set all the Trade Details Records for this User Account.
   * Note that there are multiple Trade Details Records for a User Account and
   * input value is a collection of 'PortfolioLocal'
   *
   * @param tradeDetails All Trade Details Records Associated
   *                        with the User Account.
   * @since   1.0
   */
  public void setTradeDetails(Collection tradeDetails);

/** Depends on Timer for Local Entity Beans bug fix
  public void initializeTimer(long timeout, String info, InitialContext ic);
**/

}

⌨️ 快捷键说明

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