📄 financialaccountdto.java
字号:
package com.fund.client;
import java.io.Serializable;
import java.sql.Timestamp;
/**
*
* <p>Title: </p>
*
* <p>Description: </p>
*
* <p>Copyright: Copyright (c) 2005</p>
*
* <p>Company: </p>
*
* @author not attributable
* @version 1.0
*/
public class FinancialAccountDto implements Serializable {
/**
* serialVersionUID
*/
private static final long serialVersionUID = 1L;
/**
*
*/
private Integer accountNo;
/**
*
*/
private Integer clientNo;
/**
*
*/
private Double financingAmount;
/**
*
*/
private Timestamp createdDate;
/**
*
*/
private String status;
/**
*
*/
private String password;
/**
*
* @return Integer
*/
public Integer getAccountNo() {
return accountNo;
}
/**
*
* @param accountNo Integer
*/
public void setAccountNo(Integer accountNo) {
this.accountNo = accountNo;
}
/**
*
* @return Integer
*/
public Integer getClientNo() {
return clientNo;
}
/**
*
* @param clientNo Integer
*/
public void setClientNo(Integer clientNo) {
this.clientNo = clientNo;
}
/**
*
* @return Double
*/
public Double getFinancingAmount() {
if (financingAmount != null) {
java.text.DecimalFormat obDF = new java.text.DecimalFormat("#.##");
return new Double(obDF.format(financingAmount));
} else {
return financingAmount;
}
}
/**
*
* @param financingAmount Double
*/
public void setFinancingAmount(Double financingAmount) {
// this.financingAmount = financingAmount;
java.text.DecimalFormat obDF = new java.text.DecimalFormat("#.##");
this.financingAmount = new Double(obDF.format(financingAmount));
}
/**
*
* @return Timestamp
*/
public Timestamp getCreatedDate() {
return createdDate;
}
/**
*
* @param createdDate Timestamp
*/
public void setCreatedDate(Timestamp createdDate) {
this.createdDate = createdDate;
}
/**
*
* @return String
*/
public String getStatus() {
return status;
}
/**
*
* @param status String
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* @return String
*/
public String getPassword() {
return password;
}
/**
*
* @param password String
*/
public void setPassword(String password) {
this.password = password;
}
/**
*
* @param obj Object
* @return boolean
*/
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (!(obj instanceof FinancialAccountDto)) {
return false;
}
FinancialAccountDto that = (FinancialAccountDto) obj;
if (!(that.accountNo == null ? this.accountNo == null
:
that.accountNo.equals(this.accountNo))) {
return false;
}
if (!(that.clientNo == null ? this.clientNo == null
:
that.clientNo.equals(this.clientNo))) {
return false;
}
if (!(that.financingAmount == null ? this.financingAmount == null
:
that.financingAmount.equals(this.financingAmount))) {
return false;
}
if (!(that.createdDate == null ? this.createdDate == null
:
that.createdDate.equals(this.createdDate))) {
return false;
}
if (!(that.status == null ? this.status == null
:
that.status.equals(this.status))) {
return false;
}
if (!(that.password == null ? this.password == null
:
that.password.equals(this.password))) {
return false;
}
return true;
}
/**
*
* @return int
*/
public int hashCode() {
int result = 17;
result = 37 * result + this.accountNo.hashCode();
result = 37 * result + this.clientNo.hashCode();
result = 37 * result + this.financingAmount.hashCode();
result = 37 * result + this.createdDate.hashCode();
result = 37 * result + this.status.hashCode();
result = 37 * result + this.password.hashCode();
return result;
}
/**
*
* @return String
*/
public String toString() {
String returnString = "";
returnString += "FINANCING ACOUNT NUMBER:" + accountNo;
returnString += " CLIENT:" + clientNo;
returnString += " FINANCING AMOUNT:" + financingAmount;
returnString += " CREATED DATE:" + createdDate;
returnString += " STATUS:" + status;
returnString += " PASSWORD:" + password;
return returnString;
}
/**
*
* @param msg String
* @return String
*/
public String logData(String msg) {
String returnString = "\n[" + msg.toUpperCase() + "]\n";
returnString += toString() + "\n";
return returnString;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -