photo.java

来自「JDBC数据库高级编程源代码」· Java 代码 · 共 92 行

JAVA
92
字号
package jdbcbook.photo;

import jdbcbook.pub.util.StringUtil;

import java.sql.Timestamp;

/**
 * 照片对象
 */
public class Photo 
{
	// 主键
	private int photoid;
	// 照片的名称
	private String title;
	// 照片的说明
	private String content;
	// 发布时间
	private Timestamp pubdate;
	// 所属分类
	private int categoryid;
	// 照片名
	private String filename;
	// 照片类型
	private String filetype;


	public void setPhotoid( int photoid )
	{
		this.photoid = photoid;
	}
	public int getPhotoid( )
	{
		return this.photoid;
	}

	public void setTitle( String title )
	{
		this.title = StringUtil.trim( title );
	}
	public String getTitle( )
	{
		return this.title;
	}

	public void setContent( String content )
	{
		this.content = content;
	}
	public String getContent( )
	{
		return this.content;
	}

	public void setPubdate( Timestamp pubdate )
	{
		this.pubdate = pubdate;
	}
	public Timestamp getPubdate( )
	{
		return this.pubdate;
	}

	public void setCategoryid( int categoryid )
	{
		this.categoryid = categoryid;
	}
	public int getCategoryid( )
	{
		return this.categoryid;
	}

	public void setFilename( String filename )
	{
		this.filename = filename;
	}
	public String getFilename( )
	{
		return this.filename;
	}

	public void setFiletype( String filetype )
	{
		this.filetype = filetype;
	}
	public String getFiletype( )
	{
		return this.filetype;
	}

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?