资源简介

33753135user_role_privilege_system_source

资源截图

代码片段和文件信息

package cn.itcast.dao;

import java.util.List;

import org.apache.commons.dbutils.QueryRunner;
import org.apache.commons.dbutils.handlers.BeanHandler;
import org.apache.commons.dbutils.handlers.BeanListHandler;

import cn.itcast.domain.Privilege;
import cn.itcast.utils.JdbcUtils;

public class PrivilegeDao {

public void add(Privilege p){
try{
QueryRunner runner = new QueryRunner(JdbcUtils.getDataSource());
String sql = “insert into privilege(idnamedescription) values(???)“;
object params[] = {p.getId()p.getName()p.getDescription()};
runner.update(sql params);
}catch (Exception e) {
throw new RuntimeException(e);
}
}

public Privilege find(String id){
try{
QueryRunner runner = new QueryRunner(JdbcUtils.getDataSource());
St

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-11-29 22:13  user_role_privilege_system_source\
     文件        1051  2013-11-14 10:01  user_role_privilege_system_source\.classpath
     文件         288  2013-11-14 10:01  user_role_privilege_system_source\.mymetadata
     文件        1223  2013-11-14 10:01  user_role_privilege_system_source\.project
     目录           0  2015-11-29 22:13  user_role_privilege_system_source\src\
     文件        1008  2013-11-14 10:01  user_role_privilege_system_source\src\c3p0-config.xml
     目录           0  2015-11-29 22:13  user_role_privilege_system_source\src\cn\
     目录           0  2015-11-29 22:13  user_role_privilege_system_source\src\cn\itcast\
     目录           0  2015-11-29 22:13  user_role_privilege_system_source\src\cn\itcast\dao\
     文件        1299  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\dao\PrivilegeDao.java
     文件        2919  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\dao\ResourceDao.java
     文件        2573  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\dao\RoleDao.java
     文件        2887  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\dao\UserDao.java
     目录           0  2015-11-29 22:13  user_role_privilege_system_source\src\cn\itcast\domain\
     文件         276  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\domain\Generic.java
     文件        1513  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\domain\Privilege.java
     文件         737  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\domain\Resource.java
     文件         795  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\domain\Role.java
     文件         919  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\domain\User.java
     目录           0  2015-11-29 22:13  user_role_privilege_system_source\src\cn\itcast\service\
     文件        3634  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\service\SecurityService.java
     目录           0  2015-11-29 22:13  user_role_privilege_system_source\src\cn\itcast\utils\
     文件         295  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\utils\JdbcUtils.java
     文件         482  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\utils\WebUtils.java
     目录           0  2015-11-29 22:13  user_role_privilege_system_source\src\cn\itcast\web\
     目录           0  2015-11-29 22:13  user_role_privilege_system_source\src\cn\itcast\web\controller\
     文件        2146  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\web\controller\PrivilegeServlet.java
     文件        3367  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\web\controller\ResourceServlet.java
     文件        3265  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\web\controller\RoleServlet.java
     文件        4098  2013-11-14 10:01  user_role_privilege_system_source\src\cn\itcast\web\controller\UserServlet.java
     目录           0  2015-11-29 22:13  user_role_privilege_system_source\src\cn\itcast\web\filter\
............此处省略70个文件信息

评论

共有 条评论