java实现的可配置的工作流引擎,采用jsp+javabean实现

源代码在线查看: roleiteratorformbean.java

软件大小: 10703 K
上传用户: philipsx
关键词: javabean java jsp 可配置
下载地址: 免注册下载 普通下载 VIP

相关代码

				package com.hongsoft.res.formbean;
				
				import java.util.*;
				
				import com.hongsoft.res.pojo.Role;
				
				public class RoleIteratorFormBean {/**
				   * 角色名
				   */
				  private String roleName = null;
				  /**
				   * 查询返回结果起始位置
				   */
				  private int startIndex = 0;
				  /**
				   * 查询返回结果结尾位置
				   */
				  private int endIndex = 10;
				  /**
				   * 查询结果数
				   * 庄国坤改为-1
				   */
				  private int count=-1;
				  private Iterator itr = null;
				  /**
				   * @param itr 用户信息(UserFormBean)的Iterator
				   */
				  public RoleIteratorFormBean(Iterator itr){
				    this.itr = itr;
				  }
				
				  public RoleIteratorFormBean(){
				  }
				
				  public void setItr(Iterator itr){
				      this.itr=itr;
				  }
				  public Iterator getItr(){
				      return itr;
				  }
				  public boolean hasNext(){
				    if(itr==null) return false;
				    return itr.hasNext();
				  }
				  public Role next(){
				    return (Role)itr.next();
				  }
				  public void remove(){
				    itr.remove();
				  }
				  public int getEndIndex() {
				    return endIndex;
				  }
				  public void setEndIndex(int endIndex) {
				    this.endIndex = endIndex;
				  }
				  public void setStartIndex(int startIndex) {
				    this.startIndex = startIndex;
				  }
				  public int getStartIndex() {
				    return startIndex;
				  }
				  public String getRoleName() {
				    return roleName;
				  }
				  public void setRoleName(String roleName) {
				    this.roleName = roleName;
				  }
				  public int getCount() {
				    return count;
				  }
				  public void setCount(int count) {
				    this.count = count;
				  }
				}			

相关资源