PageableResultSet2.java
上传用户:u_thks
上传日期:2022-07-31
资源大小:1910k
文件大小:29k
源码类别:
WEB源码(ASP,PHP,...)
开发平台:
Java
- package com.gamvan.sql;
- import java.sql.*;
- public class PageableResultSet2 implements Pageable {
- protected java.sql.ResultSet rs=null;
- protected int rowsCount;
- protected int pageSize ;
- protected int curPage;
- protected String command = "" ;
- public PageableResultSet2(java.sql.ResultSet rs) throws java.sql.SQLException {
- if(rs==null) throw new SQLException("given ResultSet is NULL","user");
- rs.last();
- rowsCount=rs.getRow();
- rs.beforeFirst();
- this.rs=rs;
- }
- public PageableResultSet2(java.sql.ResultSet rs, String command) throws java.sql.SQLException {
- if(rs==null) throw new SQLException("given ResultSet is NULL","user");
- rs.last();
- rowsCount=rs.getRow();
- rs.beforeFirst();
- this.rs=rs;
- this.command = command;
- }
- public int getCurPage() {
- return curPage;
- }
- //////////////////////////
- public java.net.URL getURL(String columnName) throws SQLException{
- return rs.getURL(columnName);
- }
- public java.net.URL getURL(int columnName) throws SQLException{
- return rs.getURL(columnName);
- }
- /////////////////////////////////
- public int getPageCount() {
- 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() {
- if(pageSize==0) return rowsCount;
- if(getRowsCount()==0) return 0;
- if(curPage!=getPageCount()) return pageSize;
- return rowsCount-(getPageCount()-1)*pageSize;
- }
- public int getPageSize() {
- return pageSize;
- }
- public int getRowsCount() {
- return rowsCount;
- }
- public void gotoPage(int page) {
- 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 java.sql.SQLException {
- int row=(curPage-1)*pageSize+1;
- rs.absolute(row);
- }
- public void pageLast() throws java.sql.SQLException {
- int row=(curPage-1)*pageSize+getPageRowsCount();
- rs.absolute(row);
- }
- public void setPageSize(int pageSize) {
- if(pageSize>=0){
- this.pageSize=pageSize;
- curPage=1;
- }
- }
- //============================================================================
- public boolean absolute(int row) throws SQLException {
- return rs.absolute(row);
- }
- public void afterLast() throws SQLException {
- rs.afterLast();
- }
- public void beforeFirst() throws SQLException {
- rs.beforeFirst();
- }
- public void cancelRowUpdates() throws SQLException {
- rs.cancelRowUpdates();
- }
- public void clearWarnings() throws SQLException {
- rs.clearWarnings();
- }
- public void close() throws SQLException {
- rs.close();
- }
- public void deleteRow() throws SQLException {
- rs.deleteRow();
- }
- public int findColumn(String columnName) throws SQLException { try
- {
- return rs.findColumn(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException(e.toString()+ "/"+columnName + "/"+this.getCommand());
- }
- }
- public boolean first() throws SQLException {
- return rs.first();
- }
- public Array getArray(int i) throws SQLException {
- try
- {
- return rs.getArray(i);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+i
- +"rnSQL="+this.getCommand());
- }
- }
- public Array getArray(String colName) throws SQLException {
- try
- {
- return rs.getArray(colName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+colName
- +"rnSQL="+this.getCommand());
- }
- }
- public java.io.InputStream getAsciiStream(int columnIndex) throws SQLException {
- try
- {
- return rs.getAsciiStream(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public java.io.InputStream getAsciiStream(String columnName) throws SQLException{
- try
- {
- return rs.getAsciiStream(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public java.math.BigDecimal getBigDecimal(int columnIndex) throws SQLException {
- try
- {
- return rs.getBigDecimal(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public java.math.BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException {
- throw new SQLException("Deprecated Method, Don't Call it!","user");
- }
- public java.math.BigDecimal getBigDecimal(String columnName) throws SQLException {
- try
- {
- return rs.getBigDecimal(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public java.math.BigDecimal getBigDecimal(String columnName, int scale) throws SQLException {
- throw new SQLException("Deprecated Method, Don't Call it!","user");
- }
- public java.io.InputStream getBinaryStream(int columnIndex) throws SQLException{
- try
- {
- return rs.getBinaryStream(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public java.io.InputStream getBinaryStream(String columnName) throws SQLException {
- try
- {
- return rs.getBinaryStream(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public Blob getBlob(int columnIndex) throws SQLException {
- try
- {
- return rs.getBlob(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public Blob getBlob(String colName) throws SQLException{
- try
- {
- return rs.getBlob(colName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+colName
- +"rnSQL="+this.getCommand());
- }
- }
- public boolean getBoolean(int columnIndex) throws SQLException {
- try
- {
- return rs.getBoolean(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public boolean getBoolean(String columnName) throws SQLException {
- try
- {
- return rs.getBoolean(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public byte getByte(int columnIndex) throws SQLException {
- try
- {
- return rs.getByte(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public byte getByte(String columnName) throws SQLException{
- try
- {
- return rs.getByte(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public byte[] getBytes(int columnIndex) throws SQLException {
- try
- {
- return rs.getBytes(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public byte[] getBytes(String columnName) throws SQLException{
- try
- {
- return rs.getBytes(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public java.io.Reader getCharacterStream(int columnIndex) throws SQLException {
- try
- {
- return rs.getCharacterStream(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public java.io.Reader getCharacterStream(String columnName) throws SQLException {
- try
- {
- return rs.getCharacterStream(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public Clob getClob(int i) throws SQLException {
- try
- {
- return rs.getClob(i);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+i
- +"rnSQL="+this.getCommand());
- }
- }
- public Clob getClob(String colName) throws SQLException{
- try
- {
- return rs.getClob(colName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+colName
- +"rnSQL="+this.getCommand());
- }
- }
- public java.lang.String getCommand() {
- return command;
- }
- public int getConcurrency() throws SQLException {
- return rs.getConcurrency();
- }
- public String getCursorName() throws SQLException {
- return rs.getCursorName();
- }
- public Date getDate(int columnIndex) throws SQLException{
- try
- {
- return rs.getDate(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public Date getDate(int columnIndex, java.util.Calendar cal) throws SQLException{
- try
- {
- return rs.getDate(columnIndex,cal);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public Date getDate(String columnName) throws SQLException{
- try
- {
- return rs.getDate(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public Date getDate(String columnName, java.util.Calendar cal) throws SQLException {
- try
- {
- return rs.getDate(columnName,cal);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public double getDouble(int columnIndex) throws SQLException {
- try
- {
- return rs.getDouble(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public double getDouble(String columnName) throws SQLException {
- try
- {
- return rs.getDouble(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public int getFetchDirection() throws SQLException {
- return rs.getFetchDirection();
- }
- public int getFetchSize() throws SQLException {
- return rs.getFetchSize();
- }
- public float getFloat(int columnIndex) throws SQLException{
- try
- {
- return rs.getFloat(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public float getFloat(String columnName) throws SQLException {
- try
- {
- return rs.getFloat(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public int getInt(int columnIndex) throws SQLException {
- try
- {
- return rs.getInt(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public int getInt(String columnName) throws SQLException {
- try
- {
- return rs.getInt(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public long getLong(int columnIndex) throws SQLException{
- try
- {
- return rs.getLong(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public long getLong(String columnName) throws SQLException {
- try
- {
- return rs.getLong(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public ResultSetMetaData getMetaData() throws SQLException {
- return rs.getMetaData();
- }
- public Object getObject(int columnIndex) throws SQLException{
- try
- {
- return rs.getObject(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public Object getObject(int i, java.util.Map map) throws SQLException{
- try
- {
- return rs.getObject(i,map);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+i
- +"rnSQL="+this.getCommand());
- }
- }
- public Object getObject(String columnName) throws SQLException{
- try
- {
- return rs.getObject(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public Object getObject(String colName, java.util.Map map) throws SQLException {
- try
- {
- return rs.getObject(colName,map);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+colName
- +"rnSQL="+this.getCommand());
- }
- }
- public Ref getRef(int i) throws SQLException {
- return rs.getRef(i);
- }
- public Ref getRef(String colName) throws SQLException {
- return rs.getRef(colName);
- }
- public int getRow() throws SQLException {
- return rs.getRow();
- }
- public short getShort(int columnIndex) throws SQLException {
- try
- {
- return rs.getShort(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public short getShort(String columnName) throws SQLException {
- try
- {
- return rs.getShort(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public Statement getStatement() throws SQLException {
- return rs.getStatement();
- }
- public String getString(int columnIndex) throws SQLException {
- try
- {
- return rs.getString(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public String getString(String columnName) throws SQLException{
- try
- {
- return rs.getString(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.toString()+" columnName="
- +columnName+"rnSQL="+this.getCommand());
- }
- }
- public Time getTime(int columnIndex) throws SQLException {
- try
- {
- return rs.getTime(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public Time getTime(int columnIndex, java.util.Calendar cal) throws SQLException {
- try
- {
- return rs.getTime(columnIndex,cal);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public Time getTime(String columnName) throws SQLException{
- try
- {
- return rs.getTime(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public Time getTime(String columnName, java.util.Calendar cal) throws SQLException {
- try
- {
- return rs.getTime(columnName,cal);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public Timestamp getTimestamp(int columnIndex) throws SQLException {
- try
- {
- return rs.getTimestamp(columnIndex);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public Timestamp getTimestamp(int columnIndex, java.util.Calendar cal) throws SQLException{
- try
- {
- return rs.getTimestamp(columnIndex,cal);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" column Index="+columnIndex
- +"rnSQL="+this.getCommand());
- }
- }
- public Timestamp getTimestamp(String columnName) throws SQLException{
- try
- {
- return rs.getTimestamp(columnName);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public Timestamp getTimestamp(String columnName, java.util.Calendar cal) throws SQLException{
- try
- {
- return rs.getTimestamp(columnName,cal);
- }
- catch (SQLException e)
- {
- throw new SQLException (e.getMessage()+" columnName="+columnName
- +"rnSQL="+this.getCommand());
- }
- }
- public int getType() throws SQLException {
- return rs.getType();
- }
- public java.io.InputStream getUnicodeStream(int columnIndex) throws SQLException {
- throw new SQLException("Deprecated Method, Don't Call it!","user");
- }
- public java.io.InputStream getUnicodeStream(String columnName) throws SQLException {
- throw new SQLException("Deprecated Method, Don't Call it!","user");
- }
- public SQLWarning getWarnings() throws SQLException {
- return rs.getWarnings();
- }
- public void insertRow() throws SQLException {
- rs.insertRow();
- }
- public boolean isAfterLast() throws SQLException {
- return rs.isAfterLast();
- }
- public boolean isBeforeFirst() throws SQLException {
- return rs.isBeforeFirst();
- }
- public boolean isFirst() throws SQLException {
- return rs.isFirst();
- }
- public boolean isLast() throws SQLException {
- return rs.isLast();
- }
- public boolean last() throws SQLException {
- return rs.last();
- }
- public void moveToCurrentRow() throws SQLException {
- rs.moveToCurrentRow();
- }
- public void moveToInsertRow() throws SQLException {
- rs.moveToInsertRow();
- }
- public boolean next() throws SQLException {
- return rs.next();
- }
- public boolean previous() throws SQLException {
- return rs.previous();
- }
- public void refreshRow() throws SQLException {
- rs.refreshRow();
- }
- public boolean relative(int rows) throws SQLException {
- return rs.relative(rows);
- }
- public boolean rowDeleted() throws SQLException {
- return rs.rowDeleted();
- }
- public boolean rowInserted() throws SQLException {
- return rs.rowInserted();
- }
- public boolean rowUpdated() throws SQLException {
- return rs.rowUpdated();
- }
- public void setFetchDirection(int direction) throws SQLException {
- rs.setFetchDirection(direction);
- }
- public void setFetchSize(int rows) throws SQLException {
- rs.setFetchSize(rows);
- }
- public void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws SQLException {
- rs.updateAsciiStream(columnIndex,x,length);
- }
- public void updateAsciiStream(String columnName, java.io.InputStream x, int length) throws SQLException {
- rs.updateAsciiStream(columnName,x,length);
- }
- public void updateBigDecimal(int columnIndex, java.math.BigDecimal x) throws SQLException {
- rs.updateBigDecimal(columnIndex,x);
- }
- public void updateBigDecimal(String columnName, java.math.BigDecimal x) throws SQLException {
- rs.updateBigDecimal(columnName,x);
- }
- public void updateBinaryStream(int columnIndex, java.io.InputStream x, int length) throws SQLException {
- rs.updateBinaryStream(columnIndex,x,length);
- }
- public void updateBinaryStream(String columnName, java.io.InputStream x, int length) throws SQLException {
- rs.updateBinaryStream(columnName,x,length);
- }
- public void updateBoolean(int columnIndex, boolean x) throws SQLException {
- rs.updateBoolean(columnIndex,x);
- }
- public void updateBoolean(String columnName, boolean x) throws SQLException {
- rs.updateBoolean(columnName,x);
- }
- public void updateByte(int columnIndex, byte x) throws SQLException {
- rs.updateByte(columnIndex,x);
- }
- public void updateByte(String columnName, byte x) throws SQLException {
- rs.updateByte(columnName,x);
- }
- public void updateBytes(int columnIndex, byte[] x) throws SQLException {
- rs.updateBytes(columnIndex,x);
- }
- public void updateBytes(String columnName, byte[] x) throws SQLException {
- rs.updateBytes(columnName,x);
- }
- ///////////////////////////////////////////////////
- public void updateArray(int columnIndex, java.sql.Array x) throws SQLException{
- rs.updateArray(columnIndex, x);
- }
- public void updateArray(String columnName, java.sql.Array x) throws SQLException{
- rs.updateArray(columnName, x);
- }
- public void updateBlob(int columnIndex, java.sql.Blob x) throws SQLException{
- rs.updateBlob(columnIndex,x);
- }
- public void updateBlob(String columnIndex, java.sql.Blob x) throws SQLException{
- rs.updateBlob(columnIndex,x);
- }
- public void updateClob(int columnIndex, java.sql.Clob x) throws SQLException{
- rs.updateClob(columnIndex, x);
- }
- public void updateClob(String columnIndex, java.sql.Clob x) throws SQLException{
- rs.updateClob(columnIndex, x);
- }
- public void updateRef(int columnIndex, java.sql.Ref x) throws SQLException{
- rs.updateRef(columnIndex, x);
- }
- public void updateRef(String columnName, java.sql.Ref x) throws SQLException{
- rs.updateRef(columnName, x);
- }
- /////////////////////////////////////////////////////
- public void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws SQLException {
- rs.updateCharacterStream(columnIndex,x,length);
- }
- public void updateCharacterStream(String columnName, java.io.Reader reader, int length) throws SQLException {
- rs.updateCharacterStream(columnName,reader,length);
- }
- public void updateDate(int columnIndex, Date x) throws SQLException {
- rs.updateDate(columnIndex,x);
- }
- public void updateDate(String columnName, Date x) throws SQLException {
- rs.updateDate(columnName,x);
- }
- public void updateDouble(int columnIndex, double x) throws SQLException {
- rs.updateDouble(columnIndex,x);
- }
- public void updateDouble(String columnName, double x) throws SQLException {
- rs.updateDouble(columnName,x);
- }
- public void updateFloat(int columnIndex, float x) throws SQLException {
- rs.updateFloat(columnIndex,x);
- }
- public void updateFloat(String columnName, float x) throws SQLException {
- rs.updateFloat(columnName,x);
- }
- public void updateInt(int columnIndex, int x) throws SQLException {
- rs.updateInt(columnIndex,x);
- }
- public void updateInt(String columnName, int x) throws SQLException {
- rs.updateInt(columnName,x);
- }
- public void updateLong(int columnIndex, long x) throws SQLException {
- rs.updateLong(columnIndex,x);
- }
- public void updateLong(String columnName, long x) throws SQLException {
- rs.updateLong(columnName,x);
- }
- public void updateNull(int columnIndex) throws SQLException {
- rs.updateNull(columnIndex);
- }
- public void updateNull(String columnName) throws SQLException {
- rs.updateNull(columnName);
- }
- public void updateObject(int columnIndex, Object x) throws SQLException {
- rs.updateObject(columnIndex,x);
- }
- public void updateObject(int columnIndex, Object x, int scale) throws SQLException {
- rs.updateObject(columnIndex,x,scale);
- }
- public void updateObject(String columnName, Object x) throws SQLException {
- rs.updateObject(columnName,x);
- }
- public void updateObject(String columnName, Object x, int scale) throws SQLException {
- rs.updateObject(columnName,x,scale);
- }
- public void updateRow() throws SQLException {
- rs.updateRow();
- }
- public void updateShort(int columnIndex, short x) throws SQLException {
- rs.updateShort(columnIndex,x);
- }
- public void updateShort(String columnName, short x) throws SQLException {
- rs.updateShort(columnName,x);
- }
- public void updateString(int columnIndex, String x) throws SQLException {
- rs.updateString(columnIndex, x);
- }
- public void updateString(String columnName, String x) throws SQLException {
- rs.updateString(columnName,x);
- }
- public void updateTime(int columnIndex, Time x) throws SQLException {
- rs.updateTime(columnIndex,x);
- }
- public void updateTime(String columnName, Time x) throws SQLException {
- rs.updateTime(columnName,x);
- }
- public void updateTimestamp(int columnIndex, Timestamp x) throws SQLException {
- rs.updateTimestamp(columnIndex,x);
- }
- public void updateTimestamp(String columnName, Timestamp x) throws SQLException {
- rs.updateTimestamp(columnName,x);
- }
- public boolean wasNull() throws SQLException {
- return rs.wasNull();
- }
- }