【Java开源代码栏目提醒】:网学会员为广大网友收集整理了,Tx.java,希望对大家有所帮助!
package com.relationinfo.finance.dto;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
public class Tx implements Serializable
{
/**
* 属性对应于TX表中的USER_ID列.
*/
private int userId;
/**
* 属性对应于TX表中的ACC_ID列.
*/
private int accId;
/**
* 属性对应于TX表中的TX_ID列.
*/
private int txId;
/**
* 属性对应于TX表中的CAT_ID列.
*/
private int catId;
/**
* 属性对应于TX表中的TX_DATE列.
*/
private Date txDate;
/**
* 属性对应于TX表中的PAYEE列.
*/
private String payee;
/**
* 属性对应于TX表中的AMT列.
*/
private BigDecimal amt;
/**
* 属性对应于TX表中的TRANSFER_ID列.
*/
private int transferId;
/**
* 属性表示的transferId是否为null.
*/
private boolean transferIdNull = true;
/**
* 属性对应于TX表中的REF列.
*/
private String ref;
/**
* 属性对应于TX表中的DESCRIPTION列.
*/
private String description;
/**
* 属性对应于TX表中的CLR列.
*/
private int clr;
/**
* 属性表示是否clr是null.
*/
private boolean clrNull = true;
/**
* Method 'Tx'
*
*/
public Tx()
{
}
/**
* Method 'getUserId'
*
* @return int
*/
public int getUserId()
{
return userId;
}
/**
* Method 'setUserId'
*
* @param userId
*/
public void setUserId(int userId)
{
this.userId = userId;
}
/**
* Method 'getAccId'
*
* @return int
*/
public int getAccId()
{
return accId;
}
/**
* Method 'setAccId'
*
* @param accId
*/
public void setAccId(int accId)
{
this.accId = accId;
}
/**
* Method 'getTxId'
*
* @return int
*/
public int getTxId()
{
return txId;
}
/**
* Method 'setTxId'
*
* @param txId
*/
public void setTxId(int txId)
{
this.txId = txId;
}
/**
* Method 'getCatId'
*
* @return int
*/
public int getCatId()
{
return catId;
}
/**
* Method 'setCatId'
*
* @param catId
*/
public void setCatId(int catId)
{
this.catId = catId;
}
/**
* Method 'getTxDate'
*
* @return Date
*/
public Date getTxDate()
{
return txDate;
}
/**
* Method 'setTxDate'
*
* @param txDate
*/
public void setTxDate(Date txDate)
{
this.txDate = txDate;
}
/**
* Method 'getPayee'
*
* @return String
*/
public String getPayee()
{
return payee;
}
/**
* Method 'setPayee'
*
* @param payee
*/
public void setPayee(String payee)
{
this.payee = payee;
}
/**
* Method 'getAmt'
*
* @return BigDecimal
*/
public BigDecimal getAmt()
{
return amt;
}
/**
* Method 'setAmt'
*
* @param amt
*/
public void setAmt(BigDecimal amt)
{
this.amt = amt;
}
/**
* Method 'getTransferId'
*
* @return int
*/
public int getTransferId()
{
return transferId;
}
/**
* Method 'setTransferId'
*
* @param transferId
*/
public void setTransferId(int transferId)
{
this.transferId = transferId;
setTransferIdNull( false );
}
/**
* 设置 transferIdNull
*/
public void setTransferIdNull(boolean transferIdNull)
{
this.transferIdNull = transferIdNull;
}
/**
* 获得 transferIdNull
*/
public boolean isTransferIdNull()
{
return transferIdNull;
}
/**
* Method 'getRef'
*
* @return String
*/
public String getRef()
{
return ref;
}
/**
* Method 'setRef'
*
* @param ref
*/
public void setRef(String ref)
{
this.ref = ref;
}
/**
* Method 'getDescription'
*
* @return String
*/
public String getDescription()
{
return description;
}
/**
* Method 'setDescription'
*
* @param description
*/
public void setDescription(String description)
{
this.description = description;
}
/**
* Method 'getClr'
*
* @return int
*/
public int getClr()
{
return clr;
}
/**
* Method 'setClr'
*
* @param clr
*/
public void setClr(int clr)
{
this.clr = clr;
setClrNull( false );
}
/**
* 设置 clrNull
*/
public void setClrNull(boolean clrNull)
{
this.clrNull = clrNull;
}
/**
* 获得 clrNull
*/
public boolean isClrNull()
{
return clrNull;
}
/**
* Method 'equals'
*
* @param _other
* @return boolean
*/
public boolean equals(Object _other)
{
if (_other == null) {
return false;
}
if (_other == this) {
return true;
}
if (!(_other instanceof Tx)) {
return false;
}
Tx _cast = (Tx) _other;
if (userId != _cast.userId) {
return false;
}
if (accId != _cast.accId) {
return false;
}
if (txId != _cast.txId) {
return false;
}
if (catId != _cast.catId) {
return false;
}
if (txDate == null ? _cast.txDate != txDate : !txDate.equals( _cast.txDate )) {
return false;
}
if (payee == null ? _cast.payee != payee : !payee.equals( _cast.payee )) {
return false;