📄 configboimpl.java
字号:
package com.lovo.bo;
import java.sql.SQLException;
import java.util.List;
import com.lovo.factory.DAOFactory;
import com.lovo.po.ConfigPO;
public class ConfigBOImpl implements ConfigBO {
public void delete(int id) throws SQLException {
DAOFactory.getConfigDAOInstance().delete(id);
}
public void insert(ConfigPO config) throws SQLException {
DAOFactory.getConfigDAOInstance().insert(config);
}
public List<ConfigPO> query() throws SQLException {
return DAOFactory.getConfigDAOInstance().query();
}
public int queryVlaueByPurpose(String purpose) throws SQLException {
return DAOFactory.getConfigDAOInstance().queryVlaueByPurpose(purpose);
}
public void update(ConfigPO config) throws SQLException {
DAOFactory.getConfigDAOInstance().update(config);
}
public ConfigPO queryById(int id) throws SQLException {
return DAOFactory.getConfigDAOInstance().queryById(id);
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -