📄 blog.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 Blog implements Serializable
{
/**
* This attribute maps to the column BlogID in the Blog table.
*/
private int blogID;
/**
* This attribute represents whether the attribute blogID has been modified since being read from the database.
*/
private boolean blogIDModified = false;
/**
* This attribute maps to the column Username in the Blog table.
*/
private String username;
/**
* This attribute represents whether the attribute username has been modified since being read from the database.
*/
private boolean usernameModified = false;
/**
* This attribute maps to the column Password in the Blog table.
*/
private String password;
/**
* This attribute represents whether the attribute password has been modified since being read from the database.
*/
private boolean passwordModified = false;
/**
* This attribute maps to the column Subject in the Blog table.
*/
private String subject;
/**
* This attribute represents whether the attribute subject has been modified since being read from the database.
*/
private boolean subjectModified = false;
/**
* This attribute maps to the column Description in the Blog table.
*/
private String description;
/**
* This attribute represents whether the attribute description has been modified since being read from the database.
*/
private boolean descriptionModified = false;
/**
* This attribute maps to the column Email in the Blog table.
*/
private String email;
/**
* This attribute represents whether the attribute email has been modified since being read from the database.
*/
private boolean emailModified = false;
/**
* Method 'Blog'
*
*/
public Blog()
{
}
/**
* Method 'getBlogID'
*
* @return int
*/
public int getBlogID()
{
return blogID;
}
/**
* Method 'setBlogID'
*
* @param blogID
*/
public void setBlogID(int blogID)
{
this.blogID = blogID;
setBlogIDModified( true );
}
/**
* Sets the value of blogIDModified
*/
public void setBlogIDModified(boolean blogIDModified)
{
this.blogIDModified = blogIDModified;
}
/**
* Gets the value of blogIDModified
*/
public boolean isBlogIDModified()
{
return blogIDModified;
}
/**
* Method 'getUsername'
*
* @return String
*/
public String getUsername()
{
return username;
}
/**
* Method 'setUsername'
*
* @param username
*/
public void setUsername(String username)
{
this.username = username;
setUsernameModified( true );
}
/**
* Sets the value of usernameModified
*/
public void setUsernameModified(boolean usernameModified)
{
this.usernameModified = usernameModified;
}
/**
* Gets the value of usernameModified
*/
public boolean isUsernameModified()
{
return usernameModified;
}
/**
* Method 'getPassword'
*
* @return String
*/
public String getPassword()
{
return password;
}
/**
* Method 'setPassword'
*
* @param password
*/
public void setPassword(String password)
{
this.password = password;
setPasswordModified( true );
}
/**
* Sets the value of passwordModified
*/
public void setPasswordModified(boolean passwordModified)
{
this.passwordModified = passwordModified;
}
/**
* Gets the value of passwordModified
*/
public boolean isPasswordModified()
{
return passwordModified;
}
/**
* Method 'getSubject'
*
* @return String
*/
public String getSubject()
{
return subject;
}
/**
* Method 'setSubject'
*
* @param subject
*/
public void setSubject(String subject)
{
this.subject = subject;
setSubjectModified( true );
}
/**
* Sets the value of subjectModified
*/
public void setSubjectModified(boolean subjectModified)
{
this.subjectModified = subjectModified;
}
/**
* Gets the value of subjectModified
*/
public boolean isSubjectModified()
{
return subjectModified;
}
/**
* 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 'getEmail'
*
* @return String
*/
public String getEmail()
{
return email;
}
/**
* Method 'setEmail'
*
* @param email
*/
public void setEmail(String email)
{
this.email = email;
setEmailModified( true );
}
/**
* Sets the value of emailModified
*/
public void setEmailModified(boolean emailModified)
{
this.emailModified = emailModified;
}
/**
* Gets the value of emailModified
*/
public boolean isEmailModified()
{
return emailModified;
}
/**
* Method 'equals'
*
* @param _other
* @return boolean
*/
public boolean equals(Object _other)
{
if (_other == null) {
return false;
}
if (_other == this) {
return true;
}
if (!(_other instanceof Blog)) {
return false;
}
final Blog _cast = (Blog) _other;
if (blogID != _cast.blogID) {
return false;
}
if (blogIDModified != _cast.blogIDModified) {
return false;
}
if (username == null ? _cast.username != username : !username.equals( _cast.username )) {
return false;
}
if (usernameModified != _cast.usernameModified) {
return false;
}
if (password == null ? _cast.password != password : !password.equals( _cast.password )) {
return false;
}
if (passwordModified != _cast.passwordModified) {
return false;
}
if (subject == null ? _cast.subject != subject : !subject.equals( _cast.subject )) {
return false;
}
if (subjectModified != _cast.subjectModified) {
return false;
}
if (description == null ? _cast.description != description : !description.equals( _cast.description )) {
return false;
}
if (descriptionModified != _cast.descriptionModified) {
return false;
}
if (email == null ? _cast.email != email : !email.equals( _cast.email )) {
return false;
}
if (emailModified != _cast.emailModified) {
return false;
}
return true;
}
/**
* Method 'hashCode'
*
* @return int
*/
public int hashCode()
{
int _hashCode = 0;
_hashCode = 29 * _hashCode + blogID;
_hashCode = 29 * _hashCode + (blogIDModified ? 1 : 0);
if (username != null) {
_hashCode = 29 * _hashCode + username.hashCode();
}
_hashCode = 29 * _hashCode + (usernameModified ? 1 : 0);
if (password != null) {
_hashCode = 29 * _hashCode + password.hashCode();
}
_hashCode = 29 * _hashCode + (passwordModified ? 1 : 0);
if (subject != null) {
_hashCode = 29 * _hashCode + subject.hashCode();
}
_hashCode = 29 * _hashCode + (subjectModified ? 1 : 0);
if (description != null) {
_hashCode = 29 * _hashCode + description.hashCode();
}
_hashCode = 29 * _hashCode + (descriptionModified ? 1 : 0);
if (email != null) {
_hashCode = 29 * _hashCode + email.hashCode();
}
_hashCode = 29 * _hashCode + (emailModified ? 1 : 0);
return _hashCode;
}
/**
* Method 'createPk'
*
* @return BlogPk
*/
public BlogPk createPk()
{
return new BlogPk(blogID);
}
/**
* Method 'toString'
*
* @return String
*/
public String toString()
{
StringBuffer ret = new StringBuffer();
ret.append( "cn.wanfeng.myblog.dto.Blog: " );
ret.append( "blogID='" + blogID + "'" );
ret.append( ", username='" + username + "'" );
ret.append( ", password='" + password + "'" );
ret.append( ", subject='" + subject + "'" );
ret.append( ", description='" + description + "'" );
ret.append( ", email='" + email + "'" );
return ret.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -