📄 entriespk.java
字号:
/*
*
* 开发时间:2004-08-20 at 05:40:07
*
* 作者:曹广鑫
*
* 网站:www.helpsoft.org 电子邮件:support@helpsoft.org
*/
package org.helpsoft.blog.dto;
import java.io.Serializable;
/**
* This class represents the primary key of the entries table.
*/
public class EntriesPk implements Serializable
{
private int entryid;
/**
* This attribute represents whether the primitive attribute entryid is null.
*/
private boolean entryidNull;
/**
* Sets the value of entryid
*/
public void setEntryid(int entryid)
{
this.entryid = entryid;
}
/**
* Gets the value of entryid
*/
public int getEntryid()
{
return entryid;
}
/**
* Method 'EntriesPk'
*
*/
public EntriesPk()
{
}
/**
* Method 'EntriesPk'
*
* @param entryid
*/
public EntriesPk(final int entryid)
{
this.entryid = entryid;
}
/**
* Sets the value of entryidNull
*/
public void setEntryidNull(boolean entryidNull)
{
this.entryidNull = entryidNull;
}
/**
* Gets the value of entryidNull
*/
public boolean isEntryidNull()
{
return entryidNull;
}
/**
* Method 'equals'
*
* @param _other
* @return boolean
*/
public boolean equals(Object _other)
{
if (_other == null) {
return false;
}
if (_other == this) {
return true;
}
if (!(_other instanceof EntriesPk)) {
return false;
}
final EntriesPk _cast = (EntriesPk) _other;
if (entryid != _cast.entryid) {
return false;
}
if (entryidNull != _cast.entryidNull) {
return false;
}
return true;
}
/**
* Method 'hashCode'
*
* @return int
*/
public int hashCode()
{
int _hashCode = 0;
_hashCode = 29 * _hashCode + entryid;
_hashCode = 29 * _hashCode + (entryidNull ? 1 : 0);
return _hashCode;
}
/**
* Method 'toString'
*
* @return String
*/
public String toString()
{
StringBuffer ret = new StringBuffer();
ret.append( "org.helpsoft.blog.dto.EntriesPk: " );
ret.append( "entryid='" + entryid + "'" );
return ret.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -