📄 picture.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 Picture implements Serializable
{
/**
* This attribute maps to the column PictureID in the Picture table.
*/
private int pictureID;
/**
* This attribute represents whether the attribute pictureID has been modified since being read from the database.
*/
private boolean pictureIDModified = false;
/**
* This attribute maps to the column CategoryID in the Picture 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 Subject in the Picture 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 FileName in the Picture table.
*/
private String fileName;
/**
* This attribute represents whether the attribute fileName has been modified since being read from the database.
*/
private boolean fileNameModified = false;
/**
* Method 'Picture'
*
*/
public Picture()
{
}
/**
* Method 'getPictureID'
*
* @return int
*/
public int getPictureID()
{
return pictureID;
}
/**
* Method 'setPictureID'
*
* @param pictureID
*/
public void setPictureID(int pictureID)
{
this.pictureID = pictureID;
setPictureIDModified( true );
}
/**
* Sets the value of pictureIDModified
*/
public void setPictureIDModified(boolean pictureIDModified)
{
this.pictureIDModified = pictureIDModified;
}
/**
* Gets the value of pictureIDModified
*/
public boolean isPictureIDModified()
{
return pictureIDModified;
}
/**
* 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 '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 'getFileName'
*
* @return String
*/
public String getFileName()
{
return fileName;
}
/**
* Method 'setFileName'
*
* @param fileName
*/
public void setFileName(String fileName)
{
this.fileName = fileName;
setFileNameModified( true );
}
/**
* Sets the value of fileNameModified
*/
public void setFileNameModified(boolean fileNameModified)
{
this.fileNameModified = fileNameModified;
}
/**
* Gets the value of fileNameModified
*/
public boolean isFileNameModified()
{
return fileNameModified;
}
/**
* Method 'equals'
*
* @param _other
* @return boolean
*/
public boolean equals(Object _other)
{
if (_other == null) {
return false;
}
if (_other == this) {
return true;
}
if (!(_other instanceof Picture)) {
return false;
}
final Picture _cast = (Picture) _other;
if (pictureID != _cast.pictureID) {
return false;
}
if (pictureIDModified != _cast.pictureIDModified) {
return false;
}
if (categoryID != _cast.categoryID) {
return false;
}
if (categoryIDNull != _cast.categoryIDNull) {
return false;
}
if (categoryIDModified != _cast.categoryIDModified) {
return false;
}
if (subject == null ? _cast.subject != subject : !subject.equals( _cast.subject )) {
return false;
}
if (subjectModified != _cast.subjectModified) {
return false;
}
if (fileName == null ? _cast.fileName != fileName : !fileName.equals( _cast.fileName )) {
return false;
}
if (fileNameModified != _cast.fileNameModified) {
return false;
}
return true;
}
/**
* Method 'hashCode'
*
* @return int
*/
public int hashCode()
{
int _hashCode = 0;
_hashCode = 29 * _hashCode + pictureID;
_hashCode = 29 * _hashCode + (pictureIDModified ? 1 : 0);
_hashCode = 29 * _hashCode + categoryID;
_hashCode = 29 * _hashCode + (categoryIDNull ? 1 : 0);
_hashCode = 29 * _hashCode + (categoryIDModified ? 1 : 0);
if (subject != null) {
_hashCode = 29 * _hashCode + subject.hashCode();
}
_hashCode = 29 * _hashCode + (subjectModified ? 1 : 0);
if (fileName != null) {
_hashCode = 29 * _hashCode + fileName.hashCode();
}
_hashCode = 29 * _hashCode + (fileNameModified ? 1 : 0);
return _hashCode;
}
/**
* Method 'createPk'
*
* @return PicturePk
*/
public PicturePk createPk()
{
return new PicturePk(pictureID);
}
/**
* Method 'toString'
*
* @return String
*/
public String toString()
{
StringBuffer ret = new StringBuffer();
ret.append( "cn.wanfeng.myblog.dto.Picture: " );
ret.append( "pictureID='" + pictureID + "'" );
ret.append( ", categoryID='" + categoryID + "'" );
ret.append( ", subject='" + subject + "'" );
ret.append( ", fileName='" + fileName + "'" );
return ret.toString();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -