⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testgetstuentlistbypageno.java

📁 JSP编写的汽车门户系统
💻 JAVA
字号:
/**
 *  (c) Copyright 2007 computer01
 *
 *   FILENAME     :  TestgetStuEntListByPageno.java
 *   PACKAGE      :  com.computer03.test
 *   CREATE DATE  : 2007-12-10
 *   AUTHOR       :  admin
 *   DESCRIPTION  :  
 */
package com.computer03.test;

import java.util.Iterator;
import java.util.List;

import com.computer03.entity.AllEntity;
import com.computer03.entity.TAB_STUDENTS;
import com.computer03.entitysupport.StudentsAssiImpl;

public class TestgetStuEntListByPageno {
	public static void testStuEntListByPageno(
			AllEntity condition,
			int pageno,
			int pernum){
		StudentsAssiImpl stuimpl =
			new StudentsAssiImpl();
		List pagelist = 
			stuimpl.getStuEntListByPageno(
					condition,
					pageno,
					pernum);
		Iterator iter = 
			pagelist.iterator();
		while(iter.hasNext()){
			AllEntity allentity = 
				(AllEntity)iter.next();
			TAB_STUDENTS stu  =
				allentity.getStudent();
			System.out.println("学号:"
					+ stu.getSTUNO());
		}
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		AllEntity condition = new AllEntity();
		int pernum = 5;
		int pageno = 1;
		int alllen;
		StudentsAssiImpl stuimpl
			= new StudentsAssiImpl();
		alllen = stuimpl
		.getEntityList(condition).size();
		System.out.println("总共分 "+
				((alllen-1)/pernum+1)+" 页");
		for(;pageno<=alllen/pernum+1;
		pageno++){
		System.out.println("第"+pageno+"页");
		TestgetStuEntListByPageno
		.testStuEntListByPageno(
				condition
				, pageno, pernum);
		System.out.println("--------------------");
		}
	}

}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -