TbCfgMBeanDao.java
612 Bytes
package com.sitech.database.dao;
import java.sql.SQLException;
import java.util.List;
import com.sitech.database.domain.TbCfgMBean;
public class TbCfgMBeanDao extends BaseDao{
@SuppressWarnings("unchecked")
public List<TbCfgMBean> queryAllEnableMBean(){
try {
return sqlmapClient.queryForList("queryAllEnableMBean", null);
} catch (SQLException e) {
error.error("Exception while queryAllEnableMBean()", e);
return null;
}
}
public static void main(String[] args) {
List<TbCfgMBean> mbeanList = new TbCfgMBeanDao().queryAllEnableMBean();
System.out.println(mbeanList.size());
}
}