Java Doc for ResultSetRow.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.ResultSetRow

ResultSetRow
abstract public class ResultSetRow (Code)
Classes that implement this interface represent one row of data from the MySQL server that might be stored in different ways depending on whether the result set was streaming (so they wrap a reusable packet), or whether the result set was cached or via a server-side cursor (so they represent a byte[][]). Notice that no bounds checking is expected for implementors of this interface, it happens in ResultSetImpl.
version:
   $Id: $


Field Summary
protected  Field[]metadata
     The metadata of the fields of this result set.


Method Summary
abstract public  voidcloseOpenStreams()
     Called during navigation to next row to close all open streams.
abstract public  InputStreamgetBinaryInputStream(int columnIndex)
     Returns data at the given index as an InputStream with no character conversion.
Parameters:
  columnIndex - of the column value (starting at 0) to return.
abstract public  byte[]getColumnValue(int index)
     Returns the value at the given column (index starts at 0) "raw" (i.e. as-returned by the server).
Parameters:
  index - of the column value (starting at 0) to return.
final protected  java.sql.DategetDateFast(int columnIndex, byte[] dateAsBytes, int offset, int length, ConnectionImpl conn, ResultSetImpl rs)
    
abstract public  java.sql.DategetDateFast(int columnIndex, ConnectionImpl conn, ResultSetImpl rs)
    
abstract public  intgetInt(int columnIndex)
     Returns the value at the given column (index starts at 0) as an int.
abstract public  longgetLong(int columnIndex)
     Returns the value at the given column (index starts at 0) as a long.
protected  java.sql.DategetNativeDate(int columnIndex, byte[] bits, int offset, int length, ConnectionImpl conn, ResultSetImpl rs)
    
abstract public  DategetNativeDate(int columnIndex, ConnectionImpl conn, ResultSetImpl rs)
    
protected  ObjectgetNativeDateTimeValue(int columnIndex, byte[] bits, int offset, int length, Calendar targetCalendar, int jdbcType, int mysqlType, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs)
    
abstract public  ObjectgetNativeDateTimeValue(int columnIndex, Calendar targetCalendar, int jdbcType, int mysqlType, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs)
    
protected  doublegetNativeDouble(byte[] bits, int offset)
    
abstract public  doublegetNativeDouble(int columnIndex)
    
protected  floatgetNativeFloat(byte[] bits, int offset)
    
abstract public  floatgetNativeFloat(int columnIndex)
    
protected  intgetNativeInt(byte[] bits, int offset)
    
abstract public  intgetNativeInt(int columnIndex)
    
protected  longgetNativeLong(byte[] bits, int offset)
    
abstract public  longgetNativeLong(int columnIndex)
    
protected  shortgetNativeShort(byte[] bits, int offset)
    
abstract public  shortgetNativeShort(int columnIndex)
    
protected  TimegetNativeTime(int columnIndex, byte[] bits, int offset, int length, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs)
    
abstract public  TimegetNativeTime(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs)
    
protected  TimestampgetNativeTimestamp(byte[] bits, int offset, int length, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs)
    
abstract public  TimestampgetNativeTimestamp(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs)
    
abstract public  ReadergetReader(int columnIndex)
    
abstract public  StringgetString(int index, String encoding, ConnectionImpl conn)
     Returns the value at the given column (index starts at 0) as a java.lang.String with the requested encoding, using the given ConnectionImpl to find character converters.
protected  StringgetString(String encoding, ConnectionImpl conn, byte[] value, int offset, int length)
     Convenience method for turning a byte[] into a string with the given encoding.
protected  TimegetTimeFast(int columnIndex, byte[] timeAsBytes, int offset, int length, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs)
    
abstract public  TimegetTimeFast(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs)
    
protected  TimestampgetTimestampFast(int columnIndex, byte[] timestampAsBytes, int offset, int length, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs)
    
abstract public  TimestampgetTimestampFast(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs)
    
abstract public  booleanisFloatingPointNumber(int index)
     Could the column value at the given index (which starts at 0) be interpreted as a floating-point number (has +/-/E/e in it)?
Parameters:
  index - of the column value (starting at 0) to check.
abstract public  booleanisNull(int index)
     Is the column value at the given index (which starts at 0) NULL?
Parameters:
  index - of the column value (starting at 0) to check.
abstract public  longlength(int index)
     Returns the length of the column at the given index (which starts at 0).
Parameters:
  index - of the column value (starting at 0) for which to return thelength.
abstract public  voidsetColumnValue(int index, byte[] value)
     Sets the given column value (only works currently with ByteArrayRowHolder).
public  voidsetMetadata(Field[] f)
    

Field Detail
metadata
protected Field[] metadata(Code)
The metadata of the fields of this result set.





Method Detail
closeOpenStreams
abstract public void closeOpenStreams()(Code)
Called during navigation to next row to close all open streams.



getBinaryInputStream
abstract public InputStream getBinaryInputStream(int columnIndex) throws SQLException(Code)
Returns data at the given index as an InputStream with no character conversion.
Parameters:
  columnIndex - of the column value (starting at 0) to return. the value at the given index as an InputStream or nullif null.
throws:
  SQLException - if an error occurs while retrieving the value.



getColumnValue
abstract public byte[] getColumnValue(int index) throws SQLException(Code)
Returns the value at the given column (index starts at 0) "raw" (i.e. as-returned by the server).
Parameters:
  index - of the column value (starting at 0) to return. the value for the given column (including NULL if it is)
throws:
  SQLException - if an error occurs while retrieving the value.



getDateFast
final protected java.sql.Date getDateFast(int columnIndex, byte[] dateAsBytes, int offset, int length, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code)



getDateFast
abstract public java.sql.Date getDateFast(int columnIndex, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code)



getInt
abstract public int getInt(int columnIndex) throws SQLException(Code)
Returns the value at the given column (index starts at 0) as an int. *
Parameters:
  index - of the column value (starting at 0) to return. the value for the given column (returns 0 if NULL, use isNull()to determine if the value was actually NULL)
throws:
  SQLException - if an error occurs while retrieving the value.



getLong
abstract public long getLong(int columnIndex) throws SQLException(Code)
Returns the value at the given column (index starts at 0) as a long. *
Parameters:
  index - of the column value (starting at 0) to return. the value for the given column (returns 0 if NULL, use isNull()to determine if the value was actually NULL)
throws:
  SQLException - if an error occurs while retrieving the value.



getNativeDate
protected java.sql.Date getNativeDate(int columnIndex, byte[] bits, int offset, int length, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code)



getNativeDate
abstract public Date getNativeDate(int columnIndex, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code)



getNativeDateTimeValue
protected Object getNativeDateTimeValue(int columnIndex, byte[] bits, int offset, int length, Calendar targetCalendar, int jdbcType, int mysqlType, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code)



getNativeDateTimeValue
abstract public Object getNativeDateTimeValue(int columnIndex, Calendar targetCalendar, int jdbcType, int mysqlType, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code)



getNativeDouble
protected double getNativeDouble(byte[] bits, int offset)(Code)



getNativeDouble
abstract public double getNativeDouble(int columnIndex) throws SQLException(Code)



getNativeFloat
protected float getNativeFloat(byte[] bits, int offset)(Code)



getNativeFloat
abstract public float getNativeFloat(int columnIndex) throws SQLException(Code)



getNativeInt
protected int getNativeInt(byte[] bits, int offset)(Code)



getNativeInt
abstract public int getNativeInt(int columnIndex) throws SQLException(Code)



getNativeLong
protected long getNativeLong(byte[] bits, int offset)(Code)



getNativeLong
abstract public long getNativeLong(int columnIndex) throws SQLException(Code)



getNativeShort
protected short getNativeShort(byte[] bits, int offset)(Code)



getNativeShort
abstract public short getNativeShort(int columnIndex) throws SQLException(Code)



getNativeTime
protected Time getNativeTime(int columnIndex, byte[] bits, int offset, int length, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code)



getNativeTime
abstract public Time getNativeTime(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code)



getNativeTimestamp
protected Timestamp getNativeTimestamp(byte[] bits, int offset, int length, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code)



getNativeTimestamp
abstract public Timestamp getNativeTimestamp(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code)



getReader
abstract public Reader getReader(int columnIndex) throws SQLException(Code)



getString
abstract public String getString(int index, String encoding, ConnectionImpl conn) throws SQLException(Code)
Returns the value at the given column (index starts at 0) as a java.lang.String with the requested encoding, using the given ConnectionImpl to find character converters.
Parameters:
  index - of the column value (starting at 0) to return.
Parameters:
  encoding - the Java name for the character encoding
Parameters:
  conn - the connection that created this result set row the value for the given column (including NULL if it is) as aString
throws:
  SQLException - if an error occurs while retrieving the value.



getString
protected String getString(String encoding, ConnectionImpl conn, byte[] value, int offset, int length) throws SQLException(Code)
Convenience method for turning a byte[] into a string with the given encoding.
Parameters:
  encoding - the Java encoding name for the byte[] -> char conversion
Parameters:
  conn - the ConnectionImpl that created the result set
Parameters:
  value - the String value as a series of bytes, encoded using"encoding"
Parameters:
  offset - where to start the decoding
Parameters:
  length - how many bytes to decode the String as decoded from bytes with the given encoding
throws:
  SQLException - if an error occurs



getTimeFast
protected Time getTimeFast(int columnIndex, byte[] timeAsBytes, int offset, int length, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code)



getTimeFast
abstract public Time getTimeFast(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code)



getTimestampFast
protected Timestamp getTimestampFast(int columnIndex, byte[] timestampAsBytes, int offset, int length, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code)



getTimestampFast
abstract public Timestamp getTimestampFast(int columnIndex, Calendar targetCalendar, TimeZone tz, boolean rollForward, ConnectionImpl conn, ResultSetImpl rs) throws SQLException(Code)



isFloatingPointNumber
abstract public boolean isFloatingPointNumber(int index) throws SQLException(Code)
Could the column value at the given index (which starts at 0) be interpreted as a floating-point number (has +/-/E/e in it)?
Parameters:
  index - of the column value (starting at 0) to check. true if the column value at the given index looks like it mightbe a floating-point number, false if not.
throws:
  SQLException - if an error occurs



isNull
abstract public boolean isNull(int index) throws SQLException(Code)
Is the column value at the given index (which starts at 0) NULL?
Parameters:
  index - of the column value (starting at 0) to check. true if the column value is NULL, false if not.
throws:
  SQLException - if an error occurs



length
abstract public long length(int index) throws SQLException(Code)
Returns the length of the column at the given index (which starts at 0).
Parameters:
  index - of the column value (starting at 0) for which to return thelength. the length of the requested column, 0 if null (clients of thisinterface should use isNull() beforehand to determine status ofNULL values in the column).
throws:
  SQLException -



setColumnValue
abstract public void setColumnValue(int index, byte[] value) throws SQLException(Code)
Sets the given column value (only works currently with ByteArrayRowHolder).
Parameters:
  index - index of the column value (starting at 0) to set.
Parameters:
  value - the (raw) value to set
throws:
  SQLException - if an error occurs, or the concrete RowHolder doesn't supportthis operation.



setMetadata
public void setMetadata(Field[] f) throws SQLException(Code)



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.