slaconfigtsbo.java

来自「sla性能采集」· Java 代码 · 共 137 行

JAVA
137
字号
package com.asiainfo.ainx.slaconf.bo;

import java.util.ArrayList;

import com.asiainfo.ainx.slaconf.dao.SlaConfigTsDAO;

public class SlaConfigTsBO {
	/**
	 * @description: AutoCode 根据id们获取设备sla表单纪录的列表

	 * 
	 * 
	 * @return
	 * @throws java.lang.Exception
	 */
	public ArrayList getNodeResInfoById(String[] nodeid) throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		ArrayList col = nodedao.getNodeSlaInfoByNodeids(nodeid);
		return col;
	}

	/**
	 * 获取所有设备sla表单纪录的列表

	 * 
	 * @return
	 * @throws Exception
	 */
	public ArrayList getAllNodeResInfo(String userid) throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		ArrayList col = nodedao.getAllNodeSlaInfo(userid);
		return col;
	}
	/**
	 * 根据linkid集合,获取sla表单记录
	 * @param linkid
	 * @return
	 * @throws Exception
	 */
	public ArrayList getLinkResInfoById(String[] linkid) throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		ArrayList col = nodedao.getLinkASlaInfoByLink(linkid);
		return col;
	}
	public ArrayList getAllLinkResInfo(String userId) throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		ArrayList col = nodedao.getALLLinkSlaInfo(userId);
		return col;
	}
	public ArrayList getAllLinkName() throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		ArrayList col = nodedao.getAllLinkName();
		return col;
	}
	public ArrayList getAllNodeName() throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		ArrayList col = nodedao.getAllNodeName();
		return col;
	}
	public int getSlaCountForLink() throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		int count = nodedao.getSlaCountForLink();
		return count;
	}
	public int getSlaCountForNode() throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		int count = nodedao.getSlaCountForNode();
		return count;
	}
	public int updateSlaItems(String[] options,String type) throws Exception {

		/**
		 * 创建 DAO 对象
		 */
		SlaConfigTsDAO nodedao = new SlaConfigTsDAO();
		/**
		 * 获取表单记录列表
		 */
		int count = nodedao.updateSlaItems(options,type);
		return count;
	}
}

⌨️ 快捷键说明

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