⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 userfacedaohibernateimpl.java

📁 新技术论坛系统 v1.0 前后台管理的初始用户名 : admin 密码 123456
💻 JAVA
字号:
package com.ntsky.bbs.dao.hibernate;

import java.util.List;

import com.ntsky.bbs.dao.UserFaceDAO;
import com.ntsky.bbs.domain.Admin;
import com.ntsky.bbs.exception.DAOException;

/**
 * 用户表情Hibernate数据处理实现 
 * 
 * @author ntsky
 * @link www.ntsky.com
 * 
 * @version $Revision: 1.1 $ $Date: 2006/06/04 17:12:55 $
 */
public class UserFaceDAOHibernateImpl extends BaseDAOHibernateImpl implements UserFaceDAO {

	/**
	 * 查询用户头像类别集合
	 * @return List 用户头像集合
	 */
	public List findFaceTypes() throws DAOException {
		try{
			return super.find("from UserFace as f group by f.type");
		}
		catch(DAOException daoException){
			throw new DAOException("根据类别列表表情发生错误.");
		}	
	}

	/**
	 * 根据类别查询用户头像集合
	 * 
	 * @param type 头像类别
	 * @return List 用户头像集合
	 */
	public List findFaces(int type) throws DAOException {
		try{
			return super.find("from UserFace as f where f.type="+type+"");
		}
		catch(DAOException daoException){
			throw new DAOException("根据类别列表表情发生错误.");
		}
	}

	
}

⌨️ 快捷键说明

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