titletreeserviceimpl.java

来自「一个关于短信的java程序,非常适合java程序员,谢谢大家」· Java 代码 · 共 44 行

JAVA
44
字号
package com.chinatech.cpmanage.service.impl;

import java.util.List;

import com.chinatech.cpmanage.common.BusinessException;
import com.chinatech.cpmanage.common.DAOException;
import com.chinatech.cpmanage.dao.TitleTreeDAO;
import com.chinatech.cpmanage.hibernate.NyxxwTitletree;
import com.chinatech.cpmanage.service.TitleTreeService;

public class TitleTreeServiceImpl implements TitleTreeService {
    private TitleTreeDAO titleTreeDAO;
	public List getTitlesByParentId(String parentId) throws BusinessException {
		// TODO 自动生成方法存根
		try{
			
			return titleTreeDAO.getTitlesByParentId(parentId);
		}catch(DAOException e){
			throw new BusinessException("getTitlesByParentId方法出错!" + e.getMessage());
		}
		
	}
	public List getAllParenttitle() throws BusinessException {
		// TODO 自动生成方法存根
		try{
			 
			return titleTreeDAO.getAllParenttitle();
		}catch(DAOException e){
			throw new BusinessException("getTitlesByParentId方法出错!" + e.getMessage());
		}
		
	}
	public void insertTitleTree(NyxxwTitletree titleTree)
			throws BusinessException {
		// TODO 自动生成方法存根

	}
	public void setTitleTreeDAO(TitleTreeDAO titleTreeDAO){
		this.titleTreeDAO = titleTreeDAO;
		
	}

}

⌨️ 快捷键说明

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