Java Doc for tinySQLResultSet.java in  » Database-DBMS » TinySQL » com » sqlmagic » tinysql » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Database DBMS » TinySQL » com.sqlmagic.tinysql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sqlmagic.tinysql.tinySQLResultSet

tinySQLResultSet
public class tinySQLResultSet implements java.sql.ResultSet(Code)

author:
   Thomas Morgner
author:
  

    author:
      
  • tinySQLResultSet now holds a reference
    author:
       to statement which created it. If the resultset was not created by an statement,
    author:
       null is returned (f.i. used in DatabaseMetaData-Queries).
    author:
      
  • Changed the code to support setting a fetchsize for queries.
    author:
      
  • Parsing of dates corrected to format yyyyMMdd
    author:
      
  • Now supporting the FetchDirection methods, getType().
    author:
      
  • Concurrency is not returned as CONCUR_READ_ONLY as lowest common standard.
    author:
      
  • getColumnTypes returns now values given in tsResultSet and does not try to
    author:
       guess from strings.
    author:
      


Field Summary
 intCONCUR_READ_ONLY
     JDBC 2.0 The concurrency mode for a ResultSet object that may NOT be updated.
 intCONCUR_UPDATABLE
     JDBC 2.0 The concurrency mode for a ResultSet object that may be updated.
 intFETCH_FORWARD
     JDBC 2.0 The rows in a result set will be processed in a forward direction; first-to-last.
 intFETCH_REVERSE
     JDBC 2.0 The rows in a result set will be processed in a reverse direction; last-to-first.
 intFETCH_UNKNOWN
     JDBC 2.0 The order in which rows in a result set will be processed is unknown.
 intTYPE_FORWARD_ONLY
     JDBC 2.0 The type for a ResultSet object whose cursor may move only forward.
 intTYPE_SCROLL_INSENSITIVE
     JDBC 2.0 The type for a ResultSet object that is scrollable but generally not sensitive to changes made by others.
 intTYPE_SCROLL_SENSITIVE
     JDBC 2.0 The type for a ResultSet object that is scrollable and generally sensitive to changes made by others.

Constructor Summary
public  tinySQLResultSet(tsResultSet res, tinySQLStatement inputStatement)
    
public  tinySQLResultSet(tsResultSet res, tinySQLPreparedStatement inputStatement)
    

Method Summary
public  booleanabsolute(int row)
     JDBC 2.0

Moves the cursor to the given row number in the result set.

If the row number is positive, the cursor moves to the given row number with respect to the beginning of the result set.

public  voidafterLast()
     JDBC 2.0

Moves the cursor to the end of the result set, just after the last row.

public  voidbeforeFirst()
     JDBC 2.0

Moves the cursor to the front of the result set, just before the first row.

public  voidcancelRowUpdates()
     JDBC 2.0 Cancels the updates made to a row. This method may be called after calling an updateXXX method(s) and before calling updateRow to rollback the updates made to a row.
public  voidclearWarnings()
     Clear the chain of warnings.
public  voidclose()
    
public  voiddeleteRow()
     JDBC 2.0 Deletes the current row from the result set and the underlying database.
public  intfindColumn(String name)
     Given a column name, this method returns the column number for that name.
public  booleanfirst()
     JDBC 2.0

Moves the cursor to the first row in the result set.

public  ArraygetArray(int i)
     JDBC 2.0 Gets an SQL ARRAY value from the current row of this ResultSet object.
Parameters:
  i - the first column is 1, the second is 2, ...
public  ArraygetArray(String colName)
     JDBC 2.0 Gets an SQL ARRAY value in the current row of this ResultSet object.
public  java.io.InputStreamgetAsciiStream(int column)
     This is not currently supported.
public  java.io.InputStreamgetAsciiStream(String columnName)
     This is unsupported, but we'll try to call the corresponding call by column index.
public  BigDecimalgetBigDecimal(int column, int scale)
    
public  BigDecimalgetBigDecimal(String columnName, int scale)
    
public  BigDecimalgetBigDecimal(int columnIndex)
     JDBC 2.0 Gets the value of a column in the current row as a java.math.BigDecimal object with full precision.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
public  BigDecimalgetBigDecimal(String columnName)
     JDBC 2.0 Gets the value of a column in the current row as a java.math.BigDecimal object with full precision.
public  java.io.InputStreamgetBinaryStream(int column)
     This is not currently supported.
public  java.io.InputStreamgetBinaryStream(String columnName)
     This is unsupported, but we'll try to call the corresponding call by column index.
public  BlobgetBlob(int i)
     JDBC 2.0 Gets a BLOB value in the current row of this ResultSet object.
Parameters:
  i - the first column is 1, the second is 2, ...
public  BlobgetBlob(String colName)
     JDBC 2.0 Gets a BLOB value in the current row of this ResultSet object.
public  booleangetBoolean(int column)
    
public  booleangetBoolean(String columnName)
    
public  bytegetByte(int column)
     Get the value of a column in the current row as a Java byte.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
public  bytegetByte(String columnName)
    
public  byte[]getBytes(int column)
     Get the value of a column in the current row as a Java byte array.
public  byte[]getBytes(String columnName)
    
public  java.io.ReadergetCharacterStream(int columnIndex)
     JDBC 2.0

Gets the value of a column in the current row as a java.io.Reader.

public  java.io.ReadergetCharacterStream(String columnName)
     JDBC 2.0

Gets the value of a column in the current row as a java.io.Reader.

public  ClobgetClob(int i)
     JDBC 2.0 Gets a CLOB value in the current row of this ResultSet object.
Parameters:
  i - the first column is 1, the second is 2, ...
public  ClobgetClob(String colName)
     JDBC 2.0 Gets a CLOB value in the current row of this ResultSet object.
public  intgetConcurrency()
     JDBC 2.0 Returns the concurrency mode of this result set.
public  StringgetCursorName()
     Get the name of the cursor corresponding to this result set.
public  java.sql.DategetDate(int column)
     Get the value of a column in the current row as a java.sql.Date object.
public  java.sql.DategetDate(String columnName)
    
public  java.sql.DategetDate(int columnIndex, Calendar cal)
     JDBC 2.0 Gets the value of a column in the current row as a java.sql.Date object.
public  java.sql.DategetDate(String columnName, Calendar cal)
     Gets the value of a column in the current row as a java.sql.Date object.
public  doublegetDouble(int column)
    
public  doublegetDouble(String columnName)
    
public  intgetFetchDirection()
     JDBC 2.0 Returns the fetch direction for this result set.
public  intgetFetchSize()
     JDBC 2.0 Returns the fetch size for this result set.
public  floatgetFloat(int column)
     Return a column as a float.
public  floatgetFloat(String columnName)
    
public  intgetInt(int column)
     Retrieve a column from the current row as an int
See Also:   java.sql.ResultSet.getInt
exception:
  SQLException - bad things...
public  intgetInt(String columnName)
    
public  longgetLong(int column)
    
public  longgetLong(String columnName)
    
public  ResultSetMetaDatagetMetaData()
    
public  ObjectgetObject(int column, int type, int scale)
    
public  ObjectgetObject(int column, int type)
     Same as above, except with a default scale to 0.
public  ObjectgetObject(int column)
     Same as above, except using the column's default SQL type.
public  ObjectgetObject(String columnName, int sqlType, int scale)
    
public  ObjectgetObject(String columnName, int type)
     Same as above, except defaulting scale to 0.
public  ObjectgetObject(String columnName)
    
public  ObjectgetObject(int i, java.util.Map map)
     JDBC 2.0 Returns the value of a column in the current row as a Java object.
public  ObjectgetObject(String colName, java.util.Map map)
     JDBC 2.0 Returns the value in the specified column as a Java object.
public  RefgetRef(int i)
     JDBC 2.0 Gets a REF(<structured-type>) column value from the current row.
Parameters:
  i - the first column is 1, the second is 2, ...
public  RefgetRef(String colName)
     JDBC 2.0 Gets a REF(<structured-type>) column value from the current row.
public  intgetRow()
     JDBC 2.0

Retrieves the current row number.

public  shortgetShort(int column)
     Get the value of a column in the current row as a short.
public  shortgetShort(String columnName)
    
public  StatementgetStatement()
     JDBC 2.0 Returns the Statement that produced this ResultSet object.
public  StringgetString(int column)
     Gets the value of a column (by index) as a String.
public  StringgetString(String name)
     Return the String value of a column given its name, rather than its index.
public  java.sql.TimegetTime(int column)
     Get the value of a column in the current row as a java.sql.Time object.
public  java.sql.TimegetTime(String columnName)
    
public  java.sql.TimegetTime(int columnIndex, Calendar cal)
     Gets the value of a column in the current row as a java.sql.Time object.
public  java.sql.TimegetTime(String columnName, Calendar cal)
     Gets the value of a column in the current row as a java.sql.Time object.
public  java.sql.TimestampgetTimestamp(int column)
    
public  java.sql.TimestampgetTimestamp(String columnName)
    
public  java.sql.TimestampgetTimestamp(int columnIndex, Calendar cal)
     Gets the value of a column in the current row as a java.sql.Timestamp object.
public  java.sql.TimestampgetTimestamp(String columnName, Calendar cal)
     Gets the value of a column in the current row as a java.sql.Timestamp object.
public  intgetType()
     JDBC 2.0 Returns the type of this result set.
public  java.io.InputStreamgetUnicodeStream(int column)
     This is not currently supported.
public  java.io.InputStreamgetUnicodeStream(String columnName)
     This is unsupported, but we'll try to call the corresponding call by column index.
public  SQLWarninggetWarnings()
     Return the warning chain.
public  voidinsertRow()
     JDBC 2.0 Inserts the contents of the insert row into the result set and the database.
public  booleanisAfterLast()
     JDBC 2.0

Indicates whether the cursor is after the last row in the result set.

public  booleanisBeforeFirst()
     JDBC 2.0

Indicates whether the cursor is before the first row in the result set.

public  booleanisFirst()
     JDBC 2.0

Indicates whether the cursor is on the first row of the result set.

public  booleanisLast()
     JDBC 2.0

Indicates whether the cursor is on the last row of the result set.

public  booleanlast()
     JDBC 2.0

Moves the cursor to the last row in the result set.

public  voidmoveToCurrentRow()
     JDBC 2.0 Moves the cursor to the remembered cursor position, usually the current row.
public  voidmoveToInsertRow()
     JDBC 2.0 Moves the cursor to the insert row.
public synchronized  booleannext()
     Advance to the next row in the result set.
public  booleanprevious()
     JDBC 2.0

Moves the cursor to the previous row in the result set.

public  voidrefreshRow()
     JDBC 2.0 Refreshes the current row with its most recent value in the database.
public  booleanrelative(int rows)
     JDBC 2.0

Moves the cursor a relative number of rows, either positive or negative. Attempting to move beyond the first/last row in the result set positions the cursor before/after the the first/last row.

public  booleanrowDeleted()
     JDBC 2.0 Indicates whether a row has been deleted.
public  booleanrowInserted()
     JDBC 2.0 Indicates whether the current row has had an insertion.
public  booleanrowUpdated()
     JDBC 2.0 Indicates whether the current row has been updated.
public  voidsetFetchDirection(int direction)
     JDBC 2.0 Gives a hint as to the direction in which the rows in this result set will be processed.
public  voidsetFetchSize(int rows)
     JDBC 2.0 Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed for this result set.
public  voidupdateAsciiStream(int columnIndex, java.io.InputStream x, int length)
     JDBC 2.0 Updates a column with an ascii stream value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateAsciiStream(String columnName, java.io.InputStream x, int length)
     JDBC 2.0 Updates a column with an ascii stream value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateBigDecimal(int columnIndex, BigDecimal x)
     JDBC 2.0 Updates a column with a BigDecimal value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateBigDecimal(String columnName, BigDecimal x)
     JDBC 2.0 Updates a column with a BigDecimal value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateBinaryStream(int columnIndex, java.io.InputStream x, int length)
     JDBC 2.0 Updates a column with a binary stream value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateBinaryStream(String columnName, java.io.InputStream x, int length)
     JDBC 2.0 Updates a column with a binary stream value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateBoolean(int columnIndex, boolean x)
     JDBC 2.0 Updates a column with a boolean value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateBoolean(String columnName, boolean x)
     JDBC 2.0 Updates a column with a boolean value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateByte(int columnIndex, byte x)
     JDBC 2.0 Updates a column with a byte value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateByte(String columnName, byte x)
     JDBC 2.0 Updates a column with a byte value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateBytes(int columnIndex, byte x)
     JDBC 2.0 Updates a column with a byte array value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateBytes(String columnName, byte x)
     JDBC 2.0 Updates a column with a byte array value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateCharacterStream(int columnIndex, java.io.Reader x, int length)
     JDBC 2.0 Updates a column with a character stream value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateCharacterStream(String columnName, java.io.Reader reader, int length)
     JDBC 2.0 Updates a column with a character stream value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateDate(int columnIndex, java.sql.Date x)
     JDBC 2.0 Updates a column with a Date value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateDate(String columnName, java.sql.Date x)
     JDBC 2.0 Updates a column with a Date value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateDouble(int columnIndex, double x)
     JDBC 2.0 Updates a column with a Double value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateDouble(String columnName, double x)
     JDBC 2.0 Updates a column with a double value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateFloat(int columnIndex, float x)
     JDBC 2.0 Updates a column with a float value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateFloat(String columnName, float x)
     JDBC 2.0 Updates a column with a float value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateInt(int columnIndex, int x)
     JDBC 2.0 Updates a column with an integer value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateInt(String columnName, int x)
     JDBC 2.0 Updates a column with an integer value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateLong(int columnIndex, long x)
     JDBC 2.0 Updates a column with a long value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateLong(String columnName, long x)
     JDBC 2.0 Updates a column with a long value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateNull(int columnIndex)
     JDBC 2.0 Give a nullable column a null value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateNull(String columnName)
     JDBC 2.0 Updates a column with a null value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateObject(int columnIndex, Object x, int scale)
     JDBC 2.0 Updates a column with an Object value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateObject(int columnIndex, Object x)
     JDBC 2.0 Updates a column with an Object value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateObject(String columnName, Object x, int scale)
     JDBC 2.0 Updates a column with an Object value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateObject(String columnName, Object x)
     JDBC 2.0 Updates a column with an Object value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateRow()
     JDBC 2.0 Updates the underlying database with the new contents of the current row.
public  voidupdateShort(int columnIndex, short x)
     JDBC 2.0 Updates a column with a short value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateShort(String columnName, short x)
     JDBC 2.0 Updates a column with a short value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateString(int columnIndex, String x)
     JDBC 2.0 Updates a column with a String value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateString(String columnName, String x)
     JDBC 2.0 Updates a column with a String value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateTime(int columnIndex, java.sql.Time x)
     JDBC 2.0 Updates a column with a Time value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateTime(String columnName, java.sql.Time x)
     JDBC 2.0 Updates a column with a Time value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateTimestamp(int columnIndex, java.sql.Timestamp x)
     JDBC 2.0 Updates a column with a Timestamp value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  voidupdateTimestamp(String columnName, java.sql.Timestamp x)
     JDBC 2.0 Updates a column with a Timestamp value. The updateXXX methods are used to update column values in the current row, or the insert row.
public  booleanwasNull()
     Returns whether or not the last column read was null.

Field Detail
CONCUR_READ_ONLY
int CONCUR_READ_ONLY(Code)
JDBC 2.0 The concurrency mode for a ResultSet object that may NOT be updated.



CONCUR_UPDATABLE
int CONCUR_UPDATABLE(Code)
JDBC 2.0 The concurrency mode for a ResultSet object that may be updated.



FETCH_FORWARD
int FETCH_FORWARD(Code)
JDBC 2.0 The rows in a result set will be processed in a forward direction; first-to-last.



FETCH_REVERSE
int FETCH_REVERSE(Code)
JDBC 2.0 The rows in a result set will be processed in a reverse direction; last-to-first.



FETCH_UNKNOWN
int FETCH_UNKNOWN(Code)
JDBC 2.0 The order in which rows in a result set will be processed is unknown.



TYPE_FORWARD_ONLY
int TYPE_FORWARD_ONLY(Code)
JDBC 2.0 The type for a ResultSet object whose cursor may move only forward.



TYPE_SCROLL_INSENSITIVE
int TYPE_SCROLL_INSENSITIVE(Code)
JDBC 2.0 The type for a ResultSet object that is scrollable but generally not sensitive to changes made by others.



TYPE_SCROLL_SENSITIVE
int TYPE_SCROLL_SENSITIVE(Code)
JDBC 2.0 The type for a ResultSet object that is scrollable and generally sensitive to changes made by others.




Constructor Detail
tinySQLResultSet
public tinySQLResultSet(tsResultSet res, tinySQLStatement inputStatement)(Code)
Given a tsResultSet, this will construct a new tinySQLResultSet
Parameters:
  res - the tsResultSet from a query



tinySQLResultSet
public tinySQLResultSet(tsResultSet res, tinySQLPreparedStatement inputStatement)(Code)




Method Detail
absolute
public boolean absolute(int row) throws SQLException(Code)
JDBC 2.0

Moves the cursor to the given row number in the result set.

If the row number is positive, the cursor moves to the given row number with respect to the beginning of the result set. The first row is row 1, the second is row 2, and so on.

If the given row number is negative, the cursor moves to an absolute row position with respect to the end of the result set. For example, calling absolute(-1) positions the cursor on the last row, absolute(-2) indicates the next-to-last row, and so on.

An attempt to position the cursor beyond the first/last row in the result set leaves the cursor before/after the first/last row, respectively.

Note: Calling absolute(1) is the same as calling first(). Calling absolute(-1) is the same as calling last(). true if the cursor is on the result set; false otherwise
exception:
  SQLException - if a database access error occurs or row is 0, or result set type is TYPE_FORWARD_ONLY.




afterLast
public void afterLast() throws SQLException(Code)
JDBC 2.0

Moves the cursor to the end of the result set, just after the last row. Has no effect if the result set contains no rows.
exception:
  SQLException - if a database access error occurs or the result set type is TYPE_FORWARD_ONLY




beforeFirst
public void beforeFirst() throws SQLException(Code)
JDBC 2.0

Moves the cursor to the front of the result set, just before the first row. Has no effect if the result set contains no rows.
exception:
  SQLException - if a database access error occurs or the result set type is TYPE_FORWARD_ONLY




cancelRowUpdates
public void cancelRowUpdates() throws SQLException(Code)
JDBC 2.0 Cancels the updates made to a row. This method may be called after calling an updateXXX method(s) and before calling updateRow to rollback the updates made to a row. If no updates have been made or updateRow has already been called, then this method has no effect.
exception:
  SQLException - if a database access error occurs or ifcalled when on the insert row



clearWarnings
public void clearWarnings() throws SQLException(Code)
Clear the chain of warnings. This does nothing, since the warning chain is not used by tinySQL
See Also:   java.sql.Statement.clearWarnings



close
public void close() throws SQLException(Code)
Provides a method to close a ResultSet
See Also:   java.sql.ResultSet.close



deleteRow
public void deleteRow() throws SQLException(Code)
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 ifcalled when on the insert row.



findColumn
public int findColumn(String name) throws SQLException(Code)
Given a column name, this method returns the column number for that name. Column name to number mappings are kept inside a Hashtable. Applications that do not need the overhead of this calculation are not penalized since the mapping only occurs on the first attempt to access a column number by name.
exception:
  java.sql.SQLException - thrown if a bad name is passed
Parameters:
  name - the name of the column desired the column number, 1 being the first column



first
public boolean first() throws SQLException(Code)
JDBC 2.0

Moves the cursor to the first row in the result set. true if the cursor is on a valid row; false ifthere are no rows in the result set
exception:
  SQLException - if a database access error occurs or the result set type is TYPE_FORWARD_ONLY




getArray
public Array getArray(int i) throws SQLException(Code)
JDBC 2.0 Gets an SQL ARRAY value from the current row of this ResultSet object.
Parameters:
  i - the first column is 1, the second is 2, ... an Array object representing the SQL ARRAY value inthe specified column



getArray
public Array getArray(String colName) throws SQLException(Code)
JDBC 2.0 Gets an SQL ARRAY value in the current row of this ResultSet object.
Parameters:
  colName - the name of the column from which to retrieve the value an Array object representing the SQL ARRAY value inthe specified column



getAsciiStream
public java.io.InputStream getAsciiStream(int column) throws SQLException(Code)
This is not currently supported.



getAsciiStream
public java.io.InputStream getAsciiStream(String columnName) throws SQLException(Code)
This is unsupported, but we'll try to call the corresponding call by column index.



getBigDecimal
public BigDecimal getBigDecimal(int column, int scale) throws SQLException(Code)
Return a column as a BigDecimal object
See Also:   java.sql.ResultSet.getBigDecimal
exception:
  SQLException - in case of a problem
Parameters:
  column - the column being retrieved
Parameters:
  scale - the number of digits to the right of the decimal the column as a BigDecimal



getBigDecimal
public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException(Code)
Get the value of a named column as a BigDecimal object
Parameters:
  columnName - is the SQL name of the column the column value; if isNull the value is null



getBigDecimal
public BigDecimal getBigDecimal(int columnIndex) throws SQLException(Code)
JDBC 2.0 Gets the value of a column in the current row as a java.math.BigDecimal object with full precision.
Parameters:
  columnIndex - the first column is 1, the second is 2, ... the column value (full precision); if the value is SQL NULL, the result is null
exception:
  SQLException - if a database access error occurs



getBigDecimal
public BigDecimal getBigDecimal(String columnName) throws SQLException(Code)
JDBC 2.0 Gets the value of a column in the current row as a java.math.BigDecimal object with full precision.
Parameters:
  columnName - the column name the column value (full precision); if the value is SQL NULL, the result is null
exception:
  SQLException - if a database access error occurs



getBinaryStream
public java.io.InputStream getBinaryStream(int column) throws SQLException(Code)
This is not currently supported.



getBinaryStream
public java.io.InputStream getBinaryStream(String columnName) throws SQLException(Code)
This is unsupported, but we'll try to call the corresponding call by column index.



getBlob
public Blob getBlob(int i) throws SQLException(Code)
JDBC 2.0 Gets a BLOB value in the current row of this ResultSet object.
Parameters:
  i - the first column is 1, the second is 2, ... a Blob object representing the SQL BLOB value inthe specified column



getBlob
public Blob getBlob(String colName) throws SQLException(Code)
JDBC 2.0 Gets a BLOB value in the current row of this ResultSet object.
Parameters:
  colName - the name of the column from which to retrieve the value a Blob object representing the SQL BLOB value inthe specified column



getBoolean
public boolean getBoolean(int column) throws SQLException(Code)
Get the value of a column in the current row as boolean
See Also:   java.sql.ResultSet.getBoolean
exception:
  SQLException - Harum Scarum's coming down fast, Clay...
Parameters:
  column - the column index false for "", null, or "0"; true otherwise



getBoolean
public boolean getBoolean(String columnName) throws SQLException(Code)
Get the value of a boolean column in the current row
Parameters:
  columnName - is the SQL name of the column the column value; if isNull the value is false



getByte
public byte getByte(int column) throws SQLException(Code)
Get the value of a column in the current row as a Java byte.
Parameters:
  columnIndex - the first column is 1, the second is 2, ... the column value



getByte
public byte getByte(String columnName) throws SQLException(Code)
Returns the column as a byte based on column name



getBytes
public byte[] getBytes(int column) throws SQLException(Code)
Get the value of a column in the current row as a Java byte array.
See Also:   java.sql.ResultSet.getBytes
exception:
  SQLException - thrown in case of trouble
Parameters:
  column - the column being retrieved a byte array that is the value of the column



getBytes
public byte[] getBytes(String columnName) throws SQLException(Code)
Get the value of a named column as a byte array
Parameters:
  columnName - is the SQL name of the column the column value; if isNull the value is null



getCharacterStream
public java.io.Reader getCharacterStream(int columnIndex) throws SQLException(Code)
JDBC 2.0

Gets the value of a column in the current row as a java.io.Reader.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...




getCharacterStream
public java.io.Reader getCharacterStream(String columnName) throws SQLException(Code)
JDBC 2.0

Gets the value of a column in the current row as a java.io.Reader.
Parameters:
  columnName - the name of the column the value in the specified column as a java.io.Reader




getClob
public Clob getClob(int i) throws SQLException(Code)
JDBC 2.0 Gets a CLOB value in the current row of this ResultSet object.
Parameters:
  i - the first column is 1, the second is 2, ... a Clob object representing the SQL CLOB value inthe specified column



getClob
public Clob getClob(String colName) throws SQLException(Code)
JDBC 2.0 Gets a CLOB value in the current row of this ResultSet object.
Parameters:
  colName - the name of the column from which to retrieve the value a Clob object representing the SQL CLOB value inthe specified column



getConcurrency
public int getConcurrency() throws SQLException(Code)
JDBC 2.0 Returns the concurrency mode of this result set. The concurrency used is determined by the statement that created the result set. the concurrency type, CONCUR_READ_ONLY or CONCUR_UPDATABLE
exception:
  SQLException - if a database access error occurs



getCursorName
public String getCursorName() throws SQLException(Code)
Get the name of the cursor corresponding to this result set. This has to meaning to tinySQL
See Also:   java.sql.ResultSet.getCursorName ""



getDate
public java.sql.Date getDate(int column) throws SQLException(Code)
Get the value of a column in the current row as a java.sql.Date object.
See Also:   java.sqlResultSet.getDate
exception:
  SQLException - thrown in case of error
Parameters:
  column - the column being retrieved the java.sql.Date object for the column



getDate
public java.sql.Date getDate(String columnName) throws SQLException(Code)
Get a named column as a java.sql.Date
Parameters:
  columnName - is the SQL name of the column the column value; if isNull the value is null



getDate
public java.sql.Date getDate(int columnIndex, Calendar cal) throws SQLException(Code)
JDBC 2.0 Gets the value of a column in the current row as a java.sql.Date object. This method uses the given calendar to construct an appropriate millisecond value for the Date if the underlying database does not store timezone information.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  cal - the calendar to use in constructing the date the column value; if the value is SQL NULL, the result is null
exception:
  SQLException - if a database access error occurs



getDate
public java.sql.Date getDate(String columnName, Calendar cal) throws SQLException(Code)
Gets the value of a column in the current row as a java.sql.Date object. This method uses the given calendar to construct an appropriate millisecond value for the Date, if the underlying database does not store timezone information.
Parameters:
  columnName - the SQL name of the column from which to retrieve the value
Parameters:
  cal - the calendar to use in constructing the date the column value; if the value is SQL NULL, the result is null
exception:
  SQLException - if a database access error occurs



getDouble
public double getDouble(int column) throws SQLException(Code)
Return a column as a double
See Also:   java.sql.ResultSet.getDouble
exception:
  SQLException - in case of error
Parameters:
  column - the column being retrieved the column as a double



getDouble
public double getDouble(String columnName) throws SQLException(Code)
Get the double value of a named column
Parameters:
  columnName - is the SQL name of the column the column value; if isNull the value is 0



getFetchDirection
public int getFetchDirection() throws SQLException(Code)
JDBC 2.0 Returns the fetch direction for this result set. the current fetch direction for this result set
exception:
  SQLException - if a database access error occurs



getFetchSize
public int getFetchSize() throws SQLException(Code)
JDBC 2.0 Returns the fetch size for this result set. the current fetch size for this result set
exception:
  SQLException - if a database access error occurs



getFloat
public float getFloat(int column) throws SQLException(Code)
Return a column as a float.
See Also:   java.sql.ResultSet.getFloat
exception:
  SQLException - in case of error
Parameters:
  column - the column being retrieved the column as a float



getFloat
public float getFloat(String columnName) throws SQLException(Code)
Get the float value of a column by name
Parameters:
  columnName - is the SQL name of the column the column value; if isNull the value is 0



getInt
public int getInt(int column) throws SQLException(Code)
Retrieve a column from the current row as an int
See Also:   java.sql.ResultSet.getInt
exception:
  SQLException - bad things... the wind began to howl...
Parameters:
  column - the column being retrieved the column as an integer



getInt
public int getInt(String columnName) throws SQLException(Code)
Get the integer value of a column by name
Parameters:
  columnName - is the SQL name of the column the column value; if isNull the value is 0



getLong
public long getLong(int column) throws SQLException(Code)
Get the value of a column in the current row as a long
See Also:   java.sql.ResultSet.getLong
exception:
  SQLException - in case of an error
Parameters:
  column - the column being retrieved the column as a long



getLong
public long getLong(String columnName) throws SQLException(Code)
Get the long value of a column by name
Parameters:
  columnName - is the SQL name of the column the column value; if isNull the value is 0



getMetaData
public ResultSetMetaData getMetaData() throws SQLException(Code)
Returns a ResultSetMetaData object for this result set
See Also:   java.sql.ResultSet.getMetaData
exception:
  SQLException - thrown on error getting meta-data ResultSetMetaData object containing result set info



getObject
public Object getObject(int column, int type, int scale) throws SQLException(Code)
Retrieves data as objects
See Also:   java.sql.ResultSet.getObject
exception:
  SQLException - in the event of an error
Parameters:
  column - the column desired
Parameters:
  type - the SQL data type of the field the column specified as an Object



getObject
public Object getObject(int column, int type) throws SQLException(Code)
Same as above, except with a default scale to 0.



getObject
public Object getObject(int column) throws SQLException(Code)
Same as above, except using the column's default SQL type.



getObject
public Object getObject(String columnName, int sqlType, int scale) throws SQLException(Code)
Get the value of a named column as an object
Parameters:
  columnName - the SQL column name
Parameters:
  sqlType - SQL type code defined by java.sql.Types the parameter as an Object



getObject
public Object getObject(String columnName, int type) throws SQLException(Code)
Same as above, except defaulting scale to 0.



getObject
public Object getObject(String columnName) throws SQLException(Code)
Same as above, except returning the default SQL type



getObject
public Object getObject(int i, java.util.Map map) throws SQLException(Code)
JDBC 2.0 Returns the value of a column in the current row as a Java object. This method uses the given Map object for the custom mapping of the SQL structured or distinct type that is being retrieved.
Parameters:
  i - the first column is 1, the second is 2, ...
Parameters:
  map - the mapping from SQL type names to Java classes an object representing the SQL value



getObject
public Object getObject(String colName, java.util.Map map) throws SQLException(Code)
JDBC 2.0 Returns the value in the specified column as a Java object. This method uses the specified Map object for custom mapping if appropriate.
Parameters:
  colName - the name of the column from which to retrieve the value
Parameters:
  map - the mapping from SQL type names to Java classes an object representing the SQL value in the specified column



getRef
public Ref getRef(int i) throws SQLException(Code)
JDBC 2.0 Gets a REF(<structured-type>) column value from the current row.
Parameters:
  i - the first column is 1, the second is 2, ... a Ref object representing an SQL REF value



getRef
public Ref getRef(String colName) throws SQLException(Code)
JDBC 2.0 Gets a REF(<structured-type>) column value from the current row.
Parameters:
  colName - the column name a Ref object representing the SQL REF value inthe specified column



getRow
public int getRow() throws SQLException(Code)
JDBC 2.0

Retrieves the current row number. The first row is number 1, the second number 2, and so on. the current row number; 0 if there is no current row
exception:
  SQLException - if a database access error occurs




getShort
public short getShort(int column) throws SQLException(Code)
Get the value of a column in the current row as a short.
See Also:   java.sql.ResultSet.getShort
exception:
  SQLException - D'ohh!
Parameters:
  column - the column being retrieved the column as a short



getShort
public short getShort(String columnName) throws SQLException(Code)
Get the value of a short by column name
Parameters:
  columnName - is the SQL name of the column the column value; if isNull the value is 0



getStatement
public Statement getStatement() throws SQLException(Code)
JDBC 2.0 Returns the Statement that produced this ResultSet object. If the result set was generated some other way, such as by a DatabaseMetaData method, this method returns null. the Statment that produced the result set ornull if the result set was produced some other way
exception:
  SQLException - if a database access error occurs



getString
public String getString(int column) throws SQLException(Code)
Gets the value of a column (by index) as a String.
See Also:   java.sql.ResultSet.getString
exception:
  SQLException - thrown for bogus column index
Parameters:
  column - the column index the column's String value



getString
public String getString(String name) throws SQLException(Code)
Return the String value of a column given its name, rather than its index.
See Also:   java.sql.ResultSet.getString
Parameters:
  name - the name of the column desired the value of the column as a String



getTime
public java.sql.Time getTime(int column) throws SQLException(Code)
Get the value of a column in the current row as a java.sql.Time object.
See Also:   java.sql.ResultSet.getTime
exception:
  SQLException - thrown in the event of troubles
Parameters:
  column - the column being retrieved the column as a java.sql.Time object



getTime
public java.sql.Time getTime(String columnName) throws SQLException(Code)
Get a named column as a java.sql.Time
Parameters:
  columnName - is the SQL name of the column the column value; if isNull the value is null



getTime
public java.sql.Time getTime(int columnIndex, Calendar cal) throws SQLException(Code)
Gets the value of a column in the current row as a java.sql.Time object. This method uses the given calendar to construct an appropriate millisecond value for the Time if the underlying database does not store timezone information.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  cal - the calendar to use in constructing the time the column value; if the value is SQL NULL, the result is null
exception:
  SQLException - if a database access error occurs



getTime
public java.sql.Time getTime(String columnName, Calendar cal) throws SQLException(Code)
Gets the value of a column in the current row as a java.sql.Time object. This method uses the given calendar to construct an appropriate millisecond value for the Time if the underlying database does not store timezone information.
Parameters:
  columnName - the SQL name of the column
Parameters:
  cal - the calendar to use in constructing the time the column value; if the value is SQL NULL, the result is null
exception:
  SQLException - if a database access error occurs



getTimestamp
public java.sql.Timestamp getTimestamp(int column) throws SQLException(Code)
Get the value of a column in the current row as a java.sql.Timestamp
See Also:   java.sql.ResultSet.getTimestamp
exception:
  SQLException - thrown in the event of troubles
Parameters:
  column - the column being retrieved the column as a java.sql.Timestamp object



getTimestamp
public java.sql.Timestamp getTimestamp(String columnName) throws SQLException(Code)
Get a named column as a java.sql.Time
Parameters:
  columnName - is the SQL name of the column the column value; if isNull the value is null



getTimestamp
public java.sql.Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException(Code)
Gets the value of a column in the current row as a java.sql.Timestamp object. This method uses the given calendar to construct an appropriate millisecond value for the Timestamp if the underlying database does not store timezone information.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  cal - the calendar to use in constructing the timestamp the column value; if the value is SQL NULL, the result is null
exception:
  SQLException - if a database access error occurs



getTimestamp
public java.sql.Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException(Code)
Gets the value of a column in the current row as a java.sql.Timestamp object. This method uses the given calendar to construct an appropriate millisecond value for the Timestamp if the underlying database does not store timezone information.
Parameters:
  columnName - the SQL name of the column
Parameters:
  cal - the calendar to use in constructing the timestamp the column value; if the value is SQL NULL, the result is null
exception:
  SQLException - if a database access error occurs



getType
public int getType() throws SQLException(Code)
JDBC 2.0 Returns the type of this result set. The type is determined by the statement that created the result set. TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, orTYPE_SCROLL_SENSITIVE
exception:
  SQLException - if a database access error occurs



getUnicodeStream
public java.io.InputStream getUnicodeStream(int column) throws SQLException(Code)
This is not currently supported.



getUnicodeStream
public java.io.InputStream getUnicodeStream(String columnName) throws SQLException(Code)
This is unsupported, but we'll try to call the corresponding call by column index.



getWarnings
public SQLWarning getWarnings() throws SQLException(Code)
Return the warning chain. This is presently unsupported.
See Also:   java.sql.Statement.getWarnings the chain of warnings



insertRow
public void insertRow() throws SQLException(Code)
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 inthe insert row have been given a value



isAfterLast
public boolean isAfterLast() throws SQLException(Code)
JDBC 2.0

Indicates whether the cursor is after the last row in the result set. true if the cursor is after the last row, false otherwise. Returnsfalse when the result set contains no rows.
exception:
  SQLException - if a database access error occurs




isBeforeFirst
public boolean isBeforeFirst() throws SQLException(Code)
JDBC 2.0

Indicates whether the cursor is before the first row in the result set. true if the cursor is before the first row, false otherwise. Returnsfalse when the result set contains no rows.
exception:
  SQLException - if a database access error occurs




isFirst
public boolean isFirst() throws SQLException(Code)
JDBC 2.0

Indicates whether the cursor is on the first row of the result set. true if the cursor is on the first row, false otherwise.
exception:
  SQLException - if a database access error occurs




isLast
public boolean isLast() throws SQLException(Code)
JDBC 2.0

Indicates whether the cursor is on the last row of the result set. Note: Calling the method isLast may be expensive because the JDBC driver might need to fetch ahead one row in order to determine whether the current row is the last row in the result set. true if the cursor is on the last row, false otherwise.
exception:
  SQLException - if a database access error occurs




last
public boolean last() throws SQLException(Code)
JDBC 2.0

Moves the cursor to the last row in the result set. true if the cursor is on a valid row;false if there are no rows in the result set
exception:
  SQLException - if a database access error occurs or theresult set type is TYPE_FORWARD_ONLY.




moveToCurrentRow
public void moveToCurrentRow() throws SQLException(Code)
JDBC 2.0 Moves the cursor to the remembered cursor position, usually the current row. This method has no effect if the cursor is not on the insert row.
exception:
  SQLException - if a database access error occursor the result set is not updatable



moveToInsertRow
public void moveToInsertRow() throws SQLException(Code)
JDBC 2.0 Moves the cursor to the insert row. The current cursor position is remembered while the cursor is positioned on the insert row. The insert row is a special row associated with an updatable result set. It is essentially a buffer where a new row may be constructed by calling the updateXXX methods prior to inserting the row into the result set. Only the updateXXX, getXXX, and insertRow methods may be called when the cursor is on the insert row. All of the columns in a result set must be given a value each time this method is called before calling insertRow. The method updateXXX must be called before a getXXX method can be called on a column value.
exception:
  SQLException - if a database access error occursor the result set is not updatable



next
public synchronized boolean next() throws SQLException(Code)
Advance to the next row in the result set.
See Also:   java.sql.ResultSet.next
exception:
  SQLException - thrown in case of error true if there are any more rows to process, otherwise false.



previous
public boolean previous() throws SQLException(Code)
JDBC 2.0

Moves the cursor to the previous row in the result set.

Note: previous() is not the same as relative(-1) because it makes sense to callprevious() when there is no current row. true if the cursor is on a valid row; false if it is off the result set
exception:
  SQLException - if a database access error occurs or theresult set type is TYPE_FORWARD_ONLY




refreshRow
public void refreshRow() throws SQLException(Code)
JDBC 2.0 Refreshes the current row with its most recent value in the database. Cannot be called when on the insert row. The refreshRow 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 refreshRow 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 refreshRow is called after calling updateXXX, but before calling updateRow, then the updates made to the row are lost. Calling the method refreshRow frequently will likely slow performance.
exception:
  SQLException - if a database access error occurs or ifcalled when on the insert row



relative
public boolean relative(int rows) throws SQLException(Code)
JDBC 2.0

Moves the cursor a relative number of rows, either positive or negative. Attempting to move beyond the first/last row in the result set positions the cursor before/after the the first/last row. Calling relative(0) is valid, but does not change the cursor position.

Note: Calling relative(1) is different from calling next() because is makes sense to call next() when there is no current row, for example, when the cursor is positioned before the first row or after the last row of the result set. true if the cursor is on a row; false otherwise
exception:
  SQLException - if a database access error occurs, thereis no current row, or the result set type is TYPE_FORWARD_ONLY




rowDeleted
public boolean rowDeleted() throws SQLException(Code)
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. true if a row was deleted and deletions are detected
exception:
  SQLException - if a database access error occurs
See Also:   DatabaseMetaData.deletesAreDetected



rowInserted
public boolean rowInserted() throws SQLException(Code)
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. true if a row has had an insertion and insertions are detected
exception:
  SQLException - if a database access error occurs
See Also:   DatabaseMetaData.insertsAreDetected



rowUpdated
public boolean rowUpdated() throws SQLException(Code)
JDBC 2.0 Indicates whether the current row has been updated. The value returned depends on whether or not the result set can detect updates. true if the row has been visibly updated by the owner oranother, and updates are detected
exception:
  SQLException - if a database access error occurs
See Also:   DatabaseMetaData.updatesAreDetected



setFetchDirection
public void setFetchDirection(int direction) throws SQLException(Code)
JDBC 2.0 Gives a hint as to the direction in which the rows in this result set will be processed. The initial value is determined by the statement that produced the result set. The fetch direction may be changed at any time.
exception:
  SQLException - if a database access error occurs orthe result set type is TYPE_FORWARD_ONLY and the fetch direction is not FETCH_FORWARD.



setFetchSize
public void setFetchSize(int rows) throws SQLException(Code)
JDBC 2.0 Gives the JDBC driver a hint as to the number of rows that should be fetched from the database when more rows are needed for this result set. If the fetch size specified is zero, the JDBC driver ignores the value and is free to make its own best guess as to what the fetch size should be. The default value is set by the statement that created the result set. The fetch size may be changed at any time.
Parameters:
  rows - the number of rows to fetch
exception:
  SQLException - if a database access error occurs or thecondition 0 <= rows <= this.getMaxRows() is not satisfied.



updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws SQLException(Code)
JDBC 2.0 Updates a column with an ascii stream value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
Parameters:
  length - the length of the stream
exception:
  SQLException - if a database access error occurs



updateAsciiStream
public void updateAsciiStream(String columnName, java.io.InputStream x, int length) throws SQLException(Code)
JDBC 2.0 Updates a column with an ascii stream value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
Parameters:
  length - of the stream
exception:
  SQLException - if a database access error occurs



updateBigDecimal
public void updateBigDecimal(int columnIndex, BigDecimal x) throws SQLException(Code)
JDBC 2.0 Updates a column with a BigDecimal value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateBigDecimal
public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException(Code)
JDBC 2.0 Updates a column with a BigDecimal value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateBinaryStream
public void updateBinaryStream(int columnIndex, java.io.InputStream x, int length) throws SQLException(Code)
JDBC 2.0 Updates a column with a binary stream value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
Parameters:
  length - the length of the stream
exception:
  SQLException - if a database access error occurs



updateBinaryStream
public void updateBinaryStream(String columnName, java.io.InputStream x, int length) throws SQLException(Code)
JDBC 2.0 Updates a column with a binary stream value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
Parameters:
  length - of the stream
exception:
  SQLException - if a database access error occurs



updateBoolean
public void updateBoolean(int columnIndex, boolean x) throws SQLException(Code)
JDBC 2.0 Updates a column with a boolean value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateBoolean
public void updateBoolean(String columnName, boolean x) throws SQLException(Code)
JDBC 2.0 Updates a column with a boolean value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateByte
public void updateByte(int columnIndex, byte x) throws SQLException(Code)
JDBC 2.0 Updates a column with a byte value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateByte
public void updateByte(String columnName, byte x) throws SQLException(Code)
JDBC 2.0 Updates a column with a byte value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateBytes
public void updateBytes(int columnIndex, byte x) throws SQLException(Code)
JDBC 2.0 Updates a column with a byte array value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateBytes
public void updateBytes(String columnName, byte x) throws SQLException(Code)
JDBC 2.0 Updates a column with a byte array value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateCharacterStream
public void updateCharacterStream(int columnIndex, java.io.Reader x, int length) throws SQLException(Code)
JDBC 2.0 Updates a column with a character stream value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
Parameters:
  length - the length of the stream
exception:
  SQLException - if a database access error occurs



updateCharacterStream
public void updateCharacterStream(String columnName, java.io.Reader reader, int length) throws SQLException(Code)
JDBC 2.0 Updates a column with a character stream value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
Parameters:
  length - of the stream
exception:
  SQLException - if a database access error occurs



updateDate
public void updateDate(int columnIndex, java.sql.Date x) throws SQLException(Code)
JDBC 2.0 Updates a column with a Date value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateDate
public void updateDate(String columnName, java.sql.Date x) throws SQLException(Code)
JDBC 2.0 Updates a column with a Date value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateDouble
public void updateDouble(int columnIndex, double x) throws SQLException(Code)
JDBC 2.0 Updates a column with a Double value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateDouble
public void updateDouble(String columnName, double x) throws SQLException(Code)
JDBC 2.0 Updates a column with a double value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateFloat
public void updateFloat(int columnIndex, float x) throws SQLException(Code)
JDBC 2.0 Updates a column with a float value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateFloat
public void updateFloat(String columnName, float x) throws SQLException(Code)
JDBC 2.0 Updates a column with a float value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateInt
public void updateInt(int columnIndex, int x) throws SQLException(Code)
JDBC 2.0 Updates a column with an integer value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateInt
public void updateInt(String columnName, int x) throws SQLException(Code)
JDBC 2.0 Updates a column with an integer value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateLong
public void updateLong(int columnIndex, long x) throws SQLException(Code)
JDBC 2.0 Updates a column with a long value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateLong
public void updateLong(String columnName, long x) throws SQLException(Code)
JDBC 2.0 Updates a column with a long value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateNull
public void updateNull(int columnIndex) throws SQLException(Code)
JDBC 2.0 Give a nullable column a null value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
exception:
  SQLException - if a database access error occurs



updateNull
public void updateNull(String columnName) throws SQLException(Code)
JDBC 2.0 Updates a column with a null value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
exception:
  SQLException - if a database access error occurs



updateObject
public void updateObject(int columnIndex, Object x, int scale) throws SQLException(Code)
JDBC 2.0 Updates a column with an Object value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
Parameters:
  scale - For java.sql.Types.DECIMAL or java.sql.Types.NUMERIC typesthis is the number of digits after the decimal. For all othertypes this value will be ignored.
exception:
  SQLException - if a database access error occurs



updateObject
public void updateObject(int columnIndex, Object x) throws SQLException(Code)
JDBC 2.0 Updates a column with an Object value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateObject
public void updateObject(String columnName, Object x, int scale) throws SQLException(Code)
JDBC 2.0 Updates a column with an Object value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
Parameters:
  scale - For java.sql.Types.DECIMAL or java.sql.Types.NUMERIC typesthis is the number of digits after the decimal. For all othertypes this value will be ignored.
exception:
  SQLException - if a database access error occurs



updateObject
public void updateObject(String columnName, Object x) throws SQLException(Code)
JDBC 2.0 Updates a column with an Object value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateRow
public void updateRow() throws SQLException(Code)
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 orif called when on the insert row



updateShort
public void updateShort(int columnIndex, short x) throws SQLException(Code)
JDBC 2.0 Updates a column with a short value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateShort
public void updateShort(String columnName, short x) throws SQLException(Code)
JDBC 2.0 Updates a column with a short value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateString
public void updateString(int columnIndex, String x) throws SQLException(Code)
JDBC 2.0 Updates a column with a String value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateString
public void updateString(String columnName, String x) throws SQLException(Code)
JDBC 2.0 Updates a column with a String value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateTime
public void updateTime(int columnIndex, java.sql.Time x) throws SQLException(Code)
JDBC 2.0 Updates a column with a Time value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateTime
public void updateTime(String columnName, java.sql.Time x) throws SQLException(Code)
JDBC 2.0 Updates a column with a Time value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateTimestamp
public void updateTimestamp(int columnIndex, java.sql.Timestamp x) throws SQLException(Code)
JDBC 2.0 Updates a column with a Timestamp value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



updateTimestamp
public void updateTimestamp(String columnName, java.sql.Timestamp x) throws SQLException(Code)
JDBC 2.0 Updates a column with a Timestamp value. The updateXXX methods are used to update column values in the current row, or the insert row. The updateXXX methods do not update the underlying database; instead the updateRow or insertRow methods are called to update the database.
Parameters:
  columnName - the name of the column
Parameters:
  x - the new column value
exception:
  SQLException - if a database access error occurs



wasNull
public boolean wasNull() throws SQLException(Code)
Returns whether or not the last column read was null. tinySQL doesn't have nulls, so this is inconsequential...
See Also:   java.sql.ResultSet.wasNull true if the column was null, false otherwise



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.