📄 href.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 Href implements Serializable
{
/**
* This attribute maps to the column HrefID in the Href table.
*/
private int hrefID;
/**
* This attribute represents whether the attribute hrefID has been modified since being read from the database.
*/
private boolean hrefIDModified = false;
/**
* This attribute maps to the column CategoryID in the Href table.
*/
private int categoryID;
/**
* This attribute represents whether the primitive attribute categoryID is null.
*/
private boolean categoryIDNull = true;
/**
* 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 Href 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 Url in the Href table.
*/
private String url;
/**
* This attribute represents whether the attribute url has been modified since being read from the database.
*/
private boolean urlModified = false;
/**
* Method 'Href'
*
*/
public Href()
{
}
/**
* Method 'getHrefID'
*
* @return int
*/
public int getHrefID()
{
return hrefID;
}
/**
* Method 'setHrefID'
*
* @param hrefID
*/
public void setHrefID(int hrefID)
{
this.hrefID = hrefID;
setHrefIDModified( true );
}
/**
* Sets the value of hrefIDModified
*/
public void setHrefIDModified(boolean hrefIDModified)
{
this.hrefIDModified = hrefIDModified;
}
/**
* Gets the value of hrefIDModified
*/
public boolean isHrefIDModified()
{
return hrefIDModified;
}
/**
* Method 'getCategoryID'
*
* @return int
*/
public int getCategoryID()
{
return categoryID;
}
/**
* Method 'setCategoryID'
*
* @param categoryID
*/
public void setCategoryID(int categoryID)
{
this.categoryID = categoryID;
setCategoryIDNull( false );
setCategoryIDModified( true );
}
/**
* Sets the value of categoryIDNull
*/
public void setCategoryIDNull(boolean categoryIDNull)
{
this.categoryIDNull = categoryIDNull;
}
/**
* Gets the value of categoryIDNull
*/
public boolean isCategoryIDNull()
{
return categoryIDNull;
}
/**
* 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 'getUrl'
*
* @return String
*/
public String getUrl()
{
return url;
}
/**
* Method 'setUrl'
*
* @param url
*/
public void setUrl(String url)
{
this.url = url;
setUrlModified( true );
}
/**
* Sets the value of urlModified
*/
public void setUrlModified(boolean urlModified)
{
this.urlModified = urlModified;
}
/**
* Gets the value of urlModified
*/
public boolean isUrlModified()
{
return urlModified;
}
/**
* Method 'equals'
*
* @param _other
* @return boolean
*/
public boolean equals(Object _other)
{
if (_other == null) {
return false;
}
if (_other == this) {
return true;
}
if (!(_other instanceof Href)) {
return false;
}
final Href _cast = (Href) _other;
if (hrefID != _cast.hrefID) {
return false;
}
if (hrefIDModified != _cast.hrefIDModified) {
return false;
}
if (categoryID != _cast.categoryID) {
return false;
}
if (categoryIDNull != _cast.categoryIDNull) {
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 (url == null ? _cast.url != url : !url.equals( _cast.url )) {
return false;
}
if (urlModified != _cast.urlModified) {
return false;
}
return true;
}
/**
* Method 'hashCode'
*
* @return int
*/
public int hashCode()
{
int _hashCode = 0;
_hashCode = 29 * _hashCode + hrefID;
_hashCode = 29 * _hashCode + (hrefIDModified ? 1 : 0);
_hashCode = 29 * _hashCode + categoryID;
_hashCode = 29 * _hashCode + (categoryIDNull ? 1 : 0);
_hashCode = 29 * _hashCode + (categoryIDModified ? 1 : 0);
if (name != null) {
_hashCode = 29 * _hashCode + name.hashCode();
}
_hashCode = 29 * _hashCode + (nameModified ? 1 : 0);
if (url != null) {
_hashCode = 29 * _hashCode + url.hashCode();
}
_hashCode = 29 * _hashCode + (urlModified ? 1 : 0);
return _hashCode;
}
/**
* Method 'createPk'
*
* @return HrefPk
*/
public HrefPk createPk()
{
return new HrefPk(hrefID);
}
/**
* Method 'toString'
*
* @return String
*/
public String toString()
{
StringBuffer ret = new StringBuffer();
ret.append( "cn.wanfeng.myblog.dto.Href: " );
ret.append( "hrefID='" + hrefID + "'" );
ret.append( ", categoryID='" + categoryID + "'" );
ret.append( ", name='" + name + "'" );
ret.append( ", url='" + url + "'" );
return ret.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -