java实现的可配置的工作流引擎,采用jsp+javabean实现
源代码在线查看: useriteratorformbean.java
package com.hongsoft.res.formbean;
import com.hongsoft.res.pojo.User;
import java.util.*;
public class UserIteratorFormBean {
/**
* 用户名
*/
private String userName = null;
/**
* 登录名
*/
private String loginName = null;
/**
* 查询返回结果起始位置
*/
private int startIndex = 0;
/**
* 查询返回结果结尾位置
*/
private int endIndex = 10;
/**
* 查询结果数
* 庄国坤将初始值改为-1.
*/
private int totalNum = -1;
private Iterator itr = null;
//要查询的是哪个部门的用户
private int orgID=0;
public int getOrgID()
{
return orgID;
}
public void setOrgID(int orgID)
{
this.orgID=orgID;
}
/**
* @param itr 用户信息(UserFormBean)的Iterator
*/
public UserIteratorFormBean(Iterator itr) {
this.itr = itr;
}
public UserIteratorFormBean() {
}
public boolean hasNext() {
if (itr==null) return false;
return itr.hasNext();
}
public User next() {
return (User) itr.next();
}
public void remove() {
itr.remove();
}
public int getEndIndex() {
return endIndex;
}
public void setEndIndex(int endIndex) {
this.endIndex = endIndex;
}
public String getLoginName() {
return loginName;
}
public void setLoginName(String loginName) {
this.loginName = loginName;
}
public void setStartIndex(int startIndex) {
this.startIndex = startIndex;
}
public int getStartIndex() {
return startIndex;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public int getCount() {
return totalNum;
}
public void setCount(int count) {
this.totalNum = count;
}
public void setItr(Iterator itr) {
this.itr = itr;
}
public Iterator getItr() {
return itr;
}
public int getTotalNum() {
return totalNum;
}
public void setTotalNum(int totalNum) {
this.totalNum = totalNum;
}
}