90e05580399d001b14c3fa48fd947afa
来自「用jsf实现cd商店的程序」· 代码 · 共 57 行
TXT
57 行
package com.tangjun.web.vo;
import java.util.List;
import javax.faces.model.SelectItem;
import com.tangjun.model.exception.MyException;
import com.tangjun.web.pojo.CDType;
public class CDTypeBean extends CDTypeBaseBean
{
private CDType cdType;
private List types;
private static SelectItem items;
static
{
try
{
items this.getCdTypeService().findAllTypes();
}
catch(MyException e)
{
e.printStackTrace();
return null;
}
}
public CDType getCdType()
{
return cdType;
}
public void setCdType(CDType cdType)
{
this.cdType = cdType;
}
public CDType findById(Integer id)
{
try
{
return this.getCdTypeService().findById(id);
}
catch(MyException e)
{
e.printStackTrace();
return null;
}
}
public List getTypes()
{
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?