📄 categorypk.java
字号:
/*
* This source file was generated by FireStorm/DAO 3.0 (build 99)
* on 26-十月-2005 at 09:50:56
*
* If you purchase a full license for FireStorm/DAO you can customize this file header.
*
* For more information please visit http://www.codefutures.com/products/firestorm
*/
package cn.wanfeng.myblog.dto;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* This class represents the primary key of the Category table.
*/
public class CategoryPk implements Serializable
{
private int categoryID;
/**
* This attribute represents whether the primitive attribute categoryID is null.
*/
private boolean categoryIDNull;
/**
* Sets the value of categoryID
*/
public void setCategoryID(int categoryID)
{
this.categoryID = categoryID;
}
/**
* Gets the value of categoryID
*/
public int getCategoryID()
{
return categoryID;
}
/**
* Method 'CategoryPk'
*
*/
public CategoryPk()
{
}
/**
* Method 'CategoryPk'
*
* @param categoryID
*/
public CategoryPk(final int categoryID)
{
this.categoryID = categoryID;
}
/**
* Sets the value of categoryIDNull
*/
public void setCategoryIDNull(boolean categoryIDNull)
{
this.categoryIDNull = categoryIDNull;
}
/**
* Gets the value of categoryIDNull
*/
public boolean isCategoryIDNull()
{
return categoryIDNull;
}
/**
* Method 'equals'
*
* @param _other
* @return boolean
*/
public boolean equals(Object _other)
{
if (_other == null) {
return false;
}
if (_other == this) {
return true;
}
if (!(_other instanceof CategoryPk)) {
return false;
}
final CategoryPk _cast = (CategoryPk) _other;
if (categoryID != _cast.categoryID) {
return false;
}
if (categoryIDNull != _cast.categoryIDNull) {
return false;
}
return true;
}
/**
* Method 'hashCode'
*
* @return int
*/
public int hashCode()
{
int _hashCode = 0;
_hashCode = 29 * _hashCode + categoryID;
_hashCode = 29 * _hashCode + (categoryIDNull ? 1 : 0);
return _hashCode;
}
/**
* Method 'toString'
*
* @return String
*/
public String toString()
{
StringBuffer ret = new StringBuffer();
ret.append( "cn.wanfeng.myblog.dto.CategoryPk: " );
ret.append( "categoryID='" + categoryID + "'" );
return ret.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -