package myPk;
import java.io.InputStream;
import java.io.Reader;
import java.math.BigDecimal;
import java.net.URL;
import java.sql.Array;
import java.sql.Blob;
import java.sql.Clob;
import java.sql.Date;
import java.sql.Ref;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.SQLWarning;
import java.sql.Statement;
import java.sql.Time;
import java.sql.Timestamp;
import java.util.Calendar;
import java.util.Map;
public class PageableResultSet2 implements Pageable {
protected java.sql.ResultSet rs=null;
protected int rowsCount;
protected int pageSize;
protected int curPage;
protected String command = "";
public int getCurPage() {
// TODO 自动生成方法存根
return curPage;
}
public int getPageCount() {
// TODO 自动生成方法存根
if(rowsCount==0) return 0;
if(pageSize==0) return 1;
//calculate PageCount
double tmpD=(double)rowsCount/pageSize;
int tmpI=(int)tmpD;
if(tmpD>tmpI) tmpI++;
return tmpI;
}
public int getPageRowsCount() {
// TODO 自动生成方法存根
if(pageSize==0) return rowsCount;
if(getRowsCount()==0) return 0;
if(curPage!=getPageCount()) return pageSize;
return rowsCount-(getPageCount()-1)*pageSize;
}
public int getPageSize() {
// TODO 自动生成方法存根
return pageSize;
}
public int getRowsCount() {
// TODO 自动生成方法存根
return rowsCount;
}
public void gotoPage(int page) {
// TODO 自动生成方法存根
if (rs == null)
return;
if (page < 1)
page = 1;
if (page > getPageCount())
page = getPageCount();
int row = (page - 1) * pageSize + 1;
try {
rs.absolute(row);
curPage = page;
}
catch (java.sql.SQLException e) {
}
}
public void pageFirst() throws SQLException {
// TODO 自动生成方法存根
int row=(curPage-1)*pageSize+1;
rs.absolute(row);
}
public void pageLast() throws SQLException {
// TODO 自动生成方法存根
int row=(curPage-1)*pageSize+getPageRowsCount();
rs.absolute(row);
}
public void setPageSize(int pageSize) {
// TODO 自动生成方法存根
if(pageSize>=0){
this.pageSize=pageSize;
curPage=1;
}
}
public boolean absolute(int row) throws SQLException {
// TODO 自动生成方法存根
return false;
}
public void afterLast() throws SQLException {
// TODO 自动生成方法存根
}
public void beforeFirst() throws SQLException {
// TODO 自动生成方法存根
}
public void cancelRowUpdates() throws SQLException {
// TODO 自动生成方法存根
}
public void clearWarnings() throws SQLException {
// TODO 自动生成方法存根
}
public void close() throws SQLException {
// TODO 自动生成方法存根
}
public void deleteRow() throws SQLException {
// TODO 自动生成方法存根
}
public int findColumn(String columnName) throws SQLException {
// TODO 自动生成方法存根
return 0;
}
public boolean first() throws SQLException {
// TODO 自动生成方法存根
return false;
}
public Array getArray(int i) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public Array getArray(String colName) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public InputStream getAsciiStream(int columnIndex) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public InputStream getAsciiStream(String columnName) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public BigDecimal getBigDecimal(int columnIndex) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public BigDecimal getBigDecimal(String columnName) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public BigDecimal getBigDecimal(int columnIndex, int scale)
throws SQLException {
// TODO 自动生成方法存根
return null;
}
public BigDecimal getBigDecimal(String columnName, int scale)
throws SQLException {
// TODO 自动生成方法存根
return null;
}
public InputStream getBinaryStream(int columnIndex) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public InputStream getBinaryStream(String columnName) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public Blob getBlob(int i) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public Blob getBlob(String colName) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public boolean getBoolean(int columnIndex) throws SQLException {
// TODO 自动生成方法存根
return false;
}
public boolean getBoolean(String columnName) throws SQLException {
// TODO 自动生成方法存根
return false;
}
public byte getByte(int columnIndex) throws SQLException {
// TODO 自动生成方法存根
return 0;
}
public byte getByte(String columnName) throws SQLException {
// TODO 自动生成方法存根
return 0;
}
public byte[] getBytes(int columnIndex) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public byte[] getBytes(String columnName) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public Reader getCharacterStream(int columnIndex) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public Reader getCharacterStream(String columnName) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public Clob getClob(int i) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public Clob getClob(String colName) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public int getConcurrency() throws SQLException {
// TODO 自动生成方法存根
return 0;
}
public String getCursorName() throws SQLException {
// TODO 自动生成方法存根
return null;
}
public Date getDate(int columnIndex) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public Date getDate(String columnName) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public Date getDate(int columnIndex, Calendar cal) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public Date getDate(String columnName, Calendar cal) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public double getDouble(int columnIndex) throws SQLException {
// TODO 自动生成方法存根
return 0;
}
public double getDouble(String columnName) throws SQLException {
// TODO 自动生成方法存根
return 0;
}
public int getFetchDirection() throws SQLException {
// TODO 自动生成方法存根
return 0;
}
public int getFetchSize() throws SQLException {
// TODO 自动生成方法存根
return 0;
}
public float getFloat(int columnIndex) throws SQLException {
// TODO 自动生成方法存根
return 0;
}
public float getFloat(String columnName) throws SQLException {
// TODO 自动生成方法存根
return 0;
}
public int getInt(int columnIndex) throws SQLException {
// TODO 自动生成方法存根
return 0;
}
public int getInt(String columnName) throws SQLException {
// TODO 自动生成方法存根
return 0;
}
public long getLong(int columnIndex) throws SQLException {
// TODO 自动生成方法存根
return 0;
}
public long getLong(String columnName) throws SQLException {
// TODO 自动生成方法存根
return 0;
}
public ResultSetMetaData getMetaData() throws SQLException {
// TODO 自动生成方法存根
return null;
}
public Object getObject(int columnIndex) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public Object getObject(String columnName) throws SQLException {
// TODO 自动生成方法存根
return null;
}
public Object getObject(int arg0, Map<String, Class<?>> arg1)
throws SQLException {
// TODO 自动生成方法存根
return null;
}
没有合适的资源?快使用搜索试试~ 我知道了~
网上图书管理系统
共113个文件
gif:42个
jsp:27个
jpg:18个
5星 · 超过95%的资源 需积分: 10 18 下载量 32 浏览量
2007-12-23
14:42:59
上传
评论 2
收藏 1.76MB RAR 举报
温馨提示
网上管理的图书小店,可以很好的管理你的图书
资源推荐
资源详情
资源评论
收起资源包目录
网上图书管理系统 (113个子文件)
PageableResultSet2.class 18KB
Md5.class 8KB
FileUploadBean.class 4KB
Conn.class 2KB
Pageable.class 403B
.classpath 473B
org.eclipse.wst.common.component 404B
blue.css 5KB
Thumbs.db 128KB
Thumbs.db 49KB
Thumbs.db 25KB
网上书店.doc 1.33MB
目录.doc 25KB
titleBg.gif 4KB
logo.gif 3KB
go-2.gif 2KB
newTitle.GIF 2KB
reply.GIF 2KB
search-button.gif 1KB
go.gif 1KB
biaoshi.gif 1KB
EDIT.GIF 1KB
BB_EMAIL.GIF 1KB
BB_QUOTE.GIF 1KB
toFirst-2.gif 1020B
toLast-2.gif 1014B
bg.gif 820B
toLast.gif 714B
toFirst.gif 709B
toLeftStep-2.gif 625B
toRightStep-2.gif 624B
toRightStep.gif 588B
toLeftStep.gif 588B
SWF.GIF 404B
shoppingBag.gif 353B
BB_URL.GIF 192B
brkspace.gif 187B
search-mode.gif 145B
inserthorizontalrule.gif 140B
BB_IMAGE.GIF 134B
REDO.GIF 107B
UNDO.GIF 106B
order.gif 88B
bb_underline.gif 86B
bb_italicize.gif 79B
BB_BOLD.GIF 76B
vLine.gif 74B
search-right.gif 73B
search-left.gif 72B
justifyright.gif 70B
justifycenter.gif 70B
justifyfull.gif 70B
justifyleft.gif 70B
broken-line.gif 63B
search-bg.gif 54B
PageableResultSet2.java 18KB
Md5.java 15KB
FileUploadBean.java 5KB
Conn.java 1KB
Pageable.java 695B
book.jpg 102KB
user.jpg 89KB
campaign.jpg 80KB
hotSearch.jpg 79KB
topic.jpg 77KB
orderTotal.jpg 77KB
follow.jpg 77KB
orderItem.jpg 75KB
topic-follow.jpg 73KB
19.jpg 58KB
35.jpg 19KB
34.jpg 17KB
21.jpg 15KB
25.jpg 6KB
33.jpg 6KB
1.jpg 6KB
23.jpg 4KB
bgLine.jpg 392B
forum-topic.jsp 27KB
forum-add.jsp 13KB
book-information.jsp 11KB
admin-user.jsp 9KB
deal-order.jsp 8KB
admin-book.jsp 8KB
index-main.jsp 8KB
forum.jsp 8KB
admin-book-add.jsp 7KB
search.jsp 7KB
save-admin-book.jsp 6KB
head.jsp 6KB
book-list.jsp 5KB
tip.jsp 4KB
show-order.jsp 4KB
user.jsp 4KB
show-check.jsp 3KB
upload-file.jsp 3KB
save-user.jsp 3KB
save-topic.jsp 3KB
bottom.jsp 2KB
userLogin.jsp 2KB
共 113 条
- 1
- 2
资源评论
- tangshining2012-09-29功能很全,非常好的代码
离石的雨
- 粉丝: 6
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功