📄 category.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 cn.wanfeng.myblog.dao.*;
import cn.wanfeng.myblog.factory.*;
import cn.wanfeng.myblog.exceptions.*;
import java.io.Serializable;
import java.util.*;
public class Category implements Serializable
{
/**
* This attribute maps to the column CategoryID in the Category table.
*/
private int categoryID;
/**
* This attribute represents whether the attribute categoryID has been modified since being read from the database.
*/
private boolean categoryIDModified = false;
/**
* This attribute maps to the column Name in the Category table.
*/
private String name;
/**
* This attribute represents whether the attribute name has been modified since being read from the database.
*/
private boolean nameModified = false;
/**
* This attribute maps to the column Description in the Category table.
*/
private String description;
/**
* This attribute represents whether the attribute description has been modified since being read from the database.
*/
private boolean descriptionModified = false;
/**
* Method 'Category'
*
*/
public Category()
{
}
/**
* Method 'getCategoryID'
*
* @return int
*/
public int getCategoryID()
{
return categoryID;
}
/**
* Method 'setCategoryID'
*
* @param categoryID
*/
public void setCategoryID(int categoryID)
{
this.categoryID = categoryID;
setCategoryIDModified( true );
}
/**
* Sets the value of categoryIDModified
*/
public void setCategoryIDModified(boolean categoryIDModified)
{
this.categoryIDModified = categoryIDModified;
}
/**
* Gets the value of categoryIDModified
*/
public boolean isCategoryIDModified()
{
return categoryIDModified;
}
/**
* Method 'getName'
*
* @return String
*/
public String getName()
{
return name;
}
/**
* Method 'setName'
*
* @param name
*/
public void setName(String name)
{
this.name = name;
setNameModified( true );
}
/**
* Sets the value of nameModified
*/
public void setNameModified(boolean nameModified)
{
this.nameModified = nameModified;
}
/**
* Gets the value of nameModified
*/
public boolean isNameModified()
{
return nameModified;
}
/**
* Method 'getDescription'
*
* @return String
*/
public String getDescription()
{
return description;
}
/**
* Method 'setDescription'
*
* @param description
*/
public void setDescription(String description)
{
this.description = description;
setDescriptionModified( true );
}
/**
* Sets the value of descriptionModified
*/
public void setDescriptionModified(boolean descriptionModified)
{
this.descriptionModified = descriptionModified;
}
/**
* Gets the value of descriptionModified
*/
public boolean isDescriptionModified()
{
return descriptionModified;
}
/**
* Method 'equals'
*
* @param _other
* @return boolean
*/
public boolean equals(Object _other)
{
if (_other == null) {
return false;
}
if (_other == this) {
return true;
}
if (!(_other instanceof Category)) {
return false;
}
final Category _cast = (Category) _other;
if (categoryID != _cast.categoryID) {
return false;
}
if (categoryIDModified != _cast.categoryIDModified) {
return false;
}
if (name == null ? _cast.name != name : !name.equals( _cast.name )) {
return false;
}
if (nameModified != _cast.nameModified) {
return false;
}
if (description == null ? _cast.description != description : !description.equals( _cast.description )) {
return false;
}
if (descriptionModified != _cast.descriptionModified) {
return false;
}
return true;
}
/**
* Method 'hashCode'
*
* @return int
*/
public int hashCode()
{
int _hashCode = 0;
_hashCode = 29 * _hashCode + categoryID;
_hashCode = 29 * _hashCode + (categoryIDModified ? 1 : 0);
if (name != null) {
_hashCode = 29 * _hashCode + name.hashCode();
}
_hashCode = 29 * _hashCode + (nameModified ? 1 : 0);
if (description != null) {
_hashCode = 29 * _hashCode + description.hashCode();
}
_hashCode = 29 * _hashCode + (descriptionModified ? 1 : 0);
return _hashCode;
}
/**
* Method 'createPk'
*
* @return CategoryPk
*/
public CategoryPk createPk()
{
return new CategoryPk(categoryID);
}
/**
* Method 'toString'
*
* @return String
*/
public String toString()
{
StringBuffer ret = new StringBuffer();
ret.append( "cn.wanfeng.myblog.dto.Category: " );
ret.append( "categoryID='" + categoryID + "'" );
ret.append( ", name='" + name + "'" );
ret.append( ", description='" + description + "'" );
return ret.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -