Java Doc for ResultSet_base.java in  » Database-JDBC-Connection-Pool » octopus » com » internetcds » jdbc » tds » 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 » octopus » com.internetcds.jdbc.tds 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.internetcds.jdbc.tds.ResultSet_base

All known Subclasses:   com.internetcds.jdbc.tds.ResultSet_2_0,
ResultSet_base
public class ResultSet_base (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 insensitive. 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 guarantee 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 ResulSetMetaData object returned by the getMetaData method.
author:
   Craig Spannring
author:
   The FreeTDS project
version:
   $Id: ResultSet_base.java,v 1.2 2007-10-19 13:21:40 sinisa Exp $
See Also:   Statement.executeQuery
See Also:   Statement.getResultSet
See Also:   ResultSetMetaData
See Also:   Tds.getRow



Field Summary
 ColumnscolumnsInfo
    
 PacketRowResultcurrentRow
    
final public static  StringcvsVersion
    
 booleanhitEndOfData
    
 booleanisClosed
    
 booleanlastGetWasNull
    
 ResultSetMetaDatametaData
    
 Statementstmt
    
 Tdstds
    

Constructor Summary
public  ResultSet_base(Tds tds_, Statement stmt_, Columns columns_)
    

Method Summary
protected  voidNotImplemented()
    
public  voidclearWarnings()
     After this call getWarnings returns null until a new warning is reported for this ResultSet.
public  voidclose()
     In some cases, it is desirable to immediately release a ResultSet's 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 that generated it when that Statement is closed, re-executed, or is used to retrieve the next result from a sequence of multiple results.

public  intfindColumn(String columnName)
     Map a Resultset column name to a ResultSet column index.
public  java.io.InputStreamgetAsciiStream(int columnIndex)
     A column value can be retrieved as a stream of ASCII characters and then read in chunks from the stream.
public  java.io.InputStreamgetAsciiStream(String columnName)
     A column value can be retrieved as a stream of ASCII characters and then read in chunks from the stream.
public  BigDecimalgetBigDecimal(int columnIndex, int scale)
     Get the value of a column in the current row as a java.lang.BigDecimal object.
public  BigDecimalgetBigDecimal(String columnName, int scale)
     Get the value of a column in the current row as a java.lang.BigDecimal object.
public  java.io.InputStreamgetBinaryStream(int columnIndex)
     A column value can be retrieved as a stream of uninterpreted bytes and then read in chunks from the stream.
public  java.io.InputStreamgetBinaryStream(String columnName)
     A column value can be retrieved as a stream of uninterpreted bytes and then read in chunks from the stream.
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)
     Get the value of a column in the current row as a Java boolean.
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)
     Get the value of a column in the current row as a Java byte.
public  byte[]getBytes(int columnIndex)
     Get the value of a column in the current row as a Java byte array. The bytes represent the raw values returned by the driver.
Parameters:
  columnIndex - the first column is 1, the second is 2, ...
public  byte[]getBytes(String columnName)
     Get the value of a column in the current row as a Java byte array.
public  StringgetCursorName()
     Get the name of the SQL cursor used by this ResultSet.

In SQL, a result table is retrieved through 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(String columnName)
     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)
     Get the value of a column in the current row as a Java double.
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)
     Get the value of a column in the current row as a Java float.
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)
     Get the value of a column in the current row as a Java int.
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)
     Get the value of a column in the current row as a Java long.
public  java.sql.ResultSetMetaDatagetMetaData()
     The number, types and properties of a ResultSet's columns are provided by the getMetaData method.
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.

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  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)
     Get the value of a column in the current row as a Java short.
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)
     Get the value of a column in the current row as a Java String.
public  java.sql.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(String columnName)
     Get the value of a column in the current row as a java.sql.Time object.
public  java.sql.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(String columnName)
     Get the value of a column in the current row as a java.sql.Timestamp object.
public  java.io.InputStreamgetUnicodeStream(int columnIndex)
     A column value can be retrieved as a stream of Unicode characters and then read in chunks from the stream.
public  java.io.InputStreamgetUnicodeStream(String columnName)
     A column value can be retrieved as a stream of Unicode characters and then read in chunks from the stream.
public  SQLWarninggetWarnings()
    

The first warning reported by calls on this ResultSet is returned.

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  booleanwasNull()
     A column may have the value of SQL NULL; wasNull reports whether the last column read had this special value.

Field Detail
columnsInfo
Columns columnsInfo(Code)



currentRow
PacketRowResult currentRow(Code)



cvsVersion
final public static String cvsVersion(Code)



hitEndOfData
boolean hitEndOfData(Code)



isClosed
boolean isClosed(Code)



lastGetWasNull
boolean lastGetWasNull(Code)



metaData
ResultSetMetaData metaData(Code)



stmt
Statement stmt(Code)



tds
Tds tds(Code)




Constructor Detail
ResultSet_base
public ResultSet_base(Tds tds_, Statement stmt_, Columns columns_)(Code)




Method Detail
NotImplemented
protected void NotImplemented() throws java.sql.SQLException(Code)



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's 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 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.




findColumn
public 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.



getAsciiStream
public java.io.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 particularly 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 input stream that delivers the database column valueas a stream of one byte ASCII characters. If the value is SQL NULLthen the result is null.
exception:
  SQLException - if a database-access error occurs.




getAsciiStream
public java.io.InputStream getAsciiStream(String columnName) 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 particularly 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.
Parameters:
  columnName - is the SQL name of the column a Java input stream that delivers the database column valueas a stream of one byte ASCII characters. If the value is SQL NULLthen the result 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.lang.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, the result is null
exception:
  SQLException - if a database-access error occurs.



getBigDecimal
public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException(Code)
Get the value of a column in the current row as a java.lang.BigDecimal object.
Parameters:
  columnName - is the SQL name of the column
Parameters:
  scale - the number of digits to the right of the decimal the column value; if the value is SQL NULL, the result is null
exception:
  SQLException - if a database-access error occurs.



getBinaryStream
public java.io.InputStream getBinaryStream(int columnIndex) throws SQLException(Code)
A column value can be retrieved as a stream of uninterpreted bytes and then read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARBINARY values.

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 input stream that delivers the database column valueas a stream of uninterpreted bytes. If the value is SQL NULLthen the result is null.
exception:
  SQLException - if a database-access error occurs.




getBinaryStream
public java.io.InputStream getBinaryStream(String columnName) throws SQLException(Code)
A column value can be retrieved as a stream of uninterpreted bytes and then read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARBINARY values.

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.
Parameters:
  columnName - is the SQL name of the column a Java input stream that delivers the database column valueas a stream of uninterpreted bytes. If the value is SQL NULLthen the result is null.
exception:
  SQLException - if a database-access 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; if the value is SQL NULL, the result is false
exception:
  SQLException - if a database-access error occurs.



getBoolean
public boolean getBoolean(String columnName) throws SQLException(Code)
Get the value of a column in the current row as a Java boolean.
Parameters:
  columnName - is the SQL name of the column the column value; if the value is SQL NULL, the result is false
exception:
  SQLException - if a database-access error occurs.



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; if the value is SQL NULL, the result is 0
exception:
  SQLException - if a database-access error occurs.



getByte
public byte getByte(String columnName) throws SQLException(Code)
Get the value of a column in the current row as a Java byte.
Parameters:
  columnName - is the SQL name of the column the column value; if the value is SQL NULL, the result is 0
exception:
  SQLException - if a database-access error occurs.



getBytes
public byte[] getBytes(int columnIndex) throws SQLException(Code)
Get the value of a column in the current row as a Java byte array. The bytes represent the raw values returned by the driver.
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
public byte[] getBytes(String columnName) throws SQLException(Code)
Get the value of a column in the current row as a Java byte array. The bytes represent the raw values returned by the driver.
Parameters:
  columnName - is the SQL name of the column the column value; if the value is SQL NULL, the result is null
exception:
  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 through 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 ResultSet 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 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; 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 SQLException(Code)
Get the value of a column in the current row as a java.sql.Date object.
Parameters:
  columnName - is the SQL name of the column 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; if the value is SQL NULL, the result is 0
exception:
  SQLException - if a database-access error occurs.



getDouble
public double getDouble(String columnName) throws SQLException(Code)
Get the value of a column in the current row as a Java double.
Parameters:
  columnName - is the SQL name of the column the column value; if the value is SQL NULL, the result is 0
exception:
  SQLException - if a database-access error occurs.



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; if the value is SQL NULL, the result is 0
exception:
  SQLException - if a database-access error occurs.



getFloat
public float getFloat(String columnName) throws SQLException(Code)
Get the value of a column in the current row as a Java float.
Parameters:
  columnName - is the SQL name of the column the column value; if the value is SQL NULL, the result is 0
exception:
  SQLException - if a database-access error occurs.



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; if the value is SQL NULL, the result is 0
exception:
  SQLException - if a database-access error occurs.



getInt
public int getInt(String columnName) throws SQLException(Code)
Get the value of a column in the current row as a Java int.
Parameters:
  columnName - is the SQL name of the column the column value; if the value is SQL NULL, the result is 0
exception:
  SQLException - if a database-access error occurs.



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; if the value is SQL NULL, the result is 0
exception:
  SQLException - if a database-access error occurs.



getLong
public long getLong(String columnName) throws SQLException(Code)
Get the value of a column in the current row as a Java long.
Parameters:
  columnName - is the SQL name of the column the column value; if the value is SQL NULL, the result is 0
exception:
  SQLException - if a database-access error occurs.



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



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 spec.

This method may also be used to read datatabase specific abstract data types. JDBC 2.0 In the JDBC 2.0 API, the behavior of method getObject is extended to materialize data of SQL user-defined types. When the a column contains a structured or distinct value, the behavior of this method is as if it were a call to: getObject(columnIndex, this.getStatement().getConnection().getTypeMap()).
Parameters:
  columnIndex - the first column is 1, the second is 2, ... A java.lang.Object holding the column value.
exception:
  SQLException - if a database-access error occurs.




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 spec. JDBC 2.0 In the JDBC 2.0 API, the behavior of method getObject is extended to materialize data of SQL user-defined types. When the a column contains a structured or distinct value, the behavior of this method is as if it were a call to: getObject(columnIndex, this.getStatement().getConnection().getTypeMap()).

This method may also be used to read datatabase specific abstract data types.
Parameters:
  columnName - is the SQL name of the column A java.lang.Object holding the column value.
exception:
  SQLException - if a database-access error occurs.




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; if the value is SQL NULL, the result is 0
exception:
  SQLException - if a database-access error occurs.



getShort
public short getShort(String columnName) throws SQLException(Code)
Get the value of a column in the current row as a Java short.
Parameters:
  columnName - is the SQL name of the column the column value; if the value is SQL NULL, the result is 0
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; if the value is SQL NULL, the result is null
exception:
  SQLException - if a database-access error occurs.



getString
public String getString(String columnName) throws SQLException(Code)
Get the value of a column in the current row as a Java String.
Parameters:
  columnName - is the SQL name of the column the column value; if the value is SQL NULL, the result is null
exception:
  SQLException - if a database-access error occurs.



getTime
public java.sql.Time getTime(int columnIndex) throws 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; if the value is SQL NULL, the result is null
exception:
  SQLException - if a database-access error occurs.



getTime
public java.sql.Time getTime(String columnName) throws 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
exception:
  SQLException - if a database-access error occurs.



getTimestamp
public java.sql.Timestamp getTimestamp(int columnIndex) throws 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; if the value is SQL NULL, the result is null
exception:
  SQLException - if a database-access error occurs.



getTimestamp
public java.sql.Timestamp getTimestamp(String columnName) throws SQLException(Code)
Get the value of a column in the current row as a java.sql.Timestamp object.
Parameters:
  columnName - is the SQL name of the column the column value; if the value is SQL NULL, the result is null
exception:
  SQLException - if a database-access error occurs.



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

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 input stream that delivers the database column valueas a stream of two byte Unicode characters. If the value is SQL NULLthen the result is null.
exception:
  SQLException - if a database-access error occurs.




getUnicodeStream
public java.io.InputStream getUnicodeStream(String columnName) throws SQLException(Code)
A column value can be retrieved as a stream of Unicode characters and then read in chunks from the stream. This method is particularly suitable for retrieving large LONGVARCHAR values. The JDBC driver will do any necessary conversion from the database format into Unicode.

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.
Parameters:
  columnName - is the SQL name of the column a Java input stream that delivers the database column valueas a stream of two byte Unicode characters. If the value is SQL NULLthen the result is null.
exception:
  SQLException - if a database-access error occurs.




getWarnings
public SQLWarning getWarnings() throws SQLException(Code)

The first warning reported by calls on this ResultSet is returned. Subsequent ResultSet warnings will be chained to this 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 warning caused by statement methods (such as reading OUT parameters) will be chained on the Statement object. the first SQLWarning or null
exception:
  SQLException - if a database-access error occurs.




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 row is valid; false if thereare no more rows
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 the SQL NULL. true if last column read was SQL NULL
exception:
  SQLException - if a database-access error occurs.



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.