Java Doc for ResultSetImpl.java in  » Database-JDBC-Connection-Pool » mysql-connector-java-5.1.3 » com » mysql » jdbc » 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 JDBC Connection Pool » mysql connector java 5.1.3 » com.mysql.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.mysql.jdbc.ResultSetImpl

All known Subclasses:   com.mysql.jdbc.JDBC4ResultSet,  com.mysql.jdbc.UpdatableResultSet,
ResultSetImpl
public class ResultSetImpl implements ResultSetInternalMethods(Code)
A ResultSet provides access to a table of data generated by executing a Statement. The table rows are retrieved in sequence. Within a row its column values can be accessed in any order.

A ResultSet maintains a cursor pointing to its current row of data. Initially the cursor is positioned before the first row. The 'next' method moves the cursor to the next row.

The getXXX methods retrieve column values for the current row. You can retrieve values either using the index number of the column, or by using the name of the column. In general using the column index will be more efficient. Columns are numbered from 1.

For maximum portability, ResultSet columns within each row should be read in left-to-right order and each column should be read only once.

For the getXXX methods, the JDBC driver attempts to convert the underlying data to the specified Java type and returns a suitable Java value. See the JDBC specification for allowable mappings from SQL types to Java types with the ResultSet getXXX methods.

Column names used as input to getXXX methods are case insenstive. When performing a getXXX using a column name, if several columns have the same name, then the value of the first matching column will be returned. The column name option is designed to be used when column names are used in the SQL Query. For columns that are NOT explicitly named in the query, it is best to use column numbers. If column names were used there is no way for the programmer to guarentee that they actually refer to the intended columns.

A ResultSet is automatically closed by the Statement that generated it when that Statement is closed, re-executed, or is used to retrieve the next result from a sequence of multiple results.

The number, types and properties of a ResultSet's columns are provided by the ResultSetMetaData object returned by the getMetaData method.


author:
   Mark Matthews
version:
   $Id: ResultSetImpl.java 6576 2007-09-07 16:11:05Z mmatthews $
See Also:   ResultSetMetaData
See Also:   java.sql.ResultSet


Field Summary
final protected static  char[]EMPTY_SPACE
    
final protected static  doubleMAX_DIFF_PREC
     Epsillon between Float.MAX_VALUE and the double representation of said value.
final protected static  doubleMIN_DIFF_PREC
     Epsillon between Float.MIN_VALUE and the double representation of said value.
protected  Stringcatalog
    
protected  MapcolumnNameToIndex
    
protected  boolean[]columnUsed
    
protected  ConnectionImplconnection
    
protected  longconnectionId
    
protected  intcurrentRow
    
 TimeZonedefaultTimeZone
    
protected  booleandoingUpdates
    
protected  ProfileEventSinkeventSink
    
 CalendarfastDateCal
    
protected  intfetchDirection
    
protected  intfetchSize
     The number of rows to fetch in one go...
protected  Field[]fields
    
protected  charfirstCharOfQuery
     First character of the query that created this result set...Used to determine whether or not to parse server info messages in certain circumstances.
protected  MapfullColumnNameToIndex
    
protected  CalendargmtCalendar
    
protected  booleanhasBuiltIndexMapping
    
protected  booleanisBinaryEncoded
    
protected  booleanisClosed
    
protected  ResultSetInternalMethodsnextResultSet
    
protected  booleanonInsertRow
    
protected  com.mysql.jdbc.StatementImplowningStatement
    
protected  ThrowablepointOfOrigin
     StackTrace generated where ResultSet was created...
protected  booleanprofileSql
    
protected  booleanreallyResult
    
protected static  intresultCounter
     Counter used to generate IDs for profiling.
protected  intresultId
    
protected  intresultSetConcurrency
    
protected  intresultSetType
    
protected  booleanretainOwningStatement
    
protected  RowDatarowData
    
protected  StringserverInfo
     Any info message from the server that was created while generating this result set (if 'info parsing' is enabled for the connection).
 PreparedStatementstatementUsedForFetchingRows
    
protected  ResultSetRowthisRow
    
protected  longupdateCount
    
protected  longupdateId
    
protected  booleanuseFastDateParsing
    
protected  booleanuseUsageAdvisor
    
protected  java.sql.SQLWarningwarningChain
    
protected  booleanwasNullFlag
    
protected  java.sql.StatementwrapperStatement
    

Constructor Summary
public  ResultSetImpl(long updateCount, long updateID, ConnectionImpl conn, StatementImpl creatorStmt)
     Create a result set for an executeUpdate statement.
public  ResultSetImpl(String catalog, Field[] fields, RowData tuples, ConnectionImpl conn, StatementImpl creatorStmt)
     Creates a new ResultSet object.

Method Summary
public  booleanabsolute(int row)
     JDBC 2.0

Move to an absolute row number in the result set.

If row is positive, moves to an absolute row with respect to the beginning of the result set.

public  voidafterLast()
     JDBC 2.0

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

public static  booleanarraysEqual(byte[] left, byte[] right)
    
public  voidbeforeFirst()
     JDBC 2.0

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

public  voidbuildIndexMapping()
     Builds a hash between column names and their indices for fast retrieval.
public  voidcancelRowUpdates()
     JDBC 2.0 The cancelRowUpdates() method may be called after calling an updateXXX() method(s) and before calling updateRow() to rollback the updates made to a row.
final protected  voidcheckClosed()
    
final protected  voidcheckColumnBounds(int columnIndex)
     Checks if columnIndex is within the number of columns in this result set.
protected  voidcheckRowPos()
    
public  voidclearNextResult()
     We can't do this ourselves, otherwise the contract for Statement.getMoreResults() won't work correctly.
public  voidclearWarnings()
    
public  voidclose()
     In some cases, it is desirable to immediately release a ResultSet database and JDBC resources instead of waiting for this to happen when it is automatically closed.
protected static  BigIntegerconvertLongToUlong(long longVal)
     Converts the given value as a java long, to an 'unsigned' long, using the java.math.BigInteger class.
public  ResultSetInternalMethodscopy()
    
public  voiddeleteRow()
     JDBC 2.0 Delete the current row from the result set and the underlying database.
protected synchronized  DatefastDateCreate(Calendar cal, int year, int month, int day)
    
protected synchronized  TimefastTimeCreate(Calendar cal, int hour, int minute, int second)
    
protected synchronized  TimestampfastTimestampCreate(Calendar cal, int year, int month, int day, int hour, int minute, int seconds, int secondsPart)
    
public synchronized  intfindColumn(String columnName)
    
public  booleanfirst()
     JDBC 2.0

Moves to the first row in the result set.

public  java.sql.ArraygetArray(int i)
     JDBC 2.0 Get an array column.
Parameters:
  i - the first column is 1, the second is 2, ...
public  java.sql.ArraygetArray(String colName)
     JDBC 2.0 Get an array column.
public  InputStreamgetAsciiStream(int columnIndex)
     A column value can be retrieved as a stream of ASCII characters and then read in chunks from the stream.
public  InputStreamgetAsciiStream(String columnName)
    
public  BigDecimalgetBigDecimal(int columnIndex)
     JDBC 2.0 Get the value of a column in the current row as a java.math.BigDecimal object.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
public  BigDecimalgetBigDecimal(int columnIndex, int scale)
    
public  BigDecimalgetBigDecimal(String columnName)
     JDBC 2.0 Get the value of a column in the current row as a java.math.BigDecimal object.
public  BigDecimalgetBigDecimal(String columnName, int scale)
    
public  InputStreamgetBinaryStream(int columnIndex)
     A column value can also be retrieved as a binary stream.
public  InputStreamgetBinaryStream(String columnName)
    
public  java.sql.BlobgetBlob(int columnIndex)
     JDBC 2.0 Get a BLOB column.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
public  java.sql.BlobgetBlob(String colName)
     JDBC 2.0 Get a BLOB column.
public  booleangetBoolean(int columnIndex)
     Get the value of a column in the current row as a Java boolean
Parameters:
  columnIndex - the first column is 1, the second is 2...
public  booleangetBoolean(String columnName)
    
public  bytegetByte(int columnIndex)
     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 columnIndex)
     Get the value of a column in the current row as a Java byte array.

Be warned If the blob is huge, then you may run out of memory.


Parameters:
  columnIndex - the first column is 1, the second is 2, ...
protected  byte[]getBytes(int columnIndex, boolean noConversion)
    
public  byte[]getBytes(String columnName)
    
protected  CalendargetCalendarInstanceForSessionOrNew()
    
public  java.io.ReadergetCharacterStream(int columnIndex)
     JDBC 2.0

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

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

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

public  java.sql.ClobgetClob(int i)
     JDBC 2.0 Get a CLOB column.
Parameters:
  i - the first column is 1, the second is 2, ...
public  java.sql.ClobgetClob(String colName)
     JDBC 2.0 Get a CLOB column.
public  intgetConcurrency()
     JDBC 2.0 Return the concurrency of this result set.
public  StringgetCursorName()
     Get the name of the SQL cursor used by this ResultSet

In SQL, a result table is retrieved though a cursor that is named.

public  java.sql.DategetDate(int columnIndex)
     Get the value of a column in the current row as a java.sql.Date object
Parameters:
  columnIndex - the first column is 1, the second is 2...
public  java.sql.DategetDate(int columnIndex, Calendar cal)
     JDBC 2.0 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(String columnName, Calendar cal)
     Get the value of a column in the current row as a java.sql.Date object.
public  doublegetDouble(int columnIndex)
     Get the value of a column in the current row as a Java double.
Parameters:
  columnIndex - the first column is 1, the second is 2,...
public  doublegetDouble(String columnName)
    
protected  doublegetDoubleInternal(int colIndex)
     Converts a string representation of a number to a double.
protected  doublegetDoubleInternal(String stringVal, int colIndex)
     Converts a string representation of a number to a double.
public  intgetFetchDirection()
     JDBC 2.0 Returns the fetch direction for this result set.
public  intgetFetchSize()
     JDBC 2.0 Return the fetch size for this result set.
public  chargetFirstCharOfQuery()
     Returns the first character of the query that this result set was created from.
public  floatgetFloat(int columnIndex)
     Get the value of a column in the current row as a Java float.
Parameters:
  columnIndex - the first column is 1, the second is 2,...
public  floatgetFloat(String columnName)
    
protected  CalendargetGmtCalendar()
    
protected static  ResultSetImplgetInstance(long updateCount, long updateID, ConnectionImpl conn, StatementImpl creatorStmt)
    
protected static  ResultSetImplgetInstance(String catalog, Field[] fields, RowData tuples, ConnectionImpl conn, StatementImpl creatorStmt, boolean isUpdatable)
     Creates a result set instance that represents a query result -- We need to provide factory-style methods so we can support both JDBC3 (and older) and JDBC4 runtimes, otherwise the class verifier complains when it tries to load JDBC4-only interface classes that are present in JDBC4 method signatures.
public  intgetInt(int columnIndex)
     Get the value of a column in the current row as a Java int.
Parameters:
  columnIndex - the first column is 1, the second is 2,...
public  intgetInt(String columnName)
    
public  longgetLong(int columnIndex)
     Get the value of a column in the current row as a Java long.
Parameters:
  columnIndex - the first column is 1, the second is 2,...
public  longgetLong(String columnName)
    
public  java.sql.ResultSetMetaDatagetMetaData()
    
protected  java.sql.ArraygetNativeArray(int i)
     JDBC 2.0 Get an array column.
Parameters:
  i - the first column is 1, the second is 2, ...
protected  InputStreamgetNativeAsciiStream(int columnIndex)
     A column value can be retrieved as a stream of ASCII characters and then read in chunks from the stream.
protected  BigDecimalgetNativeBigDecimal(int columnIndex)
     JDBC 2.0 Get the value of a column in the current row as a java.math.BigDecimal object.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
protected  BigDecimalgetNativeBigDecimal(int columnIndex, int scale)
    
protected  InputStreamgetNativeBinaryStream(int columnIndex)
     A column value can also be retrieved as a binary stream.
protected  java.sql.BlobgetNativeBlob(int columnIndex)
     JDBC 2.0 Get a BLOB column.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
protected  bytegetNativeByte(int columnIndex)
     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,...
protected  bytegetNativeByte(int columnIndex, boolean overflowCheck)
    
protected  byte[]getNativeBytes(int columnIndex, boolean noConversion)
     Get the value of a column in the current row as a Java byte array.

Be warned If the blob is huge, then you may run out of memory.


Parameters:
  columnIndex - the first column is 1, the second is 2, ...
protected  java.io.ReadergetNativeCharacterStream(int columnIndex)
     JDBC 2.0

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

protected  java.sql.ClobgetNativeClob(int columnIndex)
     JDBC 2.0 Get a CLOB column.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
protected  java.sql.DategetNativeDate(int columnIndex)
     Get the value of a column in the current row as a java.sql.Date object
Parameters:
  columnIndex - the first column is 1, the second is 2...
protected  java.sql.DategetNativeDate(int columnIndex, TimeZone tz)
     JDBC 2.0 Get the value of a column in the current row as a java.sql.Date object.
 java.sql.DategetNativeDateViaParseConversion(int columnIndex)
    
protected  doublegetNativeDouble(int columnIndex)
     Get the value of a column in the current row as a Java double.
Parameters:
  columnIndex - the first column is 1, the second is 2,...
protected  floatgetNativeFloat(int columnIndex)
     Get the value of a column in the current row as a Java float.
Parameters:
  columnIndex - the first column is 1, the second is 2,...
protected  intgetNativeInt(int columnIndex)
     Get the value of a column in the current row as a Java int.
Parameters:
  columnIndex - the first column is 1, the second is 2,...
protected  intgetNativeInt(int columnIndex, boolean overflowCheck)
    
protected  longgetNativeLong(int columnIndex)
     Get the value of a column in the current row as a Java long.
Parameters:
  columnIndex - the first column is 1, the second is 2,...
protected  longgetNativeLong(int columnIndex, boolean overflowCheck, boolean expandUnsignedLong)
    
protected  java.sql.RefgetNativeRef(int i)
     JDBC 2.0 Get a REF(<structured-type>) column.
Parameters:
  i - the first column is 1, the second is 2, ...
protected  shortgetNativeShort(int columnIndex)
     Get the value of a column in the current row as a Java short.
Parameters:
  columnIndex - the first column is 1, the second is 2,...
protected  shortgetNativeShort(int columnIndex, boolean overflowCheck)
    
protected  StringgetNativeString(int columnIndex)
     Get the value of a column in the current row as a Java String
Parameters:
  columnIndex - the first column is 1, the second is 2...
 TimegetNativeTimeViaParseConversion(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward)
    
 TimestampgetNativeTimestampViaParseConversion(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward)
    
protected  URLgetNativeURL(int colIndex)
    
protected  InputStreamgetNativeUnicodeStream(int columnIndex)
     A column value can also be retrieved as a stream of Unicode characters. We implement this as a binary stream.
Parameters:
  columnIndex - the first column is 1, the second is 2...
public  ResultSetInternalMethodsgetNextResultSet()
    
public  ObjectgetObject(int columnIndex)
     Get the value of a column in the current row as a Java object

This method will return the value of the given column as a Java object. The type of the Java object will be the default Java Object type corresponding to the column's SQL type, following the mapping specified in the JDBC specification.

This method may also be used to read database specific abstract data types.


Parameters:
  columnIndex - the first column is 1, the second is 2...
public  ObjectgetObject(int i, java.util.Map map)
     JDBC 2.0 Returns the value of column i as a Java object.
public  ObjectgetObject(String columnName)
     Get the value of a column in the current row as a Java object

This method will return the value of the given column as a Java object.

public  ObjectgetObject(String colName, java.util.Map map)
     JDBC 2.0 Returns the value of column i as a Java object.
public  ObjectgetObjectStoredProc(int columnIndex, int desiredSqlType)
    
public  ObjectgetObjectStoredProc(int i, java.util.Map map, int desiredSqlType)
    
public  ObjectgetObjectStoredProc(String columnName, int desiredSqlType)
    
public  ObjectgetObjectStoredProc(String colName, java.util.Map map, int desiredSqlType)
    
public  java.sql.RefgetRef(int i)
     JDBC 2.0 Get a REF(<structured-type>) column.
Parameters:
  i - the first column is 1, the second is 2, ...
public  java.sql.RefgetRef(String colName)
     JDBC 2.0 Get a REF(<structured-type>) column.
public  intgetRow()
     JDBC 2.0

Determine the current row number.

public  StringgetServerInfo()
     Returns the server info (if any), or null if none.
public  shortgetShort(int columnIndex)
     Get the value of a column in the current row as a Java short.
Parameters:
  columnIndex - the first column is 1, the second is 2,...
public  shortgetShort(String columnName)
    
public  java.sql.StatementgetStatement()
     JDBC 2.0 Return the Statement that produced the ResultSet.
public  StringgetString(int columnIndex)
     Get the value of a column in the current row as a Java String
Parameters:
  columnIndex - the first column is 1, the second is 2...
public  StringgetString(String columnName)
     The following routines simply convert the columnName into a columnIndex and then call the appropriate routine above.
protected  StringgetStringInternal(int columnIndex, boolean checkDateTypes)
    
public  TimegetTime(int columnIndex)
     Get the value of a column in the current row as a java.sql.Time object
Parameters:
  columnIndex - the first column is 1, the second is 2...
public  java.sql.TimegetTime(int columnIndex, Calendar cal)
     Get the value of a column in the current row as a java.sql.Time object.
public  TimegetTime(String columnName)
     Get the value of a column in the current row as a java.sql.Time object.
public  java.sql.TimegetTime(String columnName, Calendar cal)
     Get the value of a column in the current row as a java.sql.Time object.
public  TimestampgetTimestamp(int columnIndex)
     Get the value of a column in the current row as a java.sql.Timestamp object
Parameters:
  columnIndex - the first column is 1, the second is 2...
public  java.sql.TimestampgetTimestamp(int columnIndex, Calendar cal)
     Get the value of a column in the current row as a java.sql.Timestamp object.
public  TimestampgetTimestamp(String columnName)
    
public  java.sql.TimestampgetTimestamp(String columnName, Calendar cal)
     Get the value of a column in the current row as a java.sql.Timestamp object.
public  intgetType()
     JDBC 2.0 Return the type of this result set.
public  URLgetURL(int colIndex)
    
public  URLgetURL(String colName)
    
public  InputStreamgetUnicodeStream(int columnIndex)
     A column value can also be retrieved as a stream of Unicode characters. We implement this as a binary stream.
Parameters:
  columnIndex - the first column is 1, the second is 2...
public  InputStreamgetUnicodeStream(String columnName)
    
public  longgetUpdateCount()
    
public  longgetUpdateID()
    
public  java.sql.SQLWarninggetWarnings()
     The first warning reported by calls on this ResultSet is returned. Subsequent ResultSet warnings will be chained to this java.sql.SQLWarning.

The warning chain is automatically cleared each time a new row is read.

Note: This warning chain only covers warnings caused by ResultSet methods.

public  voidinitializeFromCachedMetaData(CachedResultSetMetaData cachedMetaData)
    
public  voidinitializeWithMetadata()
    
public  voidinsertRow()
     JDBC 2.0 Insert the contents of the insert row into the result set and the database.
public  booleanisAfterLast()
     JDBC 2.0

Determine if the cursor is after the last row in the result set.

true if after the last row, false otherwise.
public  booleanisBeforeFirst()
     JDBC 2.0

Determine if the cursor is before the first row in the result set.

true if before the first row, false otherwise.
public  booleanisFirst()
     JDBC 2.0

Determine if the cursor is on the first row of the result set.

public  booleanisLast()
     JDBC 2.0

Determine if the cursor is on the last row of the result set.

public  booleanlast()
     JDBC 2.0

Moves to the last row in the result set.

public  voidmoveToCurrentRow()
     JDBC 2.0 Move the cursor to the remembered cursor position, usually the current row.
public  voidmoveToInsertRow()
     JDBC 2.0 Move to the insert row.
public  booleannext()
     A ResultSet is initially positioned before its first row, the first call to next makes the first row the current row; the second call makes the second row the current row, etc.

If an input stream from the previous row is open, it is implicitly closed.

public  voidpopulateCachedMetaData(CachedResultSetMetaData cachedMetaData)
    
public  booleanprev()
     The prev method is not part of JDBC, but because of the architecture of this driver it is possible to move both forward and backward within the result set.

If an input stream from the previous row is open, it is implicitly closed.

public  booleanprevious()
     JDBC 2.0

Moves to the previous row in the result set.

public  voidrealClose(boolean calledExplicitly)
     Closes this ResultSet and releases resources.
public  booleanreallyResult()
    
public  voidredefineFieldsForDBMD(Field[] f)
    
public  voidrefreshRow()
     JDBC 2.0 Refresh the value of the current row with its current value in the database.
public  booleanrelative(int rows)
     JDBC 2.0

Moves a relative number of rows, either positive or negative.

public  booleanrowDeleted()
     JDBC 2.0 Determine if this row has been deleted.
public  booleanrowInserted()
     JDBC 2.0 Determine if the current row has been inserted.
public  booleanrowUpdated()
     JDBC 2.0 Determine if the current row has been updated.
protected  voidsetBinaryEncoded()
     Flag that this result set is 'binary' encoded (from a PreparedStatement), not stored as strings.
public  voidsetFetchDirection(int direction)
     JDBC 2.0 Give a hint as to the direction in which the rows in this result set will be processed.
public  voidsetFetchSize(int rows)
     JDBC 2.0 Give 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  voidsetFirstCharOfQuery(char c)
     Sets the first character of the query that this result set was created from.
protected  voidsetNextResultSet(ResultSetInternalMethods nextResultSet)
    
public  voidsetOwningStatement(com.mysql.jdbc.StatementImpl owningStatement)
    
protected  voidsetResultSetConcurrency(int concurrencyFlag)
    
protected  voidsetResultSetType(int typeFlag)
    
protected  voidsetServerInfo(String info)
    
public  voidsetStatementUsedForFetchingRows(PreparedStatement stmt)
    
public  voidsetWrapperStatement(java.sql.Statement wrapperStatement)
    
public  StringtoString()
    
public  voidupdateArray(int arg0, Array arg1)
    
public  voidupdateArray(String arg0, Array arg1)
    
public  voidupdateAsciiStream(int columnIndex, java.io.InputStream x, int length)
     JDBC 2.0 Update a column with an ascii stream value.
public  voidupdateAsciiStream(String columnName, java.io.InputStream x, int length)
     JDBC 2.0 Update a column with an ascii stream value.
public  voidupdateBigDecimal(int columnIndex, BigDecimal x)
     JDBC 2.0 Update a column with a BigDecimal value.
public  voidupdateBigDecimal(String columnName, BigDecimal x)
     JDBC 2.0 Update a column with a BigDecimal value.
public  voidupdateBinaryStream(int columnIndex, java.io.InputStream x, int length)
     JDBC 2.0 Update a column with a binary stream value.
public  voidupdateBinaryStream(String columnName, java.io.InputStream x, int length)
     JDBC 2.0 Update a column with a binary stream value.
public  voidupdateBlob(int arg0, java.sql.Blob arg1)
    
public  voidupdateBlob(String arg0, java.sql.Blob arg1)
    
public  voidupdateBoolean(int columnIndex, boolean x)
     JDBC 2.0 Update a column with a boolean value.
public  voidupdateBoolean(String columnName, boolean x)
     JDBC 2.0 Update a column with a boolean value.
public  voidupdateByte(int columnIndex, byte x)
     JDBC 2.0 Update a column with a byte value.
public  voidupdateByte(String columnName, byte x)
     JDBC 2.0 Update a column with a byte value.
public  voidupdateBytes(int columnIndex, byte[] x)
     JDBC 2.0 Update a column with a byte array value.
public  voidupdateBytes(String columnName, byte[] x)
     JDBC 2.0 Update a column with a byte array value.
public  voidupdateCharacterStream(int columnIndex, java.io.Reader x, int length)
     JDBC 2.0 Update a column with a character stream value.
public  voidupdateCharacterStream(String columnName, java.io.Reader reader, int length)
     JDBC 2.0 Update a column with a character stream value.
public  voidupdateClob(int arg0, java.sql.Clob arg1)
    
public  voidupdateClob(String columnName, java.sql.Clob clob)
    
public  voidupdateDate(int columnIndex, java.sql.Date x)
     JDBC 2.0 Update a column with a Date value.
public  voidupdateDate(String columnName, java.sql.Date x)
     JDBC 2.0 Update a column with a Date value.
public  voidupdateDouble(int columnIndex, double x)
     JDBC 2.0 Update a column with a Double value.
public  voidupdateDouble(String columnName, double x)
     JDBC 2.0 Update a column with a double value.
public  voidupdateFloat(int columnIndex, float x)
     JDBC 2.0 Update a column with a float value.
public  voidupdateFloat(String columnName, float x)
     JDBC 2.0 Update a column with a float value.
public  voidupdateInt(int columnIndex, int x)
     JDBC 2.0 Update a column with an integer value.
public  voidupdateInt(String columnName, int x)
     JDBC 2.0 Update a column with an integer value.
public  voidupdateLong(int columnIndex, long x)
     JDBC 2.0 Update a column with a long value.
public  voidupdateLong(String columnName, long x)
     JDBC 2.0 Update a column with a long value.
public  voidupdateNull(int columnIndex)
     JDBC 2.0 Give a nullable column a null value.
public  voidupdateNull(String columnName)
     JDBC 2.0 Update a column with a null value.
public  voidupdateObject(int columnIndex, Object x)
     JDBC 2.0 Update a column with an Object value.
public  voidupdateObject(int columnIndex, Object x, int scale)
     JDBC 2.0 Update a column with an Object value.
public  voidupdateObject(String columnName, Object x)
     JDBC 2.0 Update a column with an Object value.
public  voidupdateObject(String columnName, Object x, int scale)
     JDBC 2.0 Update a column with an Object value.
public  voidupdateRef(int arg0, Ref arg1)
    
public  voidupdateRef(String arg0, Ref arg1)
    
public  voidupdateRow()
     JDBC 2.0 Update the underlying database with the new contents of the current row.
public  voidupdateShort(int columnIndex, short x)
     JDBC 2.0 Update a column with a short value.
public  voidupdateShort(String columnName, short x)
     JDBC 2.0 Update a column with a short value.
public  voidupdateString(int columnIndex, String x)
     JDBC 2.0 Update a column with a String value.
public  voidupdateString(String columnName, String x)
     JDBC 2.0 Update a column with a String value.
public  voidupdateTime(int columnIndex, java.sql.Time x)
     JDBC 2.0 Update a column with a Time value.
public  voidupdateTime(String columnName, java.sql.Time x)
     JDBC 2.0 Update a column with a Time value.
public  voidupdateTimestamp(int columnIndex, java.sql.Timestamp x)
     JDBC 2.0 Update a column with a Timestamp value.
public  voidupdateTimestamp(String columnName, java.sql.Timestamp x)
     JDBC 2.0 Update a column with a Timestamp value.
public  booleanwasNull()
     A column may have the value of SQL NULL; wasNull() reports whether the last column read had this special value.

Field Detail
EMPTY_SPACE
final protected static char[] EMPTY_SPACE(Code)



MAX_DIFF_PREC
final protected static double MAX_DIFF_PREC(Code)
Epsillon between Float.MAX_VALUE and the double representation of said value.



MIN_DIFF_PREC
final protected static double MIN_DIFF_PREC(Code)
Epsillon between Float.MIN_VALUE and the double representation of said value.



catalog
protected String catalog(Code)
The catalog that was in use when we were created



columnNameToIndex
protected Map columnNameToIndex(Code)
Map column names (and all of their permutations) to column indices



columnUsed
protected boolean[] columnUsed(Code)
Keep track of columns accessed



connection
protected ConnectionImpl connection(Code)
The Connection instance that created us



connectionId
protected long connectionId(Code)



currentRow
protected int currentRow(Code)
The current row #, -1 == before start of result set



defaultTimeZone
TimeZone defaultTimeZone(Code)



doingUpdates
protected boolean doingUpdates(Code)
Are we in the middle of doing updates to the current row?



eventSink
protected ProfileEventSink eventSink(Code)



fastDateCal
Calendar fastDateCal(Code)



fetchDirection
protected int fetchDirection(Code)
The direction to fetch rows (always FETCH_FORWARD)



fetchSize
protected int fetchSize(Code)
The number of rows to fetch in one go...



fields
protected Field[] fields(Code)
The fields for this result set



firstCharOfQuery
protected char firstCharOfQuery(Code)
First character of the query that created this result set...Used to determine whether or not to parse server info messages in certain circumstances.



fullColumnNameToIndex
protected Map fullColumnNameToIndex(Code)
Map of fully-specified column names to column indices



gmtCalendar
protected Calendar gmtCalendar(Code)



hasBuiltIndexMapping
protected boolean hasBuiltIndexMapping(Code)



isBinaryEncoded
protected boolean isBinaryEncoded(Code)
Is the data stored as strings (default) or natively (which is the case with results from PrepStmts)



isClosed
protected boolean isClosed(Code)
Has this result set been closed?



nextResultSet
protected ResultSetInternalMethods nextResultSet(Code)



onInsertRow
protected boolean onInsertRow(Code)
Are we on the insert row?



owningStatement
protected com.mysql.jdbc.StatementImpl owningStatement(Code)
The statement that created us



pointOfOrigin
protected Throwable pointOfOrigin(Code)
StackTrace generated where ResultSet was created... used when profiling



profileSql
protected boolean profileSql(Code)
Are we tracking items for profileSql?



reallyResult
protected boolean reallyResult(Code)
Do we actually contain rows, or just information about UPDATE/INSERT/DELETE?



resultCounter
protected static int resultCounter(Code)
Counter used to generate IDs for profiling.



resultId
protected int resultId(Code)
The id (used when profiling) to identify us



resultSetConcurrency
protected int resultSetConcurrency(Code)
Are we read-only or updatable?



resultSetType
protected int resultSetType(Code)
Are we scroll-sensitive/insensitive?



retainOwningStatement
protected boolean retainOwningStatement(Code)



rowData
protected RowData rowData(Code)
The actual rows



serverInfo
protected String serverInfo(Code)
Any info message from the server that was created while generating this result set (if 'info parsing' is enabled for the connection).



statementUsedForFetchingRows
PreparedStatement statementUsedForFetchingRows(Code)



thisRow
protected ResultSetRow thisRow(Code)
Pointer to current row data



updateCount
protected long updateCount(Code)
How many rows were affected by UPDATE/INSERT/DELETE?



updateId
protected long updateId(Code)
Value generated for AUTO_INCREMENT columns



useFastDateParsing
protected boolean useFastDateParsing(Code)



useUsageAdvisor
protected boolean useUsageAdvisor(Code)



warningChain
protected java.sql.SQLWarning warningChain(Code)
The warning chain



wasNullFlag
protected boolean wasNullFlag(Code)
Did the previous value retrieval find a NULL?



wrapperStatement
protected java.sql.Statement wrapperStatement(Code)




Constructor Detail
ResultSetImpl
public ResultSetImpl(long updateCount, long updateID, ConnectionImpl conn, StatementImpl creatorStmt)(Code)
Create a result set for an executeUpdate statement.
Parameters:
  updateCount - the number of rows affected by the update
Parameters:
  updateID - the autoincrement value (if any)
Parameters:
  conn - DOCUMENT ME!
Parameters:
  creatorStmt - DOCUMENT ME!



ResultSetImpl
public ResultSetImpl(String catalog, Field[] fields, RowData tuples, ConnectionImpl conn, StatementImpl creatorStmt) throws SQLException(Code)
Creates a new ResultSet object.
Parameters:
  catalog - the database in use when we were created
Parameters:
  fields - an array of Field objects (basically, the ResultSet MetaData)
Parameters:
  tuples - actual row data
Parameters:
  conn - the Connection that created us.
Parameters:
  creatorStmt - DOCUMENT ME!
throws:
  SQLException - if an error occurs




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

Move to an absolute row number in the result set.

If row is positive, moves to an absolute row with respect to the beginning of the result set. The first row is row 1, the second is row 2, etc.

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

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().


Parameters:
  row - the row number to move to true if on the result set, false if off.
exception:
  SQLException - if a database-access error occurs, or row is 0, or resultset type is TYPE_FORWARD_ONLY.



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

Moves 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 result set type isTYPE_FORWARD_ONLY.



arraysEqual
public static boolean arraysEqual(byte[] left, byte[] right)(Code)



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

Moves 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 result set type isTYPE_FORWARD_ONLY



buildIndexMapping
public void buildIndexMapping() throws SQLException(Code)
Builds a hash between column names and their indices for fast retrieval.



cancelRowUpdates
public void cancelRowUpdates() throws SQLException(Code)
JDBC 2.0 The cancelRowUpdates() 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 if called when onthe insert row.
throws:
  NotUpdatable - DOCUMENT ME!



checkClosed
final protected void checkClosed() throws SQLException(Code)
Ensures that the result set is not closed
throws:
  SQLException - if the result set is closed



checkColumnBounds
final protected void checkColumnBounds(int columnIndex) throws SQLException(Code)
Checks if columnIndex is within the number of columns in this result set.
Parameters:
  columnIndex - the index to check
throws:
  SQLException - if the index is out of bounds



checkRowPos
protected void checkRowPos() throws SQLException(Code)
Ensures that the cursor is positioned on a valid row and that the result set is not closed
throws:
  SQLException - if the result set is not in a valid state for traversal



clearNextResult
public void clearNextResult()(Code)
We can't do this ourselves, otherwise the contract for Statement.getMoreResults() won't work correctly.



clearWarnings
public void clearWarnings() throws SQLException(Code)
After this call, getWarnings returns null until a new warning is reported for this ResultSet
exception:
  SQLException - if a database access error occurs



close
public void close() throws SQLException(Code)
In some cases, it is desirable to immediately release a ResultSet database and JDBC resources instead of waiting for this to happen when it is automatically closed. The close method provides this immediate release.

Note: A ResultSet is automatically closed by the Statement the Statement that generated it when that Statement is closed, re-executed, or is used to retrieve the next result from a sequence of multiple results. A ResultSet is also automatically closed when it is garbage collected.


exception:
  SQLException - if a database access error occurs



convertLongToUlong
protected static BigInteger convertLongToUlong(long longVal)(Code)
Converts the given value as a java long, to an 'unsigned' long, using the java.math.BigInteger class.



copy
public ResultSetInternalMethods copy() throws SQLException(Code)



deleteRow
public void deleteRow() throws SQLException(Code)
JDBC 2.0 Delete 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 onthe insert row.
throws:
  NotUpdatable - DOCUMENT ME!



fastDateCreate
protected synchronized Date fastDateCreate(Calendar cal, int year, int month, int day)(Code)



fastTimeCreate
protected synchronized Time fastTimeCreate(Calendar cal, int hour, int minute, int second) throws SQLException(Code)



fastTimestampCreate
protected synchronized Timestamp fastTimestampCreate(Calendar cal, int year, int month, int day, int hour, int minute, int seconds, int secondsPart)(Code)



findColumn
public synchronized int findColumn(String columnName) throws SQLException(Code)
Map a ResultSet column name to a ResultSet column index
Parameters:
  columnName - the name of the column the column index
exception:
  SQLException - if a database access error occurs



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

Moves to the first row in the result set.

true if on a valid row, false if no rows in the result set.
exception:
  SQLException - if a database-access error occurs, or result set type isTYPE_FORWARD_ONLY.



getArray
public java.sql.Array getArray(int i) throws SQLException(Code)
JDBC 2.0 Get an array column.
Parameters:
  i - the first column is 1, the second is 2, ... an object representing an SQL array
throws:
  SQLException - if a database error occurs
throws:
  NotImplemented - DOCUMENT ME!



getArray
public java.sql.Array getArray(String colName) throws SQLException(Code)
JDBC 2.0 Get an array column.
Parameters:
  colName - the column name an object representing an SQL array
throws:
  SQLException - if a database error occurs
throws:
  NotImplemented - DOCUMENT ME!



getAsciiStream
public InputStream getAsciiStream(int columnIndex) throws SQLException(Code)
A column value can be retrieved as a stream of ASCII characters and then read in chunks from the stream. This method is particulary suitable for retrieving large LONGVARCHAR values. The JDBC driver will do any necessary conversion from the database format into ASCII.

Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a get method implicitly closes the stream. Also, a stream may return 0 for available() whether there is data available or not.


Parameters:
  columnIndex - the first column is 1, the second is 2, ... a Java InputStream that delivers the database column value as astream of one byte ASCII characters. If the value is SQL NULLthen the result is null
exception:
  SQLException - if a database access error occurs
See Also:   getBinaryStream



getAsciiStream
public InputStream getAsciiStream(String columnName) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  columnName - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



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



getBigDecimal
public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException(Code)
Get the value of a column in the current row as a java.math.BigDecimal object
Parameters:
  columnIndex - the first column is 1, the second is 2...
Parameters:
  scale - the number of digits to the right of the decimal the column value; if the value is SQL NULL, null
exception:
  SQLException - if a database access error occurs



getBigDecimal
public BigDecimal getBigDecimal(String columnName) throws SQLException(Code)
JDBC 2.0 Get the value of a column in the current row as a java.math.BigDecimal object.
Parameters:
  columnName - the name of the column to retrieve the value from the BigDecimal value in the column
throws:
  SQLException - if an error occurs



getBigDecimal
public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  columnName - DOCUMENT ME!
Parameters:
  scale - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



getBinaryStream
public InputStream getBinaryStream(int columnIndex) throws SQLException(Code)
A column value can also be retrieved as a binary stream. This method is suitable for retrieving LONGVARBINARY values.
Parameters:
  columnIndex - the first column is 1, the second is 2... a Java InputStream that delivers the database column value as astream of bytes. If the value is SQL NULL, then the result isnull
exception:
  SQLException - if a database access error occurs
See Also:   getAsciiStream
See Also:   getUnicodeStream



getBinaryStream
public InputStream getBinaryStream(String columnName) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  columnName - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



getBlob
public java.sql.Blob getBlob(int columnIndex) throws SQLException(Code)
JDBC 2.0 Get a BLOB column.
Parameters:
  columnIndex - the first column is 1, the second is 2, ... an object representing a BLOB
throws:
  SQLException - if an error occurs.



getBlob
public java.sql.Blob getBlob(String colName) throws SQLException(Code)
JDBC 2.0 Get a BLOB column.
Parameters:
  colName - the column name an object representing a BLOB
throws:
  SQLException - if an error occurs.



getBoolean
public boolean getBoolean(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java boolean
Parameters:
  columnIndex - the first column is 1, the second is 2... the column value, false for SQL NULL
exception:
  SQLException - if a database access error occurs



getBoolean
public boolean getBoolean(String columnName) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  columnName - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



getByte
public byte getByte(int columnIndex) 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; 0 if SQL NULL
exception:
  SQLException - if a database access error occurs



getByte
public byte getByte(String columnName) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  columnName - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



getBytes
public byte[] getBytes(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java byte array.

Be warned If the blob is huge, then you may run out of memory.


Parameters:
  columnIndex - the first column is 1, the second is 2, ... the column value; if the value is SQL NULL, the result is null
exception:
  SQLException - if a database access error occurs



getBytes
protected byte[] getBytes(int columnIndex, boolean noConversion) throws SQLException(Code)



getBytes
public byte[] getBytes(String columnName) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  columnName - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



getCalendarInstanceForSessionOrNew
protected Calendar getCalendarInstanceForSessionOrNew()(Code)
Optimization to only use one calendar per-session, or calculate it for each call, depending on user configuration



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

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


Parameters:
  columnIndex - the column to get the value from the value in the column as a java.io.Reader.
throws:
  SQLException - if an error occurs



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

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


Parameters:
  columnName - the column name to retrieve the value from the value as a java.io.Reader
throws:
  SQLException - if an error occurs



getClob
public java.sql.Clob getClob(int i) throws SQLException(Code)
JDBC 2.0 Get a CLOB column.
Parameters:
  i - the first column is 1, the second is 2, ... an object representing a CLOB
throws:
  SQLException - if an error occurs



getClob
public java.sql.Clob getClob(String colName) throws SQLException(Code)
JDBC 2.0 Get a CLOB column.
Parameters:
  colName - the column name an object representing a CLOB
throws:
  SQLException - if an error occurs



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



getCursorName
public String getCursorName() throws SQLException(Code)
Get the name of the SQL cursor used by this ResultSet

In SQL, a result table is retrieved though a cursor that is named. The current row of a result can be updated or deleted using a positioned update/delete statement that references the cursor name.

JDBC supports this SQL feature by providing the name of the SQL cursor used by a ResultSet. The current row of a ResulSet is also the current row of this SQL cursor.

Note: If positioned update is not supported, a SQLException is thrown.

the ResultSet's SQL cursor name.
exception:
  SQLException - if a database access error occurs



getDate
public java.sql.Date getDate(int columnIndex) throws java.sql.SQLException(Code)
Get the value of a column in the current row as a java.sql.Date object
Parameters:
  columnIndex - the first column is 1, the second is 2... the column value; null if SQL NULL
exception:
  java.sql.SQLException - if a database access error occurs



getDate
public java.sql.Date getDate(int columnIndex, Calendar cal) throws SQLException(Code)
JDBC 2.0 Get the value of a column in the current row as a java.sql.Date object. Use the calendar to construct an appropriate millisecond value for the Date, if the underlying database doesn't 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) throws java.sql.SQLException(Code)
DOCUMENT ME!
Parameters:
  columnName - DOCUMENT ME! DOCUMENT ME!
throws:
  java.sql.SQLException - DOCUMENT ME!



getDate
public java.sql.Date getDate(String columnName, Calendar cal) throws SQLException(Code)
Get the value of a column in the current row as a java.sql.Date object. Use the calendar to construct an appropriate millisecond value for the Date, if the underlying database doesn't store timezone information.
Parameters:
  columnName - is the SQL name of the column
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 columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java double.
Parameters:
  columnIndex - the first column is 1, the second is 2,... the column value; 0 if SQL NULL
exception:
  SQLException - if a database access error occurs



getDouble
public double getDouble(String columnName) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  columnName - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



getDoubleInternal
protected double getDoubleInternal(int colIndex) throws SQLException(Code)
Converts a string representation of a number to a double. Need a faster way to do this.
Parameters:
  colIndex - the 1-based index of the column to retrieve a double from. the double value represented by the string in buf
throws:
  SQLException - if an error occurs



getDoubleInternal
protected double getDoubleInternal(String stringVal, int colIndex) throws SQLException(Code)
Converts a string representation of a number to a double. Need a faster way to do this.
Parameters:
  stringVal - the double as a String
Parameters:
  colIndex - the 1-based index of the column to retrieve a double from. the double value represented by the string in buf
throws:
  SQLException - if an error occurs



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



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



getFirstCharOfQuery
public char getFirstCharOfQuery()(Code)
Returns the first character of the query that this result set was created from. the first character of the query...uppercased



getFloat
public float getFloat(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java float.
Parameters:
  columnIndex - the first column is 1, the second is 2,... the column value; 0 if SQL NULL
exception:
  SQLException - if a database access error occurs



getFloat
public float getFloat(String columnName) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  columnName - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



getGmtCalendar
protected Calendar getGmtCalendar()(Code)



getInstance
protected static ResultSetImpl getInstance(long updateCount, long updateID, ConnectionImpl conn, StatementImpl creatorStmt) throws SQLException(Code)



getInstance
protected static ResultSetImpl getInstance(String catalog, Field[] fields, RowData tuples, ConnectionImpl conn, StatementImpl creatorStmt, boolean isUpdatable) throws SQLException(Code)
Creates a result set instance that represents a query result -- We need to provide factory-style methods so we can support both JDBC3 (and older) and JDBC4 runtimes, otherwise the class verifier complains when it tries to load JDBC4-only interface classes that are present in JDBC4 method signatures.



getInt
public int getInt(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java int.
Parameters:
  columnIndex - the first column is 1, the second is 2,... the column value; 0 if SQL NULL
exception:
  SQLException - if a database access error occurs



getInt
public int getInt(String columnName) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  columnName - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



getLong
public long getLong(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java long.
Parameters:
  columnIndex - the first column is 1, the second is 2,... the column value; 0 if SQL NULL
exception:
  SQLException - if a database access error occurs



getLong
public long getLong(String columnName) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  columnName - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



getMetaData
public java.sql.ResultSetMetaData getMetaData() throws SQLException(Code)
The numbers, types and properties of a ResultSet's columns are provided by the getMetaData method a description of the ResultSet's columns
exception:
  SQLException - if a database access error occurs



getNativeArray
protected java.sql.Array getNativeArray(int i) throws SQLException(Code)
JDBC 2.0 Get an array column.
Parameters:
  i - the first column is 1, the second is 2, ... an object representing an SQL array
throws:
  SQLException - if a database error occurs
throws:
  NotImplemented - DOCUMENT ME!



getNativeAsciiStream
protected InputStream getNativeAsciiStream(int columnIndex) throws SQLException(Code)
A column value can be retrieved as a stream of ASCII characters and then read in chunks from the stream. This method is particulary suitable for retrieving large LONGVARCHAR values. The JDBC driver will do any necessary conversion from the database format into ASCII.

Note: All the data in the returned stream must be read prior to getting the value of any other column. The next call to a get method implicitly closes the stream. Also, a stream may return 0 for available() whether there is data available or not.


Parameters:
  columnIndex - the first column is 1, the second is 2, ... a Java InputStream that delivers the database column value as astream of one byte ASCII characters. If the value is SQL NULLthen the result is null
exception:
  SQLException - if a database access error occurs
See Also:   getBinaryStream



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



getNativeBigDecimal
protected BigDecimal getNativeBigDecimal(int columnIndex, int scale) throws SQLException(Code)
Get the value of a column in the current row as a java.math.BigDecimal object
Parameters:
  columnIndex - the first column is 1, the second is 2...
Parameters:
  scale - the number of digits to the right of the decimal the column value; if the value is SQL NULL, null
exception:
  SQLException - if a database access error occurs



getNativeBinaryStream
protected InputStream getNativeBinaryStream(int columnIndex) throws SQLException(Code)
A column value can also be retrieved as a binary stream. This method is suitable for retrieving LONGVARBINARY values.
Parameters:
  columnIndex - the first column is 1, the second is 2... a Java InputStream that delivers the database column value as astream of bytes. If the value is SQL NULL, then the result isnull
exception:
  SQLException - if a database access error occurs
See Also:   getAsciiStream
See Also:   getUnicodeStream



getNativeBlob
protected java.sql.Blob getNativeBlob(int columnIndex) throws SQLException(Code)
JDBC 2.0 Get a BLOB column.
Parameters:
  columnIndex - the first column is 1, the second is 2, ... an object representing a BLOB
throws:
  SQLException - if an error occurs.



getNativeByte
protected byte getNativeByte(int columnIndex) 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; 0 if SQL NULL
exception:
  SQLException - if a database access error occurs



getNativeByte
protected byte getNativeByte(int columnIndex, boolean overflowCheck) throws SQLException(Code)



getNativeBytes
protected byte[] getNativeBytes(int columnIndex, boolean noConversion) throws SQLException(Code)
Get the value of a column in the current row as a Java byte array.

Be warned If the blob is huge, then you may run out of memory.


Parameters:
  columnIndex - the first column is 1, the second is 2, ... the column value; if the value is SQL NULL, the result is null
exception:
  SQLException - if a database access error occurs



getNativeCharacterStream
protected java.io.Reader getNativeCharacterStream(int columnIndex) throws SQLException(Code)
JDBC 2.0

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


Parameters:
  columnIndex - the column to get the value from the value in the column as a java.io.Reader.
throws:
  SQLException - if an error occurs



getNativeClob
protected java.sql.Clob getNativeClob(int columnIndex) throws SQLException(Code)
JDBC 2.0 Get a CLOB column.
Parameters:
  columnIndex - the first column is 1, the second is 2, ... an object representing a CLOB
throws:
  SQLException - if an error occurs



getNativeDate
protected java.sql.Date getNativeDate(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a java.sql.Date object
Parameters:
  columnIndex - the first column is 1, the second is 2... the column value; null if SQL NULL
exception:
  SQLException - if a database access error occurs



getNativeDate
protected java.sql.Date getNativeDate(int columnIndex, TimeZone tz) throws SQLException(Code)
JDBC 2.0 Get the value of a column in the current row as a java.sql.Date object. Use the calendar to construct an appropriate millisecond value for the Date, if the underlying database doesn't store timezone information.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
Parameters:
  tz - 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.



getNativeDateViaParseConversion
java.sql.Date getNativeDateViaParseConversion(int columnIndex) throws SQLException(Code)



getNativeDouble
protected double getNativeDouble(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java double.
Parameters:
  columnIndex - the first column is 1, the second is 2,... the column value; 0 if SQL NULL
exception:
  SQLException - if a database access error occurs



getNativeFloat
protected float getNativeFloat(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java float.
Parameters:
  columnIndex - the first column is 1, the second is 2,... the column value; 0 if SQL NULL
exception:
  SQLException - if a database access error occurs



getNativeInt
protected int getNativeInt(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java int.
Parameters:
  columnIndex - the first column is 1, the second is 2,... the column value; 0 if SQL NULL
exception:
  SQLException - if a database access error occurs



getNativeInt
protected int getNativeInt(int columnIndex, boolean overflowCheck) throws SQLException(Code)



getNativeLong
protected long getNativeLong(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java long.
Parameters:
  columnIndex - the first column is 1, the second is 2,... the column value; 0 if SQL NULL
exception:
  SQLException - if a database access error occurs



getNativeLong
protected long getNativeLong(int columnIndex, boolean overflowCheck, boolean expandUnsignedLong) throws SQLException(Code)



getNativeRef
protected java.sql.Ref getNativeRef(int i) throws SQLException(Code)
JDBC 2.0 Get a REF(<structured-type>) column.
Parameters:
  i - the first column is 1, the second is 2, ... an object representing data of an SQL REF type
throws:
  SQLException - as this is not implemented
throws:
  NotImplemented - DOCUMENT ME!



getNativeShort
protected short getNativeShort(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java short.
Parameters:
  columnIndex - the first column is 1, the second is 2,... the column value; 0 if SQL NULL
exception:
  SQLException - if a database access error occurs



getNativeShort
protected short getNativeShort(int columnIndex, boolean overflowCheck) throws SQLException(Code)



getNativeString
protected String getNativeString(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java String
Parameters:
  columnIndex - the first column is 1, the second is 2... the column value, null for SQL NULL
exception:
  SQLException - if a database access error occurs



getNativeTimeViaParseConversion
Time getNativeTimeViaParseConversion(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward) throws SQLException(Code)



getNativeTimestampViaParseConversion
Timestamp getNativeTimestampViaParseConversion(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward) throws SQLException(Code)



getNativeURL
protected URL getNativeURL(int colIndex) throws SQLException(Code)

See Also:   ResultSetInternalMethods.getURL(int)



getNativeUnicodeStream
protected InputStream getNativeUnicodeStream(int columnIndex) throws SQLException(Code)
A column value can also be retrieved as a stream of Unicode characters. We implement this as a binary stream.
Parameters:
  columnIndex - the first column is 1, the second is 2... a Java InputStream that delivers the database column value as astream of two byte Unicode characters. If the value is SQL NULL,then the result is null
exception:
  SQLException - if a database access error occurs
See Also:   getAsciiStream
See Also:   getBinaryStream



getNextResultSet
public ResultSetInternalMethods getNextResultSet()(Code)
DOCUMENT ME! Returns the nextResultSet, if any, null if none exists.



getObject
public Object getObject(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java object

This method will return the value of the given column as a Java object. The type of the Java object will be the default Java Object type corresponding to the column's SQL type, following the mapping specified in the JDBC specification.

This method may also be used to read database specific abstract data types.


Parameters:
  columnIndex - the first column is 1, the second is 2... a Object holding the column value
exception:
  SQLException - if a database access error occurs



getObject
public Object getObject(int i, java.util.Map map) throws SQLException(Code)
JDBC 2.0 Returns the value of column i as a Java object. Use the map to determine the class from which to construct data of SQL structured and distinct types.
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
throws:
  SQLException - because this is not implemented



getObject
public Object getObject(String columnName) throws SQLException(Code)
Get the value of a column in the current row as a Java object

This method will return the value of the given column as a Java object. The type of the Java object will be the default Java Object type corresponding to the column's SQL type, following the mapping specified in the JDBC specification.

This method may also be used to read database specific abstract data types.


Parameters:
  columnName - is the SQL name of the column a Object holding the column value
exception:
  SQLException - if a database access error occurs



getObject
public Object getObject(String colName, java.util.Map map) throws SQLException(Code)
JDBC 2.0 Returns the value of column i as a Java object. Use the map to determine the class from which to construct data of SQL structured and distinct types.
Parameters:
  colName - the column name
Parameters:
  map - the mapping from SQL type names to Java classes an object representing the SQL value
throws:
  SQLException - as this is not implemented



getObjectStoredProc
public Object getObjectStoredProc(int columnIndex, int desiredSqlType) throws SQLException(Code)



getObjectStoredProc
public Object getObjectStoredProc(int i, java.util.Map map, int desiredSqlType) throws SQLException(Code)



getObjectStoredProc
public Object getObjectStoredProc(String columnName, int desiredSqlType) throws SQLException(Code)



getObjectStoredProc
public Object getObjectStoredProc(String colName, java.util.Map map, int desiredSqlType) throws SQLException(Code)



getRef
public java.sql.Ref getRef(int i) throws SQLException(Code)
JDBC 2.0 Get a REF(<structured-type>) column.
Parameters:
  i - the first column is 1, the second is 2, ... an object representing data of an SQL REF type
throws:
  SQLException - as this is not implemented
throws:
  NotImplemented - DOCUMENT ME!



getRef
public java.sql.Ref getRef(String colName) throws SQLException(Code)
JDBC 2.0 Get a REF(<structured-type>) column.
Parameters:
  colName - the column name an object representing data of an SQL REF type
throws:
  SQLException - as this method is not implemented.
throws:
  NotImplemented - DOCUMENT ME!



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

Determine the current row number. The first row is number 1, the second number 2, etc.

the current row number, else return 0 if there is no current row
exception:
  SQLException - if a database-access error occurs.



getServerInfo
public String getServerInfo()(Code)
Returns the server info (if any), or null if none. server info created for this ResultSet



getShort
public short getShort(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java short.
Parameters:
  columnIndex - the first column is 1, the second is 2,... the column value; 0 if SQL NULL
exception:
  SQLException - if a database access error occurs



getShort
public short getShort(String columnName) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  columnName - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



getStatement
public java.sql.Statement getStatement() throws SQLException(Code)
JDBC 2.0 Return the Statement that produced the ResultSet. the Statment that produced the result set, or null if the resultwas produced some other way.
exception:
  SQLException - if a database-access error occurs



getString
public String getString(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java String
Parameters:
  columnIndex - the first column is 1, the second is 2... the column value, null for SQL NULL
exception:
  SQLException - if a database access error occurs



getString
public String getString(String columnName) throws SQLException(Code)
The following routines simply convert the columnName into a columnIndex and then call the appropriate routine above.
Parameters:
  columnName - is the SQL name of the column the column value
exception:
  SQLException - if a database access error occurs



getStringInternal
protected String getStringInternal(int columnIndex, boolean checkDateTypes) throws SQLException(Code)



getTime
public Time getTime(int columnIndex) throws java.sql.SQLException(Code)
Get the value of a column in the current row as a java.sql.Time object
Parameters:
  columnIndex - the first column is 1, the second is 2... the column value; null if SQL NULL
throws:
  java.sql.SQLException - if a database access error occurs



getTime
public java.sql.Time getTime(int columnIndex, Calendar cal) throws SQLException(Code)
Get the value of a column in the current row as a java.sql.Time object. Use the calendar to construct an appropriate millisecond value for the Time, if the underlying database doesn't 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 Time getTime(String columnName) throws java.sql.SQLException(Code)
Get the value of a column in the current row as a java.sql.Time object.
Parameters:
  columnName - is the SQL name of the column the column value; if the value is SQL NULL, the result is null
throws:
  java.sql.SQLException - if a database-access error occurs.



getTime
public java.sql.Time getTime(String columnName, Calendar cal) throws SQLException(Code)
Get the value of a column in the current row as a java.sql.Time object. Use the calendar to construct an appropriate millisecond value for the Time, if the underlying database doesn't store timezone information.
Parameters:
  columnName - is 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 Timestamp getTimestamp(int columnIndex) throws java.sql.SQLException(Code)
Get the value of a column in the current row as a java.sql.Timestamp object
Parameters:
  columnIndex - the first column is 1, the second is 2... the column value; null if SQL NULL
exception:
  java.sql.SQLException - if a database access error occurs



getTimestamp
public java.sql.Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException(Code)
Get the value of a column in the current row as a java.sql.Timestamp object. Use the calendar to construct an appropriate millisecond value for the Timestamp, if the underlying database doesn't 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 Timestamp getTimestamp(String columnName) throws java.sql.SQLException(Code)
DOCUMENT ME!
Parameters:
  columnName - DOCUMENT ME! DOCUMENT ME!
throws:
  java.sql.SQLException - DOCUMENT ME!



getTimestamp
public java.sql.Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException(Code)
Get the value of a column in the current row as a java.sql.Timestamp object. Use the calendar to construct an appropriate millisecond value for the Timestamp, if the underlying database doesn't store timezone information.
Parameters:
  columnName - is 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 Return the type of this result set. The type is determined based on the statement that created the result set. TYPE_FORWARD_ONLY, TYPE_SCROLL_INSENSITIVE, orTYPE_SCROLL_SENSITIVE
exception:
  SQLException - if a database-access error occurs



getURL
public URL getURL(int colIndex) throws SQLException(Code)

See Also:   ResultSetInternalMethods.getURL(int)



getURL
public URL getURL(String colName) throws SQLException(Code)

See Also:   ResultSetInternalMethods.getURL(String)



getUnicodeStream
public InputStream getUnicodeStream(int columnIndex) throws SQLException(Code)
A column value can also be retrieved as a stream of Unicode characters. We implement this as a binary stream.
Parameters:
  columnIndex - the first column is 1, the second is 2... a Java InputStream that delivers the database column value as astream of two byte Unicode characters. If the value is SQL NULL,then the result is null
exception:
  SQLException - if a database access error occurs
See Also:   getAsciiStream
See Also:   getBinaryStream



getUnicodeStream
public InputStream getUnicodeStream(String columnName) throws SQLException(Code)
DOCUMENT ME!
Parameters:
  columnName - DOCUMENT ME! DOCUMENT ME!
throws:
  SQLException - DOCUMENT ME!



getUpdateCount
public long getUpdateCount()(Code)



getUpdateID
public long getUpdateID()(Code)



getWarnings
public java.sql.SQLWarning getWarnings() throws SQLException(Code)
The first warning reported by calls on this ResultSet is returned. Subsequent ResultSet warnings will be chained to this java.sql.SQLWarning.

The warning chain is automatically cleared each time a new row is read.

Note: This warning chain only covers warnings caused by ResultSet methods. Any warnings caused by statement methods (such as reading OUT parameters) will be chained on the Statement object.

the first java.sql.SQLWarning or null;
exception:
  SQLException - if a database access error occurs.



initializeFromCachedMetaData
public void initializeFromCachedMetaData(CachedResultSetMetaData cachedMetaData)(Code)



initializeWithMetadata
public void initializeWithMetadata() throws SQLException(Code)



insertRow
public void insertRow() throws SQLException(Code)
JDBC 2.0 Insert 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 onthe insert row, or if all non-nullable columns in theinsert row have not been given a value
throws:
  NotUpdatable - DOCUMENT ME!



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

Determine if the cursor is after the last row in the result set.

true if after the last row, false otherwise. Returns false whenthe result set contains no rows.
exception:
  SQLException - if a database-access error occurs.



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

Determine if the cursor is before the first row in the result set.

true if before the first row, false otherwise. Returns false whenthe result set contains no rows.
exception:
  SQLException - if a database-access error occurs.



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

Determine if the cursor is on the first row of the result set.

true if on the first row, false otherwise.
exception:
  SQLException - if a database-access error occurs.



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

Determine if the cursor is on the last row of the result set. Note: Calling isLast() may be expensive since 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 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 to the last row in the result set.

true if on a valid row, false if no rows in the result set.
exception:
  SQLException - if a database-access error occurs, or result set type isTYPE_FORWARD_ONLY.



moveToCurrentRow
public void moveToCurrentRow() throws SQLException(Code)
JDBC 2.0 Move the cursor to the remembered cursor position, usually the current row. Has no effect unless the cursor is on the insert row.
exception:
  SQLException - if a database-access error occurs, or the result set isnot updatable
throws:
  NotUpdatable - DOCUMENT ME!



moveToInsertRow
public void moveToInsertRow() throws SQLException(Code)
JDBC 2.0 Move 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(). UpdateXXX()must be called before getXXX() on a column.
exception:
  SQLException - if a database-access error occurs, or the result set isnot updatable
throws:
  NotUpdatable - DOCUMENT ME!



next
public boolean next() throws SQLException(Code)
A ResultSet is initially positioned before its first row, the first call to next makes the first row the current row; the second call makes the second row the current row, etc.

If an input stream from the previous row is open, it is implicitly closed. The ResultSet's warning chain is cleared when a new row is read

true if the new current is valid; false if there are no more rows
exception:
  SQLException - if a database access error occurs



populateCachedMetaData
public void populateCachedMetaData(CachedResultSetMetaData cachedMetaData) throws SQLException(Code)



prev
public boolean prev() throws java.sql.SQLException(Code)
The prev method is not part of JDBC, but because of the architecture of this driver it is possible to move both forward and backward within the result set.

If an input stream from the previous row is open, it is implicitly closed. The ResultSet's warning chain is cleared when a new row is read

true if the new current is valid; false if there are no more rows
exception:
  java.sql.SQLException - if a database access error occurs



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

Moves to the previous row in the result set.

Note: previous() is not the same as relative(-1) since it makes sense to call previous() when there is no current row.

true if on a valid row, false if off the result set.
exception:
  SQLException - if a database-access error occurs, or result set type isTYPE_FORWAR_DONLY.



realClose
public void realClose(boolean calledExplicitly) throws SQLException(Code)
Closes this ResultSet and releases resources.
Parameters:
  calledExplicitly - was this called by close()?
throws:
  SQLException - if an error occurs



reallyResult
public boolean reallyResult()(Code)



redefineFieldsForDBMD
public void redefineFieldsForDBMD(Field[] f)(Code)



refreshRow
public void refreshRow() throws SQLException(Code)
JDBC 2.0 Refresh the value of the current row with its current 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 refreshRow() frequently will likely slow performance.
exception:
  SQLException - if a database-access error occurs, or if called when onthe insert row.
throws:
  NotUpdatable - DOCUMENT ME!



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

Moves 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 than calling next() since 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.


Parameters:
  rows - the number of relative rows to move the cursor. true if on a row, false otherwise.
throws:
  SQLException - if a database-access error occurs, or there is no currentrow, or result set type is TYPE_FORWARD_ONLY.



rowDeleted
public boolean rowDeleted() throws SQLException(Code)
JDBC 2.0 Determine if this 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 deleted and deletes are detected
exception:
  SQLException - if a database-access error occurs
throws:
  NotImplemented - DOCUMENT ME!
See Also:   DatabaseMetaData.deletesAreDetected



rowInserted
public boolean rowInserted() throws SQLException(Code)
JDBC 2.0 Determine if the current row has been inserted. The value returned depends on whether or not the result set can detect visible inserts. true if inserted and inserts are detected
exception:
  SQLException - if a database-access error occurs
throws:
  NotImplemented - DOCUMENT ME!
See Also:   DatabaseMetaData.insertsAreDetected



rowUpdated
public boolean rowUpdated() throws SQLException(Code)
JDBC 2.0 Determine if 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 or another,and updates are detected
exception:
  SQLException - if a database-access error occurs
throws:
  NotImplemented - DOCUMENT ME!
See Also:   DatabaseMetaData.updatesAreDetected



setBinaryEncoded
protected void setBinaryEncoded()(Code)
Flag that this result set is 'binary' encoded (from a PreparedStatement), not stored as strings.



setFetchDirection
public void setFetchDirection(int direction) throws SQLException(Code)
JDBC 2.0 Give 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.
Parameters:
  direction - the direction to fetch rows in.
exception:
  SQLException - if a database-access error occurs, or the result set typeis TYPE_FORWARD_ONLY and direction is not FETCH_FORWARD.MM.MySQL actually ignores this, because it has the wholeresult set anyway, so the direction is immaterial.



setFetchSize
public void setFetchSize(int rows) throws SQLException(Code)
JDBC 2.0 Give 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, then 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 creates 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 the condition 0 lteqrows lteq this.getMaxRows() is not satisfied. Currentlyignored by this driver.



setFirstCharOfQuery
public void setFirstCharOfQuery(char c)(Code)
Sets the first character of the query that this result set was created from.
Parameters:
  c - the first character of the query...uppercased



setNextResultSet
protected void setNextResultSet(ResultSetInternalMethods nextResultSet)(Code)
DOCUMENT ME!
Parameters:
  nextResultSet - Sets the next result set in the result set chain for multipleresult sets.



setOwningStatement
public void setOwningStatement(com.mysql.jdbc.StatementImpl owningStatement)(Code)



setResultSetConcurrency
protected void setResultSetConcurrency(int concurrencyFlag)(Code)
Sets the concurrency (JDBC2)
Parameters:
  concurrencyFlag - CONCUR_UPDATABLE or CONCUR_READONLY



setResultSetType
protected void setResultSetType(int typeFlag)(Code)
Sets the result set type for (JDBC2)
Parameters:
  typeFlag - SCROLL_SENSITIVE or SCROLL_INSENSITIVE (we only supportSCROLL_INSENSITIVE)



setServerInfo
protected void setServerInfo(String info)(Code)
Sets server info (if any)
Parameters:
  info - the server info message



setStatementUsedForFetchingRows
public void setStatementUsedForFetchingRows(PreparedStatement stmt)(Code)



setWrapperStatement
public void setWrapperStatement(java.sql.Statement wrapperStatement)(Code)

Parameters:
  wrapperStatement - The wrapperStatement to set.



toString
public String toString()(Code)
DOCUMENT ME! DOCUMENT ME!



updateArray
public void updateArray(int arg0, Array arg1) throws SQLException(Code)

See Also:   ResultSetInternalMethods.updateArray(intArray)



updateArray
public void updateArray(String arg0, Array arg1) throws SQLException(Code)

See Also:   ResultSetInternalMethods.updateArray(StringArray)



updateAsciiStream
public void updateAsciiStream(int columnIndex, java.io.InputStream x, int length) throws SQLException(Code)
JDBC 2.0 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateAsciiStream
public void updateAsciiStream(String columnName, java.io.InputStream x, int length) throws SQLException(Code)
JDBC 2.0 Update 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 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateBigDecimal
public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException(Code)
JDBC 2.0 Update 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 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateBinaryStream
public void updateBinaryStream(String columnName, java.io.InputStream x, int length) throws SQLException(Code)
JDBC 2.0 Update 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



updateBlob
public void updateBlob(int arg0, java.sql.Blob arg1) throws SQLException(Code)

See Also:   ResultSetInternalMethods.updateBlob(intBlob)



updateBlob
public void updateBlob(String arg0, java.sql.Blob arg1) throws SQLException(Code)

See Also:   ResultSetInternalMethods.updateBlob(StringBlob)



updateBoolean
public void updateBoolean(int columnIndex, boolean x) throws SQLException(Code)
JDBC 2.0 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateBoolean
public void updateBoolean(String columnName, boolean x) throws SQLException(Code)
JDBC 2.0 Update 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 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateByte
public void updateByte(String columnName, byte x) throws SQLException(Code)
JDBC 2.0 Update 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 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateBytes
public void updateBytes(String columnName, byte[] x) throws SQLException(Code)
JDBC 2.0 Update 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 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateCharacterStream
public void updateCharacterStream(String columnName, java.io.Reader reader, int length) throws SQLException(Code)
JDBC 2.0 Update 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:
  reader - the stream to update the column with
Parameters:
  length - of the stream
throws:
  SQLException - if a database-access error occurs



updateClob
public void updateClob(int arg0, java.sql.Clob arg1) throws SQLException(Code)

See Also:   ResultSetInternalMethods.updateClob(intClob)



updateClob
public void updateClob(String columnName, java.sql.Clob clob) throws SQLException(Code)

See Also:   ResultSetInternalMethods.updateClob(StringClob)



updateDate
public void updateDate(int columnIndex, java.sql.Date x) throws SQLException(Code)
JDBC 2.0 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateDate
public void updateDate(String columnName, java.sql.Date x) throws SQLException(Code)
JDBC 2.0 Update 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 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateDouble
public void updateDouble(String columnName, double x) throws SQLException(Code)
JDBC 2.0 Update 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 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateFloat
public void updateFloat(String columnName, float x) throws SQLException(Code)
JDBC 2.0 Update 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 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateInt
public void updateInt(String columnName, int x) throws SQLException(Code)
JDBC 2.0 Update 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 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateLong
public void updateLong(String columnName, long x) throws SQLException(Code)
JDBC 2.0 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateNull
public void updateNull(String columnName) throws SQLException(Code)
JDBC 2.0 Update 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) throws SQLException(Code)
JDBC 2.0 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateObject
public void updateObject(int columnIndex, Object x, int scale) throws SQLException(Code)
JDBC 2.0 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateObject
public void updateObject(String columnName, Object x) throws SQLException(Code)
JDBC 2.0 Update 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



updateObject
public void updateObject(String columnName, Object x, int scale) throws SQLException(Code)
JDBC 2.0 Update 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



updateRef
public void updateRef(int arg0, Ref arg1) throws SQLException(Code)

See Also:   ResultSetInternalMethods.updateRef(intRef)



updateRef
public void updateRef(String arg0, Ref arg1) throws SQLException(Code)

See Also:   ResultSetInternalMethods.updateRef(StringRef)



updateRow
public void updateRow() throws SQLException(Code)
JDBC 2.0 Update 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 onthe insert row
throws:
  NotUpdatable - DOCUMENT ME!



updateShort
public void updateShort(int columnIndex, short x) throws SQLException(Code)
JDBC 2.0 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateShort
public void updateShort(String columnName, short x) throws SQLException(Code)
JDBC 2.0 Update 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 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateString
public void updateString(String columnName, String x) throws SQLException(Code)
JDBC 2.0 Update 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 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateTime
public void updateTime(String columnName, java.sql.Time x) throws SQLException(Code)
JDBC 2.0 Update 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 Update 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
throws:
  NotUpdatable - DOCUMENT ME!



updateTimestamp
public void updateTimestamp(String columnName, java.sql.Timestamp x) throws SQLException(Code)
JDBC 2.0 Update 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)
A column may have the value of SQL NULL; wasNull() reports whether the last column read had this special value. Note that you must first call getXXX on a column to try to read its value and then call wasNull() to find if the value was SQL NULL true if the last column read was SQL NULL
exception:
  SQLException - if a database access error occurred



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.