📄 photo.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -