com.easyjf.web.tools
Class AbstractCrudAction

java.lang.Object
  extended bycom.easyjf.web.tools.AbstractCrudAction
All Implemented Interfaces:
ICommCRUDAction, IWebAction

public abstract class AbstractCrudAction
extends java.lang.Object
implements ICommCRUDAction, IWebAction

Title: 通过添删改查(CRUD)处理Action类

Description: 处理普通数据表的添删改查(CRUD)处理的抽象类,用户只需继承该Action,并根据自身的情况实现其中的模板方法即可。

Copyright: Copyright (c) 2006

Company: www.easyjf.com

Version:
1.0
Author:
蔡世友

Constructor Summary
AbstractCrudAction()
           
 
Method Summary
 Page doAdd(WebForm form, Module module, IActiveUser user)
           
abstract  void doAfter(WebForm form, Module module)
           
abstract  java.lang.Object doBefore(WebForm form, Module module)
           
 Page doDel(WebForm form, Module module, IActiveUser user)
           
 Page doEdit(WebForm form, Module module, IActiveUser user)
           
abstract  void doInit(WebForm form, Module module)
           
abstract  Page doOtherAction(WebForm form, Module module)
           
abstract  IPageList doQuery(WebForm form, int currentPage, int pageSize, IActiveUser user)
           
 Page doQuery(WebForm form, Module module, IActiveUser user)
           
 Page doUpdate(WebForm form, Module module, IActiveUser user)
           
 Page execute(WebForm form, Module module)
          执行Action接口
abstract  java.lang.Object form2Obj(WebForm form, IActiveUser user)
           
abstract  IActiveUser getCurrentUser(WebForm form)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCrudAction

public AbstractCrudAction()
Method Detail

execute

public Page execute(WebForm form,
                    Module module)
             throws java.lang.Exception
Description copied from interface: IWebAction
执行Action接口

Specified by:
execute in interface IWebAction
Parameters:
form -
module -
Returns:
显示数据的模板或直接跳转的URL
Throws:
java.lang.Exception

doAdd

public Page doAdd(WebForm form,
                  Module module,
                  IActiveUser user)
Specified by:
doAdd in interface ICommCRUDAction

doUpdate

public Page doUpdate(WebForm form,
                     Module module,
                     IActiveUser user)
Specified by:
doUpdate in interface ICommCRUDAction

doEdit

public Page doEdit(WebForm form,
                   Module module,
                   IActiveUser user)
Specified by:
doEdit in interface ICommCRUDAction

doDel

public Page doDel(WebForm form,
                  Module module,
                  IActiveUser user)
Specified by:
doDel in interface ICommCRUDAction

doQuery

public Page doQuery(WebForm form,
                    Module module,
                    IActiveUser user)
Specified by:
doQuery in interface ICommCRUDAction

doQuery

public abstract IPageList doQuery(WebForm form,
                                  int currentPage,
                                  int pageSize,
                                  IActiveUser user)

doInit

public abstract void doInit(WebForm form,
                            Module module)

getCurrentUser

public abstract IActiveUser getCurrentUser(WebForm form)

doBefore

public abstract java.lang.Object doBefore(WebForm form,
                                          Module module)

doAfter

public abstract void doAfter(WebForm form,
                             Module module)

form2Obj

public abstract java.lang.Object form2Obj(WebForm form,
                                          IActiveUser user)

doOtherAction

public abstract Page doOtherAction(WebForm form,
                                   Module module)