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

📄 downlicensemngimpl.java

📁 JEECMS是JavaEE版网站管理系统(Java Enterprise Edition Content Manage System)的简称。 基于java技术开发
💻 JAVA
字号:
package com.jeecms.download.manager.impl;

import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jeecms.core.JeeCoreManagerImpl;
import com.jeecms.download.dao.DownLicenseDao;
import com.jeecms.download.entity.DownLicense;
import com.jeecms.download.manager.DownLicenseMng;
import com.ponyjava.common.hibernate3.Updater;

@Service
@Transactional
public class DownLicenseMngImpl extends JeeCoreManagerImpl<DownLicense>
		implements DownLicenseMng {
	public List<DownLicense> getList(Long webId, boolean all) {
		return getDao().getList(webId, all);
	}

	public void updatePriority(Long[] wids, int[] prioritys) {
		for (int i = 0; i < wids.length; i++) {
			DownLicense entity = findById(wids[i]);
			entity.setPriority(prioritys[i]);
		}
	}

	@Override
	public Object updateByUpdater(Updater updater) {
		DownLicense license = (DownLicense) super.updateByUpdater(updater);
		return license;
	}

	@Override
	public DownLicense save(DownLicense license) {
		super.save(license);
		return license;
	}

	@Override
	public DownLicense findById(Serializable id) {
		DownLicense license = super.findById(id);
		return license;
	}

	@Override
	public DownLicense deleteById(Serializable id) {
		DownLicense license = super.deleteById(id);
		return license;
	}

	@Autowired
	public void setDao(DownLicenseDao dao) {
		super.setDao(dao);
	}

	public DownLicenseDao getDao() {
		return (DownLicenseDao) super.getDao();
	}

}

⌨️ 快捷键说明

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