f0e3f1df399d001b14c3fa48fd947afa
来自「用jsf实现cd商店的程序」· 代码 · 共 56 行
TXT
56 行
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 SelectItem[] items;
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 SelectItem[] getTypes()
{
try
{
List temp=getCdTypeService().findAllTypes();
for(Object obj:)
items= CDTypeBean.
return items;
}
catch(MyException e)
{
e.printStackTrace();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?