urlrequestmethod.setAttribute("url", "caigoumethod!caigouupdate2?id="+bean.getId());是啥意思

JSP和Serverlet之间的传值方法_百度文库
赠送免券下载特权
10W篇文档免费专享
部分付费文档8折起
每天抽奖多种福利
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
JSP和Serverlet之间的传值方法
&&JSP和Serverlet之间的传值方法
你可能喜欢Access denied | www.bkjia.com used Cloudflare to restrict access
Please enable cookies.
What happened?
The owner of this website (www.bkjia.com) has banned your access based on your browser's signature (d6e2c-ua98).Have recently written a struts2 project Times this exception, specifically: public String selectByCondition () throws Exception { String ntype = this.getNtype (); / / ActionContext ctx = ActionContext.getContext (); / / HttpServletRequest request = (
Just tune a program, and found an important point, it is to form inside the id of a hold, maintain, and in the context of which may be used at any time ~ with the struts, to keep the environment is inside a class action between the two methods, then
list 里面是对象也要request.setAttribute(&list&, list); list 也要request.setAttribute(&list&, list); 都可以传递到jsp页面 controller:方法 @SuppressWarnings(&unchecked&) @RequestMapping(value = &login&) public String login(HttpServletReq
public void doFilter (ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException ( HttpServletRequest hreq = (HttpServletRequest) HttpServletResponse hres = (HttpServletResponse) Strin
Add a watermark on the increase in CKEditor function, believe we have not seen. CKEditor's predecessor was FCKEditor, FCKEditor from 3.0 after the change called CKEditor. Man of few words said, we go,, First, the changes introduced in that part of th
httpSession binding, for each logged-on user to bind a sessionid, into the map collection in the log when the user to repeat, it will map the corresponding user to delete, then delete the user session Or in the table defines a boolean type of status,
为了简便起见,我就做了个对是否登录的权限判断,原理都是一样,其他的可以类推.代码如下: 一.首先,自定义一个注解类,把该注解放在你想要拦截的action的方法上,至于到底是方法,通过下面的自定义的拦截器,根据反射技术获得. Permission.java import java.lang.annotation.ElementT import java.lang.annotation.R import java.lang.annotation.RetentionPolic
在JSP内置对象session和request都有setAttribute方法,这个方法作用就是保存数据,然后用getAttribute方法来取出. 比如现在有个User对象,User curruser = new User(&zhangsan&,20,&男&); 1,request.setAttribute(&curruser&, curruser)这个方法是将curruser这个对象保存在request作用域中,然后在转发进入的页面就可以获取
equest.setAttribute()怎么用的? JSP1代码 String [] test=new String[2]; test[0]=&1&; test[1]=&2&; request.setAttribute(&test&,test) ; response.sendRedirect(&jsp2.jsp&); JSP2代码 String test[]=(String[])request.getAttribute(&q
paramList giving the value in the action request.setAttribute ( 'name = ddd'); Value Result: = Has been turned into html symbol of the $ (requestAttributes.paramList) name = ddd $ (request. get Attribute ( 'paramList')) name # 61; ddd
struts 2 access request and the session In the Struts1 .* in order to visit the request, response, and session objects such as Servlet is very convenient, because they have been shaped as a parameter to pass between the various methods, while in Stru
Implementation functions: the need for users to login before viewing the page before the Canadian interceptors, jump to the landing page, log on automatically jump t 1. Interceptor access to jump information respones.setAttribute
In the pages contain many filter criteria! Include text boxes and drop-down menus and other two forms. Text box: 1. Company Name search_name 2. Search_mainfunction main business 3. Regional search_region 4. Source search_source The drop-down menu: 1.
struts2 from the early 2007 launch of the first stable version has now been developed for nearly three years, and now, a new product or project, if selected struts program, generally chosen struts2, not for use struts2 in using struts2, I think it mu
First, time has come to StandardWrapperValve # invoke, it is now be considered as a real call, the main achievement of servlet, filter implementation of the /** * Invoke the servlet we are managing, respecting the rules regarding * servlet lifecycle
application: the global scope, the entire application program sharing, is the deployment of file sharing in the same webApp life cycle: the application start to stop. session: the session scope, when users first visit, create a new session, after the
Web container has three cycles request / Httpsession / application One request is the client sending a request, the request of the carrier is a thread, a thread is actually equivalent to the life cycle. Request is an abstract concept encapsulated in
JavaEye taken from the article: HttpServletRequest class both getAttribute () method, but also by the getParameter () method, both methods have the following differences: (1) HttpServletRequest class has setAttribute () method, without setParameter (
In Struts2, from Action to obtain request, session application objects is to develop the necessary steps, how to obtain these objects from the Action do? Struts2 provides us four ways. Were servlet not related to other objects of non-IoC way to achie
1, response Belongs to
The URL add Sent two re 2, request Belongs to The URL address Send a r They cite a distinction betwe
struts2 In Action using a model-driven public class NewsAction extends BaseAction implements ModelDriven&News& Gets the News store request Within the scope of the request..setAttribute(&news&, news); Gets the style of the page : &s:text
struts2 In Action using a model-driven public class NewsAction extends BaseAction implements ModelDriven&News& Gets the News store request Within the scope of the request..setAttribute(&news&, news); Gets the style of the page : &s:text
used in the project visit notes do use a url redirect, found that their information is lost, its solution is as follows: package com.founder.bcimp.core. import java.util.HashM import java.util.M import javax.servlet.http.HttpServletReque
Two days, doing personal blog's article and the title of the article list to suggest that a small error. No matter how I published that article, the article did not list the title of the article published recently displayed. The reason is the article
New Document When the two Web components for the forward relationship between, the source will forward request to share data within the data into the first use setAttribute to the HttpServletRequest object, and then forwarded through the getAttribute
reponse.sendRedirect () with the request ... forward () to achieve a shift of the similarities and differences. in front of slow, which is fast 2. In front can not read request.setAttribute () the saved value, which can be read 3. The former address
and the difference between request.getAttribute request.getParameter HttpServletRequest class both getAttribute () method, but also by the getParameter () method, both methods have the following differences: (1) HttpServletRequest class has setAttrib
Model model, HttpServletRequest request, ModelMap map variables declaration request.getSession (). setAttribute (&test&, &haiwei2Session&); request.setAttribute (&test&, &haiwei1request&); map.addAttribute (&te
Access request, session, and application objects Struts2 provides a variety of ways to access the request, session, application three kinds of objects, can be summed up, can be divided into two categories, with the Servlet API decoupling mode and cou
Note: This article comes from Javaeye the junier, I reproduced the O ( ∩ _ ∩ ) O Haha ~ application: the global scope, the entire application sharing, file is deployed to share the same webApp life cycle: the application starts to stop. session: sess
Access request, session, application of the method: ActionContext get (Object), getSession, getApplication () These three methods were able to obtain Map type of request, session.application, you first need to take the time to get a ActionContext obj
application: the global scope, the entire application sharing, file is deployed to share the same webApp life cycle: the application starts to stop. session: session scope, when the user first visit, create a new session, after the server can remembe
HttpServletRequest class both getAttribute () method, but also by the getParameter () method, both methods have the following differences: (1) HttpServletRequest class has setAttribute () method, and no setParameter () method (2) when two Web compone
1.js code // Case origin function loadCaseSources(position_id){ var action=&/caseSource/getAllCaseSource.action&; var data=&&; var error_message=& Failed to load source data of the case !&; getCaseSourcesSelect(action,data,po
Get the request in the Action Method One: In the Action code: Map request = (Map) ActionContext.getContext (). Get (&request&); List &Task& tasks = taskManager.findAll (); request.put (&tasks&, tasks); In the JSP page for which t
1, request.getParameter () method to pass the data transmitted from the Web client Web server, the HTTP request data. request.getParameter () method returns the data type String. - Request.getParameter () obtained through the implementation of the co
Struts2 source code to read - Request Process
19:49:50 | Category: STRUTS | Tags: | font size medium and small subscription Struts package introduced ( http://www.blogjava.net/lzhidj/archive//213898.html ) (most of the descriptiv
本篇文章小编为大家介绍,基于request.getAttribute与request.getParameter的区别详解.需要的朋友参考下 HttpServletRequest类既有getAttribute()方法,也有getParameter()方法,这两个方法有以下区别: 1.HttpServletRequest类有setAttribute()方法,而没有setParameter()方法: 2.当两个Web组件之间为链接关系时,被链接的组件通过getParameter()方法来获得请求参数:
今天最早遇到一个脱离平台,单独给用户定制开发的关于状态管理的功能局部刷新出现乱码的情况,仔细查了下代码发现并无特殊之处,charset统一使用GB18030,ajax传递参数使用默认UTF-8,对传递的中文信息手动转码. 此功能已进入试用一周了,都没有问题,奇怪的是今天出现了问题?? AjaxRequestObj.createEqStatusParameter=function() { if (eqStatusArray.length & 1) { } var paramName
查看文章 JSP内置对象1
10:51 1.request对象 客户端的请求信息被封装在request对象中,通过它才能了解到客户的需求,然后做出响应.它是HttpServletRequest类的实例. 序号 方 法 说 明 1 object getAttribute(String name) 返回指定属性的属性值 2 Enumeration getAttributeNames() 返回所有可用属性名的枚举 3 String getCharacterEncoding() 返
复习啊.. struts2里面有三种方法可以获取request,最好使用ServletRequestAware接口通过IOC机制注入Request对象. 在Action中获取request方法一: 在Action中的代码: Map request = (Map)ActionContext.getContext().get(&request&); List&Task& tasks = taskManager.findAll(); request.put(&tasks
JSP中response.sendRedirect()与request.getRequestDispatcher().forward(request,response)这两个对象都可以使页面跳转,但是二者是有很大的区别的,分条来说,有以下几点: ①response.sendRedirect(url)-----重定向到指定URL request.getRequestDispatcher(url).forward(request,response) -----请求转发到指定URL ②response
这里就request为例,不去考虑session. request对象是javax.servlet.http.HttpServletRequest接口的一个实例,request表示调用JSP页面的请求,如request.getParameter(&paramName&)表示获得Form提交过来的参数. request.getParameter()返回的是Web客户端向Web服务器端传送数据. HttpServletRequest类没有setParameter()方法,request.g
spring mvc处理方法支持如下的返回方式:ModelAndView, Model, ModelMap, Map,View, String, void.下面将对具体的一一进行说明: ModelAndView Java代码 @RequestMapping(&/show1&) public ModelAndView show1(HttpServletRequest request, HttpServletResponse response) throws Exception { Mod
ttpServletRequest.getParameter(&modelName&); 能取到想要的modelObject吗?经过测试之后,发现是不能的.后来想想,其他道理挺简单的,当两个Web组件之间为转发关系时,转发源会将要共享 request范围内的数据先用setAttribute将数据放入到HttpServletRequest对象中,然后转发目标通过 getAttribute方法来取得要共享的数据.而MVC中用的就是Web组件之间的转发啊!真是笨,怎么当时没有想到呢? 下面整
JSP中response.sendRedirect()与request.getRequestDispatcher().forward(request,response)这两个对象都可以使页面跳转,但是二者是有很大的区别的,分条来说,有以下几点: ①response.sendRedirect(url)-----重定向到指定URL request.getRequestDispatcher(url).forward(request,response) -----请求转发到指定URL ②response
index.jsp &%@ page contentType=&text/charset=GBK& language=&java& errorPage=&&%& &!DOCTYPE html& &html& &head& &title&操作request范围的属性---取钱模拟&/title& &/head& &body& &form
在JSP页面中的对象,包括用户创建的对象(例如,JavaBean对象)和JSP的隐含对象,都有一个范围属性.范围定义了在什么时间内, 在哪一个JSP页面中可以访问这些对象.例如,session对象在会话期间内,可以在多个页面中被访问.application对象在整个Web应 用程序的生命周期中都可以被访问.在JSP中,有4种范围,如下所示. 1. page范围 具有page范围的对象被绑定到javax.servlet.jsp.PageContext对象中.在这个范围内的对象,只能在创建对象的页面
getParameter 是用来接受用post.get方法传递过来的参数. getAttribute 必须先setAttribute. 1.request.getParameter() 取得是通过容器的实现来取得通过类似post,get等方式传入的数据,request.setAttribute()和getAttribute()只是在web容器内部流转,仅仅是请求处理阶段. 2.request.getParameter() 方法传递的数据,会从Web客户端传到Web服务器端,代表HTTP请求数据.
1.源码讨论 @Before(BlogValidator.class) public void save() { getModel(Blog.class).save(); redirect(&/blog&); } 2.@Before(BlogValidator.class) 这段代码是在方法执行前会调用BlogValidator拦截器 public class BlogValidator extends Validator { protected void validate(Contr
Copyright (C) , All Rights Reserved.
版权所有 闽ICP备号
processed in 0.049 (s). 9 q(s)/ yiyaocaigou
项目语言:None
权限:read-only(如需更高权限请先加入项目)
yiyaocaigou/
Index: dao/DicttypeDAO.java
===================================================================
--- dao/DicttypeDAO.java (revision 0)
+++ dao/DicttypeDAO.java (revision 15)
@@ -0,0 +1,87 @@
+package zzvcom.sys.
+import java.util.L
+import zzvcom.sys.pojo.D
+import zzvcom.sys.pojo.DicttypeE
+public interface DicttypeDAO {
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
void insert(Dicttype record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
int updateByPrimaryKey(Dicttype record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
int updateByPrimaryKeySelective(Dicttype record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
List selectByExample(DicttypeExample example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
Dicttype selectByPrimaryKey(String typecode);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
int deleteByExample(DicttypeExample example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
int deleteByPrimaryKey(String typecode);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
int countByExample(DicttypeExample example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
int updateByExampleSelective(Dicttype record, DicttypeExample example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
int updateByExample(Dicttype record, DicttypeExample example);
\ No newline at end of file
Index: dao/ModuleDao.java
===================================================================
--- dao/ModuleDao.java (revision 0)
+++ dao/ModuleDao.java (revision 15)
@@ -0,0 +1,74 @@
+package zzvcom.sys.
+import java.util.L
+import zzvcom.sys.pojo.VcomSysM
+import zzvcom.util.PageU
+ * 用户接口
+ * @author LHQ.
+public interface ModuleDao extends GenericDao&VcomSysModule& {
* 在parentid下是否包含相同的模块名称
* @param parentid
* @param modulename
* @param exceptid
+ public boolean isContainModulename(String parentid, String modulename,
String exceptid);
* 在parentid下是否包含相同的模块名称
* @param parentid
* @param modulename
+ public boolean isContainModulename(String parentid, String modulename);
* 根据parentid分页获取模块信息
* @param parentid
* @param modulename
模块(菜单)名称
* @param page
+ public List&VcomSysModule& getModuleListByParentid(String parentid,
String modulename, PageUtil page);
* 获得所有的模块列表
+ public List&VcomSysModule& getModuleList();
* 获取模块列表
* @param inIds
包括的id字符串,如 &1,2,3&
* @param notinIds
不包括的id字符串,如 &1,2,3&
+ public List&VcomSysModule& getModuleListByIds(String inIds, String notinIds);
* @函数介绍:根据父结点id查询所有子模块列表(不分页)
* @返回值:
+ public List&VcomSysModule& getAllModuleListByParentid(String parentid);
Index: dao/exception/ObjectNotFindException.java
===================================================================
--- dao/exception/ObjectNotFindException.java (revision 0)
+++ dao/exception/ObjectNotFindException.java (revision 15)
@@ -0,0 +1,7 @@
+package zzvcom.sys.dao.
+public class ObjectNotFindException extends Exception {
public ObjectNotFindException(String msg) {
super(msg);
\ No newline at end of file
Index: dao/exception/DeleteException.java
===================================================================
--- dao/exception/DeleteException.java (revision 0)
+++ dao/exception/DeleteException.java (revision 15)
@@ -0,0 +1,7 @@
+package zzvcom.sys.dao.
+public class DeleteException extends Exception {
public DeleteException(String msg) {
super(msg);
\ No newline at end of file
Index: dao/exception/SaveOrUpdateException.java
===================================================================
--- dao/exception/SaveOrUpdateException.java (revision 0)
+++ dao/exception/SaveOrUpdateException.java (revision 15)
@@ -0,0 +1,7 @@
+package zzvcom.sys.dao.
+public class SaveOrUpdateException extends Exception {
public SaveOrUpdateException(String msg) {
super(msg);
\ No newline at end of file
Index: dao/ModuleOperDao.java
===================================================================
--- dao/ModuleOperDao.java (revision 0)
+++ dao/ModuleOperDao.java (revision 15)
@@ -0,0 +1,72 @@
+package zzvcom.sys.
+import java.util.L
+import zzvcom.sys.pojo.VcomSysO
+import zzvcom.util.PageU
+ * 用户接口
+ * @author LHQ.
+public interface ModuleOperDao extends GenericDao&VcomSysOperation& {
* 在moduleid下是否包含相同的操作名称
* @param moduleid
* @param opername
* @param exceptid
+ public boolean isContainOpername(String moduleid, String opername,
String exceptid);
* 在moduleid下是否包含相同的操作名称
* @param moduleid
* @param modulename
+ public boolean isContainOpername(String moduleid, String opername);
* 获取操作列表
* @param inIds
包括的id字符串,如 &1,2,3&
* @param notinIds
不包括的id字符串,如 &1,2,3&
+ public List&VcomSysOperation& getOperationListByIds(String inIds,
String notinIds);
* 根据moduleid获取操作列表
* @param moduleid
* @param opername
* @param page
+ public List&VcomSysOperation& getOperationListByModuleid(String moduleid,
String opername, PageUtil page);
* 获得所有的操作列表
+ public List&VcomSysOperation& getOperationList();
Index: dao/GenericDao.java
===================================================================
--- dao/GenericDao.java (revision 0)
+++ dao/GenericDao.java (revision 15)
@@ -0,0 +1,43 @@
+package zzvcom.sys.
+import zzvcom.sys.dao.exception.DeleteE
+import zzvcom.sys.dao.exception.ObjectNotFindE
+import zzvcom.sys.dao.exception.SaveOrUpdateE
+ * 数据访问通用接口
+ * @author LHQ.
+ * @param &T&
+public interface GenericDao&T&
* 通过根据id获取对象
* @param id
+ T query(String id) throws ObjectNotFindE
* 通用保持实体对象
* @param entity
* @throws SaveOrUpdateException
+ String create(T entity)throws SaveOrUpdateE
* 通用删除对象
* @param entity
* @throws DeleteException
+ void delete(T entity)throws DeleteE
* 通用修改或者保存对象
* @param entity
* @throws SaveOrUpdateException
+ void saveOrupdate(T entity)throws SaveOrUpdateE
Index: dao/BasicinfoDAO.java
===================================================================
--- dao/BasicinfoDAO.java (revision 0)
+++ dao/BasicinfoDAO.java (revision 15)
@@ -0,0 +1,90 @@
+package zzvcom.sys.
+import java.util.HashM
+import java.util.L
+import zzvcom.sys.pojo.B
+import zzvcom.sys.pojo.BasicinfoE
+public interface BasicinfoDAO {
+ public HashMap selectProjectByExample(BasicinfoExample example)
+ throws E
+ public List&Basicinfo& findBasicInfoByType(BasicinfoExample example)
+ throws E
void insert(Basicinfo record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
int updateByPrimaryKey(Basicinfo record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
int updateByPrimaryKeySelective(Basicinfo record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
List selectByExample(BasicinfoExample example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
Basicinfo selectByPrimaryKey(String id);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
int deleteByExample(BasicinfoExample example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
int deleteByPrimaryKey(String id);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
int countByExample(BasicinfoExample example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
int updateByExampleSelective(Basicinfo record, BasicinfoExample example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
int updateByExample(Basicinfo record, BasicinfoExample example);
\ No newline at end of file
Index: dao/impl/DicttypeDAOImpl.java
===================================================================
--- dao/impl/DicttypeDAOImpl.java (revision 0)
+++ dao/impl/DicttypeDAOImpl.java (revision 15)
@@ -0,0 +1,156 @@
+package zzvcom.sys.dao.
+import java.util.L
+import org.springframework.orm.ibatis.support.SqlMapClientDaoS
+import zzvcom.sys.dao.DicttypeDAO;
+import zzvcom.sys.pojo.D
+import zzvcom.sys.pojo.DicttypeE
+public class DicttypeDAOImpl extends SqlMapClientDaoSupport implements DicttypeDAO {
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
public DicttypeDAOImpl() {
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
public void insert(Dicttype record) {
getSqlMapClientTemplate().insert(&dicttype.abatorgenerated_insert&, record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
public int updateByPrimaryKey(Dicttype record) {
int rows = getSqlMapClientTemplate().update(&dicttype.abatorgenerated_updateByPrimaryKey&, record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
public int updateByPrimaryKeySelective(Dicttype record) {
int rows = getSqlMapClientTemplate().update(&dicttype.abatorgenerated_updateByPrimaryKeySelective&, record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
public List selectByExample(DicttypeExample example) {
List list = getSqlMapClientTemplate().queryForList(&dicttype.abatorgenerated_selectByExample&, example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
public Dicttype selectByPrimaryKey(String typecode) {
Dicttype key = new Dicttype();
key.setTypecode(typecode);
Dicttype record = (Dicttype) getSqlMapClientTemplate().queryForObject(&dicttype.abatorgenerated_selectByPrimaryKey&, key);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
public int deleteByExample(DicttypeExample example) {
int rows = getSqlMapClientTemplate().delete(&dicttype.abatorgenerated_deleteByExample&, example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
public int deleteByPrimaryKey(String typecode) {
Dicttype key = new Dicttype();
key.setTypecode(typecode);
int rows = getSqlMapClientTemplate().delete(&dicttype.abatorgenerated_deleteByPrimaryKey&, key);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
public int countByExample(DicttypeExample example) {
Integer count = (Integer)
getSqlMapClientTemplate().queryForObject(&dicttype.abatorgenerated_countByExample&, example);
return count.intValue();
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
public int updateByExampleSelective(Dicttype record, DicttypeExample example) {
UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
int rows = getSqlMapClientTemplate().update(&dicttype.abatorgenerated_updateByExampleSelective&, parms);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
public int updateByExample(Dicttype record, DicttypeExample example) {
UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
int rows = getSqlMapClientTemplate().update(&dicttype.abatorgenerated_updateByExample&, parms);
* This class was generated by Abator for iBATIS.
* This class corresponds to the database table dicttype
* @abatorgenerated Fri Dec 10 13:58:07 CST 2010
private static class UpdateByExampleParms extends DicttypeExample {
public UpdateByExampleParms(Object record, DicttypeExample example) {
super(example);
this.record =
public Object getRecord() {
\ No newline at end of file
Index: dao/impl/ModuleDaoImpl.java
===================================================================
--- dao/impl/ModuleDaoImpl.java (revision 0)
+++ dao/impl/ModuleDaoImpl.java (revision 15)
@@ -0,0 +1,114 @@
+package zzvcom.sys.dao.
+import java.io.S
+import java.util.HashM
+import java.util.L
+import java.util.M
+import org.apache.commons.lang.StringEscapeU
+import org.apache.log4j.L
+import org.springframework.orm.ibatis.support.SqlMapClientDaoS
+import zzvcom.sys.dao.ModuleD
+import zzvcom.sys.dao.exception.DeleteE
+import zzvcom.sys.dao.exception.ObjectNotFindE
+import zzvcom.sys.dao.exception.SaveOrUpdateE
+import zzvcom.sys.pojo.VcomSysM
+import zzvcom.util.PageU
+ * 用户数据访问实现类
+ * @author
+public class ModuleDaoImpl extends SqlMapClientDaoSupport implements ModuleDao {
+ public static final Logger log = Logger.getLogger(ModuleDaoImpl.class);
+ public List&VcomSysModule& getModuleList() {
return this.getSqlMapClientTemplate().queryForList(
&vcommodule.getModuleList&);
+ public List&VcomSysModule& getModuleListByIds(String inIds, String notinIds) {
if (null != inIds && !&&.equals(inIds.trim()))
return this.getSqlMapClientTemplate().queryForList(
&vcommodule.getModuleListByIds&, inIds);
if (null != notinIds && !&&.equals(notinIds.trim()))
return this.getSqlMapClientTemplate().queryForList(
&vcommodule.getModuleListByNotIds&, notinIds);
+ public List&VcomSysModule& getModuleListByParentid(String parentid,
String modulename, PageUtil page) {
Map&String, Object& map = new HashMap&String, Object&();
map.put(&parentid&, parentid);
map.put(&modulename&, StringEscapeUtils.escapeSql(modulename));
if (null != page) {
int count = (Integer) this.getSqlMapClientTemplate()
.queryForObject(&vcommodule.getModuleListCountByParentid&,
page.setTotalRow(count);
map.put(&start&, page.getStart());
map.put(&end&, page.getEnd());
map.put(&rowend&, page.getRowend());
return this.getSqlMapClientTemplate().queryForList(
&vcommodule.getModuleListByParentid&, map);
+ public boolean isContainModulename(String parentid, String modulename,
String exceptid) {
Map&String, Object& map = new HashMap&String, Object&();
map.put(&parentid&, parentid);
map.put(&modulename&, modulename);
map.put(&exceptid&, exceptid);
int count = (Integer) this.getSqlMapClientTemplate().queryForObject(
&vcommodule.isContainModulename&, map);
if (0 == count)
+ public boolean isContainModulename(String parentid, String modulename) {
return isContainModulename(parentid, modulename, &-1l&);
+ public String create(VcomSysModule entity) throws SaveOrUpdateException {
return (String) this.getSqlMapClientTemplate().insert(
&vcommodule.create&, entity);
+ public void delete(VcomSysModule entity) throws DeleteException {
this.getSqlMapClientTemplate().delete(&vcommodule.delete&,
entity.getId());
+ public VcomSysModule query(String id) throws ObjectNotFindException {
return (VcomSysModule) this.getSqlMapClientTemplate().queryForObject(
&vcommodule.query&, id);
+ public void saveOrupdate(VcomSysModule entity) throws SaveOrUpdateException {
this.getSqlMapClientTemplate().update(&vcommodule.update&, entity);
+ public List&VcomSysModule& getAllModuleListByParentid(String parentid) {
return this.getSqlMapClientTemplate().queryForList(&vcommodule.getAllModuleListByParentid&, parentid);
Index: dao/impl/ModuleOperDaoImpl.java
===================================================================
--- dao/impl/ModuleOperDaoImpl.java (revision 0)
+++ dao/impl/ModuleOperDaoImpl.java (revision 15)
@@ -0,0 +1,155 @@
+package zzvcom.sys.dao.
+import java.io.S
+import java.util.HashM
+import java.util.L
+import java.util.M
+import org.apache.commons.lang.StringEscapeU
+import org.apache.log4j.L
+import org.springframework.orm.ibatis.support.SqlMapClientDaoS
+import zzvcom.sys.dao.ModuleOperD
+import zzvcom.sys.dao.exception.DeleteE
+import zzvcom.sys.dao.exception.ObjectNotFindE
+import zzvcom.sys.dao.exception.SaveOrUpdateE
+import zzvcom.sys.pojo.VcomSysM
+import zzvcom.sys.pojo.VcomSysO
+import zzvcom.util.PageU
+ * 用户数据访问实现类
+ * @author
+public class ModuleOperDaoImpl extends SqlMapClientDaoSupport implements
ModuleOperDao {
+ public static final Logger log = Logger.getLogger(ModuleOperDaoImpl.class);
+ public List&VcomSysOperation& getOperationListByModuleid(String moduleid,
String opername, PageUtil page) {
Map map = new HashMap();
map.put(&moduleid&, moduleid);
map.put(&opername&, StringEscapeUtils.escapeSql(opername));
if (null != page) {
int count = (Integer) this.getSqlMapClientTemplate()
.queryForObject(
&vcomoper.getOperationListCountByModuleid&, map);
page.setTotalRow(count);
map.put(&start&, page.getStart());
map.put(&end&, page.getEnd());
map.put(&rowend&, page.getRowend());
return this.getSqlMapClientTemplate().queryForList(
&vcomoper.getOperationListByModuleid&, map);
+ public List&VcomSysOperation& getOperationList() {
// String hql = &from VcomSysOperation o order by o.sort asc&;
// Query query = getSession().createQuery(hql);
// return query.list();
return this.getSqlMapClientTemplate().queryForList(
&vcomoper.getOperationListByModuleid&);
+ private Long[] convertString2Long(String ids) {
Long[] lids = new Long[ids.split(&,&).length];
int i = 0;
for (String s : ids.split(&,&)) {
lids[i] = Long.parseLong(s);
+ public List&VcomSysOperation& getOperationListByIds(String inIds,
String notinIds) {
// Session session = this.getSession();
// Criteria cri = session.createCriteria(VcomSysOperation.class);
// if (null != inIds && !&&.equals(inIds.trim()))
// cri.add(Restrictions.in(&id&, this.convertString2Long(inIds)));
// if (null != notinIds && !&&.equals(notinIds.trim()))
// cri.add(Restrictions.not(Restrictions.in(&id&, this
// .convertString2Long(notinIds))));
// cri.addOrder(Order.asc(&sort&));
// return cri.list();
Map&String, String& map = new HashMap&String, String&();
if (null != inIds && !&&.equals(inIds.trim()))
map.put(&inIds&, inIds);
if (null != notinIds && !&&.equals(notinIds.trim()))
map.put(&notinIds&, notinIds);
return this.getSqlMapClientTemplate().queryForList(
&vcomoper.getOperationListByIds&, map);
+ public boolean isContainOpername(String moduleid, String opername,
String exceptid) {
// Session session = this.getSession();
// Criteria cri = session.createCriteria(VcomSysOperation.class);
// cri.add(Restrictions.eq(&moduleid&, moduleid));
// cri.add(Restrictions.eq(&opername&, opername));
// if (exceptid & 0)
// cri.add(Restrictions.not(Restrictions.eq(&id&, exceptid)));
// if (null == cri.list() || cri.list().isEmpty())
Map&String, Object& map = new HashMap&String, Object&();
map.put(&moduleid&, moduleid);
map.put(&opername&, opername);
map.put(&exceptid&, exceptid);
int count = (Integer) this.getSqlMapClientTemplate().queryForObject(
&vcomoper.isContainOpername&, map);
if (0 == count)
+ public boolean isContainOpername(String moduleid, String opername) {
return isContainOpername(moduleid, opername, &-1l&);
+ public String create(VcomSysOperation entity) throws SaveOrUpdateException {
return (String) this.getSqlMapClientTemplate().insert(
&vcomoper.create&, entity);
+ public void delete(VcomSysOperation entity) throws DeleteException {
this.getSqlMapClientTemplate().delete(&vcomoper.delete&,
entity.getId());
+ public VcomSysOperation query(String id)
throws ObjectNotFindException {
return (VcomSysOperation) this.getSqlMapClientTemplate().queryForObject(
&vcomoper.query&,id);
+ public void saveOrupdate(VcomSysOperation entity)
throws SaveOrUpdateException {
this.getSqlMapClientTemplate().update(&vcomoper.update&, entity);
Index: dao/impl/BasicinfoDAOImpl.java
===================================================================
--- dao/impl/BasicinfoDAOImpl.java (revision 0)
+++ dao/impl/BasicinfoDAOImpl.java (revision 15)
@@ -0,0 +1,175 @@
+package zzvcom.sys.dao.
+import java.util.HashM
+import java.util.L
+import org.springframework.orm.ibatis.support.SqlMapClientDaoS
+import zzvcom.sys.dao.BasicinfoDAO;
+import zzvcom.sys.pojo.B
+import zzvcom.sys.pojo.BasicinfoE
+public class BasicinfoDAOImpl extends SqlMapClientDaoSupport implements BasicinfoDAO {
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public BasicinfoDAOImpl() {
+ @SuppressWarnings(&unchecked&)
+ public HashMap selectProjectByExample(BasicinfoExample example)
throws Exception {
HashMap map = (HashMap) getSqlMapClientTemplate().queryForMap(
&basicinfo.abatorgenerated_selectByExample&, example, &id&,
+ @SuppressWarnings(&unchecked&)
+ public List&Basicinfo& findBasicInfoByType(BasicinfoExample example)
throws Exception {
List&Basicinfo& list = (List&Basicinfo&) getSqlMapClientTemplate()
.queryForList(&basicinfo.findBasicInfoByType&, example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public void insert(Basicinfo record) {
getSqlMapClientTemplate().insert(&basicinfo.abatorgenerated_insert&, record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public int updateByPrimaryKey(Basicinfo record) {
int rows = getSqlMapClientTemplate().update(&basicinfo.abatorgenerated_updateByPrimaryKey&, record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public int updateByPrimaryKeySelective(Basicinfo record) {
int rows = getSqlMapClientTemplate().update(&basicinfo.abatorgenerated_updateByPrimaryKeySelective&, record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public List selectByExample(BasicinfoExample example) {
List list = getSqlMapClientTemplate().queryForList(&basicinfo.abatorgenerated_selectByExample&, example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public Basicinfo selectByPrimaryKey(String id) {
Basicinfo key = new Basicinfo();
key.setId(id);
Basicinfo record = (Basicinfo) getSqlMapClientTemplate().queryForObject(&basicinfo.abatorgenerated_selectByPrimaryKey&, key);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public int deleteByExample(BasicinfoExample example) {
int rows = getSqlMapClientTemplate().delete(&basicinfo.abatorgenerated_deleteByExample&, example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public int deleteByPrimaryKey(String id) {
Basicinfo key = new Basicinfo();
key.setId(id);
int rows = getSqlMapClientTemplate().delete(&basicinfo.abatorgenerated_deleteByPrimaryKey&, key);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public int countByExample(BasicinfoExample example) {
Integer count = (Integer)
getSqlMapClientTemplate().queryForObject(&basicinfo.abatorgenerated_countByExample&, example);
return count.intValue();
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public int updateByExampleSelective(Basicinfo record, BasicinfoExample example) {
UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
int rows = getSqlMapClientTemplate().update(&basicinfo.abatorgenerated_updateByExampleSelective&, parms);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public int updateByExample(Basicinfo record, BasicinfoExample example) {
UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
int rows = getSqlMapClientTemplate().update(&basicinfo.abatorgenerated_updateByExample&, parms);
* This class was generated by Abator for iBATIS.
* This class corresponds to the database table basicinfo
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
private static class UpdateByExampleParms extends BasicinfoExample {
public UpdateByExampleParms(Object record, BasicinfoExample example) {
super(example);
this.record =
public Object getRecord() {
\ No newline at end of file
Index: dao/impl/UserDaoImpl.java
===================================================================
--- dao/impl/UserDaoImpl.java (revision 0)
+++ dao/impl/UserDaoImpl.java (revision 15)
@@ -0,0 +1,99 @@
+package zzvcom.sys.dao.
+import java.io.S
+import java.util.HashM
+import java.util.L
+import java.util.M
+import org.apache.log4j.L
+import org.springframework.orm.ibatis.support.SqlMapClientDaoS
+import zzvcom.sys.dao.UserD
+import zzvcom.sys.dao.exception.DeleteE
+import zzvcom.sys.dao.exception.ObjectNotFindE
+import zzvcom.sys.dao.exception.SaveOrUpdateE
+import zzvcom.sys.pojo.VcomSysU
+import zzvcom.util.PageU
+ * 用户数据访问实现类
+ * @author LHQ.
+public class UserDaoImpl extends SqlMapClientDaoSupport implements UserDao {
+ public static final Logger log = Logger.getLogger(UserDaoImpl.class);
* 根据分页获取用户信息
* @param page
+ public List&VcomSysUser& getAllBySplitPage(PageUtil page, VcomSysUser user) {
Map map = new HashMap();
map.put(&username&, user.getUsername()==null?&&:user.getUsername());
map.put(&usercode&, user.getUsercode()==null?&&:user.getUsercode());
map.put(&role&, user.getRole()==null?&&:user.getRole());
map.put(&groupid&, user.getGroupid()==null?&&:user.getGroupid());
map.put(&sysid&, user.getSysid()==null?&&:user.getSysid());
map.put(&isstart&, user.getIsstart()==null?&&:user.getIsstart());
int count=(Integer) getSqlMapClientTemplate().queryForObject(&vcomuser.queryUserBySplitPageCount&, map);
page.setTotalRow(count);
map.put(&start&, page.getStart());
map.put(&end&, page.getEnd());
map.put(&rowend&, page.getRowend());
return this.getSqlMapClientTemplate().queryForList(&vcomuser.queryUserBySplitPage&,map);
* 获取用户列表
+ public List&VcomSysUser& getUserList() {
Map map = new HashMap();
map.put(&username&, &&);
return this.getSqlMapClientTemplate().queryForList(&vcomuser.getAllBySplitPage&,map);
+ public List&VcomSysUser& queryByCode(String usercode){
return this.getSqlMapClientTemplate().queryForList(&vcomuser.queryByCode&,usercode);
* 根据用户名和密码查询用户
+ public List&VcomSysUser& queryByUser(VcomSysUser user){
Map map=new HashMap();
map.put(&usercode&, user.getUsercode());
map.put(&password&, user.getPassword());
return this.getSqlMapClientTemplate().queryForList(&vcomuser.queryByUser&,map);
* 保存用户信息
+ public String create(VcomSysUser entity) throws SaveOrUpdateException {
return (String) getSqlMapClientTemplate().insert(&vcomuser.create&,entity);
* 删除用户信息
+ public void delete(VcomSysUser entity) throws DeleteException {
getSqlMapClientTemplate().delete(&vcomuser.delete&, entity);
* 根据id检索用户
+ public VcomSysUser query(String id) throws ObjectNotFindException {
return (VcomSysUser) this.getSqlMapClientTemplate().queryForObject(&vcomuser.query&, id);
* 保存或者修改用户信息
+ public void saveOrupdate(VcomSysUser entity) throws SaveOrUpdateException {
if(entity.getId()==null)
getSqlMapClientTemplate().insert(&vcomuser.create&,entity);
getSqlMapClientTemplate().insert(&vcomuser.update&,entity);
Index: dao/impl/DictinfoDAOImpl.java
===================================================================
--- dao/impl/DictinfoDAOImpl.java (revision 0)
+++ dao/impl/DictinfoDAOImpl.java (revision 15)
@@ -0,0 +1,156 @@
+package zzvcom.sys.dao.
+import java.util.L
+import org.springframework.orm.ibatis.support.SqlMapClientDaoS
+import zzvcom.sys.dao.DictinfoDAO;
+import zzvcom.sys.pojo.D
+import zzvcom.sys.pojo.DictinfoE
+public class DictinfoDAOImpl extends SqlMapClientDaoSupport implements DictinfoDAO {
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public DictinfoDAOImpl() {
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public void insert(Dictinfo record) {
getSqlMapClientTemplate().insert(&dictinfo.abatorgenerated_insert&, record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public int updateByPrimaryKey(Dictinfo record) {
int rows = getSqlMapClientTemplate().update(&dictinfo.abatorgenerated_updateByPrimaryKey&, record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public int updateByPrimaryKeySelective(Dictinfo record) {
int rows = getSqlMapClientTemplate().update(&dictinfo.abatorgenerated_updateByPrimaryKeySelective&, record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public List selectByExample(DictinfoExample example) {
List list = getSqlMapClientTemplate().queryForList(&dictinfo.abatorgenerated_selectByExample&, example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public Dictinfo selectByPrimaryKey(String id) {
Dictinfo key = new Dictinfo();
key.setId(id);
Dictinfo record = (Dictinfo) getSqlMapClientTemplate().queryForObject(&dictinfo.abatorgenerated_selectByPrimaryKey&, key);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public int deleteByExample(DictinfoExample example) {
int rows = getSqlMapClientTemplate().delete(&dictinfo.abatorgenerated_deleteByExample&, example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public int deleteByPrimaryKey(String id) {
Dictinfo key = new Dictinfo();
key.setId(id);
int rows = getSqlMapClientTemplate().delete(&dictinfo.abatorgenerated_deleteByPrimaryKey&, key);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public int countByExample(DictinfoExample example) {
Integer count = (Integer)
getSqlMapClientTemplate().queryForObject(&dictinfo.abatorgenerated_countByExample&, example);
return count.intValue();
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public int updateByExampleSelective(Dictinfo record, DictinfoExample example) {
UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
int rows = getSqlMapClientTemplate().update(&dictinfo.abatorgenerated_updateByExampleSelective&, parms);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public int updateByExample(Dictinfo record, DictinfoExample example) {
UpdateByExampleParms parms = new UpdateByExampleParms(record, example);
int rows = getSqlMapClientTemplate().update(&dictinfo.abatorgenerated_updateByExample&, parms);
* This class was generated by Abator for iBATIS.
* This class corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
private static class UpdateByExampleParms extends DictinfoExample {
public UpdateByExampleParms(Object record, DictinfoExample example) {
super(example);
this.record =
public Object getRecord() {
\ No newline at end of file
Index: dao/impl/RoleDaoImpl.java
===================================================================
--- dao/impl/RoleDaoImpl.java (revision 0)
+++ dao/impl/RoleDaoImpl.java (revision 15)
@@ -0,0 +1,113 @@
+package zzvcom.sys.dao.
+import java.io.S
+import java.util.HashM
+import java.util.L
+import java.util.M
+import org.apache.log4j.L
+import org.springframework.orm.ibatis.support.SqlMapClientDaoS
+import zzvcom.sys.dao.RoleD
+import zzvcom.sys.dao.exception.DeleteE
+import zzvcom.sys.dao.exception.ObjectNotFindE
+import zzvcom.sys.dao.exception.SaveOrUpdateE
+import zzvcom.sys.pojo.VcomSysR
+import zzvcom.sys.pojo.VcomSysU
+import zzvcom.util.PageU
+ * 用户数据访问实现类
+ * @author lzq.
+public class RoleDaoImpl
extends SqlMapClientDaoSupport
implements
+ public static final Logger log = Logger.getLogger(RoleDaoImpl.class);
* 根据分页获取用户信息
* @param page
+ public List getAllBySplitPage(PageUtil page, VcomSysRole role) {
Map map = new HashMap();
map.put(&rolename&, role.getRolename() == null ? && : role.getRolename());
map.put(&owner&, role.getOwner() == null ? && : role.getOwner());
map.put(&extstr&, role.getExtstr() == null ? && : role.getExtstr());
int count=(Integer) getSqlMapClientTemplate().queryForObject(&vcomrole.getAllBySplitPageCount&, map);
page.setTotalRow(count);
map.put(&start&, page.getStart());
map.put(&end&, page.getEnd());
map.put(&rowend&, page.getRowend());
return this.getSqlMapClientTemplate().queryForList(&vcomrole.getAllBySplitPage&,map);
* 根据角色id获取集合
* @param ids
+ public List getRoleByIds(String ids) {
return this.getSqlMapClientTemplate().queryForList(&vcomrole.getRoleByIds&,ids);
* 获取所有的角色
+ public List getAllRole() {
return this.getSqlMapClientTemplate().queryForList(&vcomrole.getAllRole&);
* 验证名称是否重复
+ public boolean isContainRolename(String rolename, long exceptid) {
Map map=new HashMap();
map.put(&rolename&, rolename);
if(exceptid & 0)map.put(&id&, String.valueOf(exceptid));
List list=this.getSqlMapClientTemplate().queryForList(&vcomrole.isContainRolename&,map);
if (null == list || list.isEmpty())
+ public boolean isContainRolename(String rolename) {
return isContainRolename(rolename, -1l);
+ public String create(VcomSysRole entity) throws SaveOrUpdateException {
return (String) getSqlMapClientTemplate().insert(&vcomrole.create&,entity);
+ public void delete(VcomSysRole entity) throws DeleteException {
getSqlMapClientTemplate().delete(&vcomrole.delete&, entity);
+ public VcomSysRole query(String id) throws ObjectNotFindException {
return (VcomSysRole) this.getSqlMapClientTemplate().queryForObject(&vcomrole.query&, id);
+ public void saveOrupdate(VcomSysRole entity) throws SaveOrUpdateException {
if(entity.getId()==null)
getSqlMapClientTemplate().insert(&vcomrole.create&,entity);
getSqlMapClientTemplate().insert(&vcomrole.update&,entity);
public boolean isUsedRole(String roleid)
int count = (Integer)this.getSqlMapClientTemplate().queryForObject(&vcomrole.findroleuserCount&, roleid);
if(count & 0){
Index: dao/UserDao.java
===================================================================
--- dao/UserDao.java (revision 0)
+++ dao/UserDao.java (revision 15)
@@ -0,0 +1,31 @@
+package zzvcom.sys.
+import java.util.L
+import zzvcom.sys.pojo.VcomSysU
+import zzvcom.util.PageU
+ * 用户接口
+ * @author LHQ.
+public interface UserDao extends GenericDao&VcomSysUser&
* 根据分页获取用户信息
* @param page user
+ public List&VcomSysUser& getAllBySplitPage(PageUtil page,VcomSysUser user);
* 获取用户信息列表
* @param map
+ public List&VcomSysUser& getUserList();
+ public List&VcomSysUser& queryByCode(String usercode);
+ public List&VcomSysUser& queryByUser(VcomSysUser user);
Index: dao/DictinfoDAO.java
===================================================================
--- dao/DictinfoDAO.java (revision 0)
+++ dao/DictinfoDAO.java (revision 15)
@@ -0,0 +1,88 @@
+package zzvcom.sys.
+import java.util.L
+import zzvcom.sys.pojo.D
+import zzvcom.sys.pojo.DictinfoE
+public interface DictinfoDAO {
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
void insert(Dictinfo record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
int updateByPrimaryKey(Dictinfo record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
int updateByPrimaryKeySelective(Dictinfo record);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
List selectByExample(DictinfoExample example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
Dictinfo selectByPrimaryKey(String id);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
int deleteByExample(DictinfoExample example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
int deleteByPrimaryKey(String id);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
int countByExample(DictinfoExample example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
int updateByExampleSelective(Dictinfo record, DictinfoExample example);
* This method was generated by Abator for iBATIS.
* This method corresponds to the database table dictinfo
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
int updateByExample(Dictinfo record, DictinfoExample example);
\ No newline at end of file
Index: dao/RoleDao.java
===================================================================
--- dao/RoleDao.java (revision 0)
+++ dao/RoleDao.java (revision 15)
@@ -0,0 +1,53 @@
+package zzvcom.sys.
+import java.util.L
+import zzvcom.sys.pojo.VcomSysR
+import zzvcom.util.PageU
+ * 用户接口
+ * @author LHQ.
+public interface RoleDao extends GenericDao&VcomSysRole&
* 根据分页获取用户信息
* @param page
+ public List getAllBySplitPage(PageUtil page,VcomSysRole role);
* 获取所有的角色
+ public List getAllRole();
* 更加角色id获取集合
* @param ids
+ public List getRoleByIds(String ids);
* 否包含相同的角色名称
* @param rolename
* @param exceptid
+ public boolean isContainRolename(String rolename,long exceptid);
* 否包含相同的角色名称
* @param rolename
+ public boolean isContainRolename(String rolename);
public boolean isUsedRole(String roleid);
Index: pojo/Basicinfo.java
===================================================================
--- pojo/Basicinfo.java (revision 0)
+++ pojo/Basicinfo.java (revision 15)
@@ -0,0 +1,272 @@
+package zzvcom.sys.
+public class Basicinfo {
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column basicinfo.id
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column basicinfo.name
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column basicinfo.value
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column basicinfo.type
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column basicinfo.tag
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column basicinfo.isalive
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column basicinfo.vchar1
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
private String vchar1;
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column basicinfo.vchar2
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
private String vchar2;
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column basicinfo.id
* @return the value of basicinfo.id
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public String getId() {
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column basicinfo.id
* @param id the value for basicinfo.id
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public void setId(String id) {
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column basicinfo.name
* @return the value of basicinfo.name
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public String getName() {
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column basicinfo.name
* @param name the value for basicinfo.name
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public void setName(String name) {
this.name =
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column basicinfo.value
* @return the value of basicinfo.value
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public String getValue() {
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column basicinfo.value
* @param value the value for basicinfo.value
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public void setValue(String value) {
this.value =
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column basicinfo.type
* @return the value of basicinfo.type
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public String getType() {
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column basicinfo.type
* @param type the value for basicinfo.type
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public void setType(String type) {
this.type =
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column basicinfo.tag
* @return the value of basicinfo.tag
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public String getTag() {
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column basicinfo.tag
* @param tag the value for basicinfo.tag
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public void setTag(String tag) {
this.tag =
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column basicinfo.isalive
* @return the value of basicinfo.isalive
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public String getIsalive() {
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column basicinfo.isalive
* @param isalive the value for basicinfo.isalive
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public void setIsalive(String isalive) {
this.isalive =
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column basicinfo.vchar1
* @return the value of basicinfo.vchar1
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public String getVchar1() {
return vchar1;
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column basicinfo.vchar1
* @param vchar1 the value for basicinfo.vchar1
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public void setVchar1(String vchar1) {
this.vchar1 = vchar1;
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column basicinfo.vchar2
* @return the value of basicinfo.vchar2
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public String getVchar2() {
return vchar2;
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column basicinfo.vchar2
* @param vchar2 the value for basicinfo.vchar2
* @abatorgenerated Wed Jan 05 13:33:43 CST 2011
public void setVchar2(String vchar2) {
this.vchar2 = vchar2;
+ public String getTypecode() {
+ public void setTypecode(String typecode) {
this.typecode =
\ No newline at end of file
Index: pojo/Dictinfo.java
===================================================================
--- pojo/Dictinfo.java (revision 0)
+++ pojo/Dictinfo.java (revision 15)
@@ -0,0 +1,262 @@
+package zzvcom.sys.
+public class Dictinfo {
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column dictinfo.id
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column dictinfo.dictcode
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column dictinfo.typecode
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column dictinfo.info
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column dictinfo.remark
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column dictinfo.updatetime
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
* This field was generated by Abator for iBATIS.
* This field corresponds to the database column dictinfo.dictsort
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column dictinfo.id
* @return the value of dictinfo.id
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public String getId() {
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column dictinfo.id
* @param id the value for dictinfo.id
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public void setId(String id) {
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column dictinfo.dictcode
* @return the value of dictinfo.dictcode
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public String getDictcode() {
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column dictinfo.dictcode
* @param dictcode the value for dictinfo.dictcode
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public void setDictcode(String dictcode) {
this.dictcode =
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column dictinfo.typecode
* @return the value of dictinfo.typecode
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public String getTypecode() {
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column dictinfo.typecode
* @param typecode the value for dictinfo.typecode
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public void setTypecode(String typecode) {
this.typecode =
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column dictinfo.info
* @return the value of dictinfo.info
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public String getInfo() {
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column dictinfo.info
* @param info the value for dictinfo.info
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public void setInfo(String info) {
if(info != null){
info = info.trim();
this.info =
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column dictinfo.remark
* @return the value of dictinfo.remark
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public String getRemark() {
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column dictinfo.remark
* @param remark the value for dictinfo.remark
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public void setRemark(String remark) {
this.remark =
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column dictinfo.updatetime
* @return the value of dictinfo.updatetime
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public String getUpdatetime() {
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column dictinfo.updatetime
* @param updatetime the value for dictinfo.updatetime
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public void setUpdatetime(String updatetime) {
this.updatetime =
* This method was generated by Abator for iBATIS.
* This method returns the value of the database column dictinfo.dictsort
* @return the value of dictinfo.dictsort
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public Integer getDictsort() {
* This method was generated by Abator for iBATIS.
* This method sets the value of the database column dictinfo.dictsort
* @param dictsort the value for dictinfo.dictsort
* @abatorgenerated Fri Dec 10 16:57:21 CST 2010
public void setDictsort(Integer dictsort) {
this.dictsort =
+ public String getTypename() {
+ public void setTypename(String typename) {
this.typename =
public String getIsenable()
public void setIsenable(String isenable)
this.isenable =
+ public String getValuetype() {
+ public void setValuetype(String valuetype) {
this.valuetype =
\ No newline at end of file
Index: pojo/DicttypeExample.java
===================================================================
--- pojo/DicttypeExample.java (revision 0)
+++ pojo/DicttypeExample.java (revision 15)
@@ -0,0 +1,546 @@
+package zzvcom.s}

我要回帖

更多关于 setrequestmethod 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信