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

📄 bbcodesservice.java

📁 论坛软件系统亦称电子公告板(BBS)系统
💻 JAVA
字号:
package cn.jsprun.service.posts;

import java.util.List;

import cn.jsprun.dao.posts.BbcodesDao;
import cn.jsprun.domain.Bbcodes;
import cn.jsprun.utils.BeanFactory;
public class BbcodesService {
	public List<Bbcodes> findByAll() {
		return ((BbcodesDao) BeanFactory.getBean("bbcodesDao")).findByAll();
	}
	public Integer deleteArray(String[] ids) {
		if (ids != null) {
			return ((BbcodesDao) BeanFactory.getBean("bbcodesDao")).deleteArray(ids);
		}
		return -1;
	}
	public Boolean saveBbcodes(Bbcodes bbcodes) {
		if (bbcodes != null) {
			return ((BbcodesDao) BeanFactory.getBean("bbcodesDao")).saveBbcodes(bbcodes);
		}
		return false;
	}
	public Integer updateAvailableArray(List<Bbcodes> list) {
		if (list != null && list.size() > 0){
			return ((BbcodesDao) BeanFactory.getBean("bbcodesDao")).updateAvailableArray(list);
		}
		return -1;
	}
	public Integer updateIconArray(List<Bbcodes> list) {
		if (list != null && list.size() > 0){
			return ((BbcodesDao) BeanFactory.getBean("bbcodesDao")).updateIconArray(list);
		}
		return -1;
	}
	public Integer updateTagArray(List<Bbcodes> list) {
		if (list != null && list.size() > 0){
			return ((BbcodesDao) BeanFactory.getBean("bbcodesDao")).updateTagArray(list);
		}
		return -1;
	}
	public Bbcodes findByID(Integer id) {
		return ((BbcodesDao) BeanFactory.getBean("bbcodesDao")).findByID(id);
	}
	public boolean updateBbcodes(Bbcodes b) {
		if (b != null) {
			return ((BbcodesDao) BeanFactory.getBean("bbcodesDao")).updateBbcodes(b);
		}
		return false;
	}
}

⌨️ 快捷键说明

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