📄 albumtype.java
字号:
package huitong.javabean;
import java.sql.*;
public class AlbumType
{
private int albumTypeId;
private String albumName;
public static AlbumType getAlbumType(ResultSet result)
{
if (result == null )
{
return null;
}
try
{
AlbumType type = new AlbumType();
type.setAlbumTypeId(result.getInt("albumTypeId"));
type.setAlbumName(result.getString("albumName"));
return type;
}
catch (SQLException e)
{
e.printStackTrace();
}
return null;
}
public String getAlbumName() {
return albumName;
}
public void setAlbumName(String albumName) {
this.albumName = albumName;
}
public int getAlbumTypeId() {
return albumTypeId;
}
public void setAlbumTypeId(int albumTypeId) {
this.albumTypeId = albumTypeId;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -