600d8036399d001b14c3fa48fd947afa

来自「用jsf实现cd商店的程序」· 代码 · 共 49 行

TXT
49
字号
package com.tangjun.web.vo;

import java.util.List;

import com.tangjun.model.exception.MyException;
import com.tangjun.web.pojo.CDType;

public class CDTypeBean extends CDTypeBaseBean
{
	private CDType cdType;
	private String[] types;
	

	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()
	{
		try
		{
			return this.getCdTypeService().findAllTypes();
		}
		catch(MyException e)
		{
			e.printStackTrace();
		}
	}
}

⌨️ 快捷键说明

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