jdbcresultset.java
来自「一个可以在applet窗体上持行sql语句并显示返回结果的程序」· Java 代码 · 共 1,814 行 · 第 1/5 页
JAVA
1,814 行
* depends on whether or not the result set can detect updates.
*
* @return true if the row has been visibly updated by the owner or
* another, and updates are detected
*
* @see DatabaseMetaData#updatesAreDetected
*/
//#ifdef JAVA2
public boolean rowUpdated() {
if(Trace.TRACE) Trace.trace();
return false;
}
//#endif JAVA2
/**
* JDBC 2.0
*
* Indicates whether the current row has had an insertion. The value
* returned
* depends on whether or not the result set can detect visible inserts.
*
* @return true if a row has had an insertion and insertions are detected
*
* @see DatabaseMetaData#insertsAreDetected
*/
//#ifdef JAVA2
public boolean rowInserted() {
if(Trace.TRACE) Trace.trace();
return false;
}
//#endif JAVA2
/**
* JDBC 2.0
*
* Indicates whether a row has been deleted. A deleted row may leave
* a visible "hole" in a result set. This method can be used to
* detect holes in a result set. The value returned depends on whether
* or not the result set can detect deletions.
*
* @return true if a row was deleted and deletions are detected
*
* @see DatabaseMetaData#deletesAreDetected
*/
//#ifdef JAVA2
public boolean rowDeleted() {
if(Trace.TRACE) Trace.trace();
return false;
}
//#endif JAVA2
//#ifdef JAVA2
public void updateNull(int column) throws SQLException {
if(Trace.TRACE) Trace.trace(column);
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateBoolean(int column,boolean x) throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateByte(int column,byte x) throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateShort(int column,short x) throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateInt(int column,int x) throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateLong(int column,long x) throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateFloat(int column,float x) throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateDouble(int column,double x) throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateBigDecimal(int column,BigDecimal x) throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateString(int column,String x) throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateBytes(int column,byte[] x) throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateDate(int column,java.sql.Date x) throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateTime(int column,Time x) throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateTimestamp(int column,Timestamp x) throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateAsciiStream(int column,InputStream x,int length)
throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateBinaryStream(int column,InputStream x,int length)
throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateCharacterStream(int column,Reader x,int length)
throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateObject(int column,Object x,int scale)
throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateObject(int column,Object x) throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateNull(String columnName) throws SQLException {
updateNull(findColumn(columnName));
}
//#endif JAVA2
//#ifdef JAVA2
public void updateBoolean(String columnName,boolean x) throws SQLException {
updateBoolean(findColumn(columnName),x);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateByte(String columnName,byte x) throws SQLException {
updateByte(findColumn(columnName),x);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateShort(String columnName,short x) throws SQLException {
updateShort(findColumn(columnName),x);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateInt(String columnName,int x) throws SQLException {
updateInt(findColumn(columnName),x);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateLong(String columnName,long x) throws SQLException {
updateLong(findColumn(columnName),x);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateFloat(String columnName,float x) throws SQLException {
updateFloat(findColumn(columnName),x);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateDouble(String columnName,double x) throws SQLException {
updateDouble(findColumn(columnName),x);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateBigDecimal(String columnName,BigDecimal x)
throws SQLException {
updateBigDecimal(findColumn(columnName),x);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateString(String columnName,String x) throws SQLException {
updateString(findColumn(columnName),x);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateBytes(String columnName,byte[] x) throws SQLException {
updateBytes(findColumn(columnName),x);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateDate(String columnName,java.sql.Date x)
throws SQLException {
updateDate(findColumn(columnName),x);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateTime(String columnName,Time x) throws SQLException {
updateTime(findColumn(columnName),x);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateTimestamp(String columnName,Timestamp x)
throws SQLException {
updateTimestamp(findColumn(columnName),x);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateAsciiStream(String columnName,InputStream x,int length)
throws SQLException {
updateAsciiStream(findColumn(columnName),x,length);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateBinaryStream(String columnName,InputStream x,int length)
throws SQLException {
updateBinaryStream(findColumn(columnName),x,length);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateCharacterStream(String columnName,Reader x,int length)
throws SQLException {
updateCharacterStream(findColumn(columnName),x,length);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateObject(String columnName,Object x,int scale)
throws SQLException {
updateObject(findColumn(columnName),x,scale);
}
//#endif JAVA2
//#ifdef JAVA2
public void updateObject(String columnName,Object x) throws SQLException {
updateObject(findColumn(columnName),x);
}
//#endif JAVA2
/**
* JDBC 2.0
*
* Inserts the contents of the insert row into the result set and
* the database. Must be on the insert row when this method is called.
*
* @exception SQLException if a database access error occurs,
* if called when not on the insert row, or if not all of non-nullable
* columns in
* the insert row have been given a value
*/
//#ifdef JAVA2
public void insertRow() throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
/**
* JDBC 2.0
*
* Updates the underlying database with the new contents of the
* current row. Cannot be called when on the insert row.
*
* @exception SQLException if a database access error occurs or
* if called when on the insert row
*/
//#ifdef JAVA2
public void updateRow() throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
/**
* JDBC 2.0
*
* Deletes the current row from the result set and the underlying
* database. Cannot be called when on the insert row.
*
* @exception SQLException if a database access error occurs or if
* called when on the insert row.
*/
//#ifdef JAVA2
public void deleteRow() throws SQLException {
if(Trace.TRACE) Trace.trace();
throw Trace.error(Trace.FUNCTION_NOT_SUPPORTED);
}
//#endif JAVA2
/**
* JDBC 2.0
*
* Refreshes the current row with its most recent value in
* the database. Cannot be called when on the insert row.
*
* The <code>refreshRow</code> method provides a way for an application to
* explicitly tell the JDBC driver to refetch a row(s) from the
* database. An application may want to call <code>refreshRow</code> when
* caching or prefetching is being done by the JDBC driver to
* fetch the latest value of a row from the database. The JDBC driver
* may actually refresh multiple rows at once if the fetch size is
* greater than one.
*
* All values are refetched subject to the transaction isolation
* level and cursor sensitivity. If <code>refreshRow</code> is called after
* calling <code>updateXXX</code>, but before calling <code>updateRow</code>,
* then the
* updates made to the row are lost. Calling the method
* <code>refreshRow</code> frequently
* will likely slow performance.
*
* @exception SQLException if a database access error occurs or if
* called when on the insert row
*/
//#ifdef JAVA2
public void refreshRow() throws SQLException {
if(Trace.TRACE) Trace.trace();
}
//#endif JAVA2
/**
* JDBC 2.0
*
* Cancels the updates made to a row.
* This method may be called after calling an
* <code>updateXXX</code> method(s) and before calling <code>updateRow</code>
* to rollback
* the updates made to a row. If no updates have been made or
* <code>updateRow</code> has already been called, then this method has no
* effect.
*
* @exception SQLException if a database access error occurs or if
* called when on the insert row
*
*/
//#ifdef JAVA2
public void cancelRowUpdates() throws SQLException {
if(Trace.TRACE) Trace.trace();
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?