📄 accountinfo.java
字号:
/*
* @author : Umesh Kulkarni
* @version 1.0
*
* Development Environment : Oracle9i JDeveloper
*
* Name of the File : AccountInfo.java
*
* Creation / Modification History
* Umesh 26-Apr-2002 Created
*
*/
package oracle.otnsamples.ibfbs.usermanagement.ejb;
import java.io.Serializable;
/**
* This Class encapsulates Account Information for a particular User Account.
* Whenever Session Facade Bean namely UserManagementSessionFacadeBean, needs
* to get the Account Info for a particular User Account, the Session Facade
* Bean gets this information as AccountInfo value object. Thus this class
* acts as Value object while getting/setting account information between
* Session Facade Bean and User Account Entity Bean.
*
* @version 1.0
* @since 1.0
*/
public class AccountInfo implements Serializable {
private String password; // Instance variable to store password
private String userType; // User Type
private String alertMode; // Alert Mode
private float accountBalance; // Account Balance
private Integer linesPerPage; // Lines per page
/**
* Empty Constructor of this Class
*
* @since 1.0
*/
public AccountInfo() {}
/**
* Constructor with appropriate parameters. Sets the value of instance
* variables with appropriate values.
*
* @param password Value of the password field
* @param userType User Type Value. This can be either 'A','C' or 'I'
* 'A' - Admin, 'C' - Company Account or 'I' - Individual
* @param alertMode Value of Alert Mode. This can take either 'M' or 'E'
* 'E' - Email Alert 'M' - Mobile Alert
* @param accountBalance Value of user's Account Balance
* @param linesPerPage Value of no of Lines Per Page to be displayed.
* This value is used while displaying the portfolio
* information
* @since 1.0
*/
public AccountInfo(String password, String userType, String alertMode,
float accountBalance, Integer linesPerPage) {
this.password = password;
this.userType = userType;
this.alertMode = alertMode;
this.accountBalance = accountBalance;
this.linesPerPage = linesPerPage;
}
/**
* Method to retrieve the value of password instance variable
*
* @return The Desired Password Value
* @since 1.0
*/
public String getPassword() {
return password;
}
/**
* Assign the new password value to password instance variable.
*
* @param password New Password Value
* @since 1.0
*/
public void setPassword(String password) {
this.password = password;
}
/**
* Method to retrieve the value of userType instance variable
*
* @return The Desired Value of UserType. This value can be 'A','C' or 'I'.
* @since 1.0
*/
public String getUserType() {
return userType;
}
/**
* Assign the new UserType value to userType instance variable.
*
* @param userType New Value of User Type. This value can be 'A','C' or 'I'.
* @since 1.0
*/
public void setUserType(String userType) {
this.userType = userType;
}
/**
* Method to retrieve the value of alertMode instance variable
*
* @return The Desired value of Alert Mode. Valid values are 'M' or 'E'
* @since 1.0
*/
public String getAlertMode() {
return alertMode;
}
/**
* Assign the new AlertMode value to alertMode instance variable.
*
* @param alertMode New Value of Alert Mode. Valid values are 'M' or 'E'
* @since 1.0
*/
public void setAlertMode(String alertMode) {
this.alertMode = alertMode;
}
/**
* Method to retrieve the value of accountBalance instance variable
*
* @return The Desired value of Account Balance.
* @since 1.0
*/
public float getAccountBalance() {
return accountBalance;
}
/**
* Assign the new Account Balance value to accountBalance instance variable.
*
* @param accountBalance New Value of Account Balance.
* @since 1.0
*/
public void setAccountBalance(float accountBalance) {
this.accountBalance = accountBalance;
}
/**
* Method to retrieve the value of account Balance instance variable
*
* @return The Desired value of Lines Per Page.
* @since 1.0
*/
public Integer getLinesPerPage() {
return linesPerPage;
}
/**
* Assign the new Lines Per Page value to linesPerPage instance variable.
*
* @param linesPerPage New Value of Lines Per Page.
* @since 1.0
*/
public void setLinesPerPage(Integer linesPerPage) {
this.linesPerPage = linesPerPage;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -