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

📄 actiondao.java

📁 很全面的hrm管理。提供通用的企业人力资源管理。
💻 JAVA
字号:
package org.self.hrm.persistence.hibernate;

import java.util.List;

import org.self.hrm.model.Action;
import org.self.hrm.persistence.IActionDAO;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

public class ActionDAO extends HibernateDaoSupport implements IActionDAO {

	public void add(Action action) {

	}

	public void add(List<Action> actions) {

	}

	public void delete(Action action) {

	}

	public void delete(List<Action> actions) {

	}

	public void delete(String[] ids) {

	}

	public List<Action> findByExample(Action action) {

		return null;
	}

	public Action findById(String id) {

		return null;
	}

	public List<Action> findByPropery(String propertyName, Object value) {

		return null;
	}

	public List<Action> findByQL(String ql) {

		return null;
	}

	public List<Action> list() {

		return null;
	}

	public void saveOrupdate(Action action) {

	}

	public void saveOrupdate(List<Action> actions) {

	}

	public void update(Action action) {

	}

	public void update(List<Action> actions) {

	}

	@SuppressWarnings("unchecked")
	public List<Action> getPageAllowed(String page, String userId) {
		String hql = " from Action a where a.id in (" ;
		hql += " select au.actionId from AuthView au where au.actionPage = '"+page.trim() +"' and au.userId = '" +userId.trim()+"'" ;
		hql += " ) ";
		return getHibernateTemplate().find(hql);
	}

}

⌨️ 快捷键说明

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