Java Doc for TestResultSet.java in  » Library » Apache-commons-beanutils-1.8.0-BETA-src » org » apache » commons » beanutils » 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 » Library » Apache commons beanutils 1.8.0 BETA src » org.apache.commons.beanutils 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.commons.beanutils.TestResultSet

TestResultSet
public class TestResultSet implements InvocationHandler(Code)

Mock object that implements enough of java.sql.ResultSet to exercise the ResultSetDyaClass functionality.


author:
   Craig R. McClanahan
version:
   $Revision: 556233 $ $Date: 2007-07-14 07:37:06 +0100 (Sat, 14 Jul 2007) $


Field Summary
protected  ResultSetMetaDataresultSetMetaData
     Meta data for the result set.
protected  introw
     Current row number (0 means "before the first one").
protected  longtimestamp
     The constant (per run) value used to initialize date/time/timestamp.

Constructor Summary
public  TestResultSet()
     Create a proxy ResultSet.
public  TestResultSet(ResultSetMetaData resultSetMetaData)
     Create a proxy ResultSet with the specified meta data.

Method Summary
public  booleanabsolute(int row)
    
public  voidafterLast()
    
public  voidbeforeFirst()
    
public  voidcancelRowUpdates()
    
public  voidclearWarnings()
    
public  voidclose()
    
public static  ResultSetcreateProxy()
     Factory method for creating ResultSet proxies.
public static  ResultSetcreateProxy(InvocationHandler invocationHandler)
     Factory method for creating ResultSet proxies.
public  voiddeleteRow()
    
public  intfindColumn(String columnName)
    
public  booleanfirst()
    
public  ArraygetArray(int columnIndex)
    
public  ArraygetArray(String columnName)
    
public  InputStreamgetAsciiStream(int columnIndex)
    
public  InputStreamgetAsciiStream(String columnName)
    
public  BigDecimalgetBigDecimal(int columnIndex)
    
public  BigDecimalgetBigDecimal(int columnIndex, int scale)
    
public  BigDecimalgetBigDecimal(String columnName)
    
public  BigDecimalgetBigDecimal(String columnName, int scale)
    
public  InputStreamgetBinaryStream(int columnIndex)
    
public  InputStreamgetBinaryStream(String columnName)
    
public  BlobgetBlob(int columnIndex)
    
public  BlobgetBlob(String columnName)
    
public  booleangetBoolean(int columnIndex)
    
public  booleangetBoolean(String columnName)
    
public  bytegetByte(int columnIndex)
    
public  bytegetByte(String columnName)
    
public  byte[]getBytes(int columnIndex)
    
public  byte[]getBytes(String columnName)
    
public  ReadergetCharacterStream(int columnIndex)
    
public  ReadergetCharacterStream(String columnName)
    
public  ClobgetClob(int columnIndex)
    
public  ClobgetClob(String columnName)
    
public  intgetConcurrency()
    
public  StringgetCursorName()
    
public  DategetDate(String columnName)
    
public  DategetDate(int columnIndex)
    
public  DategetDate(int columnIndex, Calendar cal)
    
public  DategetDate(String columnName, Calendar cal)
    
public  doublegetDouble(int columnIndex)
    
public  doublegetDouble(String columnName)
    
public  intgetFetchDirection()
    
public  intgetFetchSize()
    
public  floatgetFloat(int columnIndex)
    
public  floatgetFloat(String columnName)
    
public  intgetInt(int columnIndex)
    
public  intgetInt(String columnName)
    
public  longgetLong(int columnIndex)
    
public  longgetLong(String columnName)
    
public  ResultSetMetaDatagetMetaData()
    
public  ObjectgetObject(String columnName)
    
public  ObjectgetObject(int columnIndex)
    
public  ObjectgetObject(int columnIndex, Map map)
    
public  ObjectgetObject(String columnName, Map map)
    
public  RefgetRef(int columnIndex)
    
public  RefgetRef(String columnName)
    
public  intgetRow()
    
public  shortgetShort(int columnIndex)
    
public  shortgetShort(String columnName)
    
public  StatementgetStatement()
    
public  StringgetString(int columnIndex)
    
public  StringgetString(String columnName)
    
public  TimegetTime(String columnName)
    
public  TimegetTime(int columnIndex)
    
public  TimegetTime(int columnIndex, Calendar cal)
    
public  TimegetTime(String columnName, Calendar cal)
    
public  TimestampgetTimestamp(String columnName)
    
public  TimestampgetTimestamp(int columnIndex)
    
public  TimestampgetTimestamp(int columnIndex, Calendar cal)
    
public  TimestampgetTimestamp(String columnName, Calendar cal)
    
public  intgetType()
    
public  URLgetURL(int columnIndex)
    
public  URLgetURL(String columnName)
    
public  InputStreamgetUnicodeStream(int columnIndex)
    
public  InputStreamgetUnicodeStream(String columnName)
    
public  SQLWarninggetWarnings()
    
public  voidinsertRow()
    
public  Objectinvoke(Object proxy, Method method, Object[] args)
     Handles method invocation on the ResultSet proxy.
public  booleanisAfterLast()
    
public  booleanisBeforeFirst()
    
public  booleanisFirst()
    
public  booleanisLast()
    
public  booleanlast()
    
public  voidmoveToCurrentRow()
    
public  voidmoveToInsertRow()
    
public  booleannext()
    
public  booleanprevious()
    
public  voidrefreshRow()
    
public  booleanrelative(int rows)
    
public  booleanrowDeleted()
    
public  booleanrowInserted()
    
public  booleanrowUpdated()
    
public  voidsetFetchDirection(int direction)
    
public  voidsetFetchSize(int size)
    
public  voidupdateArray(int columnPosition, Array x)
    
public  voidupdateArray(String columnName, Array x)
    
public  voidupdateAsciiStream(int columnPosition, InputStream x, int len)
    
public  voidupdateAsciiStream(String columnName, InputStream x, int len)
    
public  voidupdateBigDecimal(int columnPosition, BigDecimal x)
    
public  voidupdateBigDecimal(String columnName, BigDecimal x)
    
public  voidupdateBinaryStream(int columnPosition, InputStream x, int len)
    
public  voidupdateBinaryStream(String columnName, InputStream x, int len)
    
public  voidupdateBlob(int columnPosition, Blob x)
    
public  voidupdateBlob(String columnName, Blob x)
    
public  voidupdateBoolean(int columnPosition, boolean x)
    
public  voidupdateBoolean(String columnName, boolean x)
    
public  voidupdateByte(int columnPosition, byte x)
    
public  voidupdateByte(String columnName, byte x)
    
public  voidupdateBytes(int columnPosition, byte x)
    
public  voidupdateBytes(String columnName, byte x)
    
public  voidupdateCharacterStream(int columnPosition, Reader x, int len)
    
public  voidupdateCharacterStream(String columnName, Reader x, int len)
    
public  voidupdateClob(int columnPosition, Clob x)
    
public  voidupdateClob(String columnName, Clob x)
    
public  voidupdateDate(int columnPosition, Date x)
    
public  voidupdateDate(String columnName, Date x)
    
public  voidupdateDouble(int columnPosition, double x)
    
public  voidupdateDouble(String columnName, double x)
    
public  voidupdateFloat(int columnPosition, float x)
    
public  voidupdateFloat(String columnName, float x)
    
public  voidupdateInt(int columnPosition, int x)
    
public  voidupdateInt(String columnName, int x)
    
public  voidupdateLong(int columnPosition, long x)
    
public  voidupdateLong(String columnName, long x)
    
public  voidupdateNull(int columnPosition)
    
public  voidupdateNull(String columnName)
    
public  voidupdateObject(String columnName, Object x)
    
public  voidupdateObject(int columnPosition, Object x)
    
public  voidupdateObject(int columnPosition, Object x, int scale)
    
public  voidupdateObject(String columnName, Object x, int scale)
    
public  voidupdateRef(int columnPosition, Ref x)
    
public  voidupdateRef(String columnName, Ref x)
    
public  voidupdateRow()
    
public  voidupdateShort(int columnPosition, short x)
    
public  voidupdateShort(String columnName, short x)
    
public  voidupdateString(int columnPosition, String x)
    
public  voidupdateString(String columnName, String x)
    
public  voidupdateTime(int columnPosition, Time x)
    
public  voidupdateTime(String columnName, Time x)
    
public  voidupdateTimestamp(int columnPosition, Timestamp x)
    
public  voidupdateTimestamp(String columnName, Timestamp x)
    
public  booleanwasNull()
    

Field Detail
resultSetMetaData
protected ResultSetMetaData resultSetMetaData(Code)
Meta data for the result set.



row
protected int row(Code)
Current row number (0 means "before the first one").



timestamp
protected long timestamp(Code)
The constant (per run) value used to initialize date/time/timestamp.




Constructor Detail
TestResultSet
public TestResultSet()(Code)
Create a proxy ResultSet.



TestResultSet
public TestResultSet(ResultSetMetaData resultSetMetaData)(Code)
Create a proxy ResultSet with the specified meta data.
Parameters:
  resultSetMetaData - The result set meta data




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



afterLast
public void afterLast() throws SQLException(Code)



beforeFirst
public void beforeFirst() throws SQLException(Code)



cancelRowUpdates
public void cancelRowUpdates() throws SQLException(Code)



clearWarnings
public void clearWarnings() throws SQLException(Code)



close
public void close() throws SQLException(Code)



createProxy
public static ResultSet createProxy()(Code)
Factory method for creating ResultSet proxies. A result set proxy



createProxy
public static ResultSet createProxy(InvocationHandler invocationHandler)(Code)
Factory method for creating ResultSet proxies.
Parameters:
  invocationHandler - Invocation Handler A result set proxy



deleteRow
public void deleteRow() throws SQLException(Code)



findColumn
public int findColumn(String columnName) throws SQLException(Code)



first
public boolean first() throws SQLException(Code)



getArray
public Array getArray(int columnIndex) throws SQLException(Code)



getArray
public Array getArray(String columnName) throws SQLException(Code)



getAsciiStream
public InputStream getAsciiStream(int columnIndex) throws SQLException(Code)



getAsciiStream
public InputStream getAsciiStream(String columnName) throws SQLException(Code)



getBigDecimal
public BigDecimal getBigDecimal(int columnIndex) throws SQLException(Code)



getBigDecimal
public BigDecimal getBigDecimal(int columnIndex, int scale) throws SQLException(Code)



getBigDecimal
public BigDecimal getBigDecimal(String columnName) throws SQLException(Code)



getBigDecimal
public BigDecimal getBigDecimal(String columnName, int scale) throws SQLException(Code)



getBinaryStream
public InputStream getBinaryStream(int columnIndex) throws SQLException(Code)



getBinaryStream
public InputStream getBinaryStream(String columnName) throws SQLException(Code)



getBlob
public Blob getBlob(int columnIndex) throws SQLException(Code)



getBlob
public Blob getBlob(String columnName) throws SQLException(Code)



getBoolean
public boolean getBoolean(int columnIndex) throws SQLException(Code)



getBoolean
public boolean getBoolean(String columnName) throws SQLException(Code)



getByte
public byte getByte(int columnIndex) throws SQLException(Code)



getByte
public byte getByte(String columnName) throws SQLException(Code)



getBytes
public byte[] getBytes(int columnIndex) throws SQLException(Code)



getBytes
public byte[] getBytes(String columnName) throws SQLException(Code)



getCharacterStream
public Reader getCharacterStream(int columnIndex) throws SQLException(Code)



getCharacterStream
public Reader getCharacterStream(String columnName) throws SQLException(Code)



getClob
public Clob getClob(int columnIndex) throws SQLException(Code)



getClob
public Clob getClob(String columnName) throws SQLException(Code)



getConcurrency
public int getConcurrency() throws SQLException(Code)



getCursorName
public String getCursorName() throws SQLException(Code)



getDate
public Date getDate(String columnName) throws SQLException(Code)



getDate
public Date getDate(int columnIndex) throws SQLException(Code)



getDate
public Date getDate(int columnIndex, Calendar cal) throws SQLException(Code)



getDate
public Date getDate(String columnName, Calendar cal) throws SQLException(Code)



getDouble
public double getDouble(int columnIndex) throws SQLException(Code)



getDouble
public double getDouble(String columnName) throws SQLException(Code)



getFetchDirection
public int getFetchDirection() throws SQLException(Code)



getFetchSize
public int getFetchSize() throws SQLException(Code)



getFloat
public float getFloat(int columnIndex) throws SQLException(Code)



getFloat
public float getFloat(String columnName) throws SQLException(Code)



getInt
public int getInt(int columnIndex) throws SQLException(Code)



getInt
public int getInt(String columnName) throws SQLException(Code)



getLong
public long getLong(int columnIndex) throws SQLException(Code)



getLong
public long getLong(String columnName) throws SQLException(Code)



getMetaData
public ResultSetMetaData getMetaData() throws SQLException(Code)



getObject
public Object getObject(String columnName) throws SQLException(Code)



getObject
public Object getObject(int columnIndex) throws SQLException(Code)



getObject
public Object getObject(int columnIndex, Map map) throws SQLException(Code)



getObject
public Object getObject(String columnName, Map map) throws SQLException(Code)



getRef
public Ref getRef(int columnIndex) throws SQLException(Code)



getRef
public Ref getRef(String columnName) throws SQLException(Code)



getRow
public int getRow() throws SQLException(Code)



getShort
public short getShort(int columnIndex) throws SQLException(Code)



getShort
public short getShort(String columnName) throws SQLException(Code)



getStatement
public Statement getStatement() throws SQLException(Code)



getString
public String getString(int columnIndex) throws SQLException(Code)



getString
public String getString(String columnName) throws SQLException(Code)



getTime
public Time getTime(String columnName) throws SQLException(Code)



getTime
public Time getTime(int columnIndex) throws SQLException(Code)



getTime
public Time getTime(int columnIndex, Calendar cal) throws SQLException(Code)



getTime
public Time getTime(String columnName, Calendar cal) throws SQLException(Code)



getTimestamp
public Timestamp getTimestamp(String columnName) throws SQLException(Code)



getTimestamp
public Timestamp getTimestamp(int columnIndex) throws SQLException(Code)



getTimestamp
public Timestamp getTimestamp(int columnIndex, Calendar cal) throws SQLException(Code)



getTimestamp
public Timestamp getTimestamp(String columnName, Calendar cal) throws SQLException(Code)



getType
public int getType() throws SQLException(Code)



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



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



getUnicodeStream
public InputStream getUnicodeStream(int columnIndex) throws SQLException(Code)



getUnicodeStream
public InputStream getUnicodeStream(String columnName) throws SQLException(Code)



getWarnings
public SQLWarning getWarnings() throws SQLException(Code)



insertRow
public void insertRow() throws SQLException(Code)



invoke
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable(Code)
Handles method invocation on the ResultSet proxy.
Parameters:
  proxy - The proxy ResultSet object
Parameters:
  method - the method being invoked
Parameters:
  args - The method arguments The result of invoking the method.
throws:
  Throwable - if an error occurs.



isAfterLast
public boolean isAfterLast() throws SQLException(Code)



isBeforeFirst
public boolean isBeforeFirst() throws SQLException(Code)



isFirst
public boolean isFirst() throws SQLException(Code)



isLast
public boolean isLast() throws SQLException(Code)



last
public boolean last() throws SQLException(Code)



moveToCurrentRow
public void moveToCurrentRow() throws SQLException(Code)



moveToInsertRow
public void moveToInsertRow() throws SQLException(Code)



next
public boolean next() throws SQLException(Code)



previous
public boolean previous() throws SQLException(Code)



refreshRow
public void refreshRow() throws SQLException(Code)



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



rowDeleted
public boolean rowDeleted() throws SQLException(Code)



rowInserted
public boolean rowInserted() throws SQLException(Code)



rowUpdated
public boolean rowUpdated() throws SQLException(Code)



setFetchDirection
public void setFetchDirection(int direction) throws SQLException(Code)



setFetchSize
public void setFetchSize(int size) throws SQLException(Code)



updateArray
public void updateArray(int columnPosition, Array x) throws SQLException(Code)



updateArray
public void updateArray(String columnName, Array x) throws SQLException(Code)



updateAsciiStream
public void updateAsciiStream(int columnPosition, InputStream x, int len) throws SQLException(Code)



updateAsciiStream
public void updateAsciiStream(String columnName, InputStream x, int len) throws SQLException(Code)



updateBigDecimal
public void updateBigDecimal(int columnPosition, BigDecimal x) throws SQLException(Code)



updateBigDecimal
public void updateBigDecimal(String columnName, BigDecimal x) throws SQLException(Code)



updateBinaryStream
public void updateBinaryStream(int columnPosition, InputStream x, int len) throws SQLException(Code)



updateBinaryStream
public void updateBinaryStream(String columnName, InputStream x, int len) throws SQLException(Code)



updateBlob
public void updateBlob(int columnPosition, Blob x) throws SQLException(Code)



updateBlob
public void updateBlob(String columnName, Blob x) throws SQLException(Code)



updateBoolean
public void updateBoolean(int columnPosition, boolean x) throws SQLException(Code)



updateBoolean
public void updateBoolean(String columnName, boolean x) throws SQLException(Code)



updateByte
public void updateByte(int columnPosition, byte x) throws SQLException(Code)



updateByte
public void updateByte(String columnName, byte x) throws SQLException(Code)



updateBytes
public void updateBytes(int columnPosition, byte x) throws SQLException(Code)



updateBytes
public void updateBytes(String columnName, byte x) throws SQLException(Code)



updateCharacterStream
public void updateCharacterStream(int columnPosition, Reader x, int len) throws SQLException(Code)



updateCharacterStream
public void updateCharacterStream(String columnName, Reader x, int len) throws SQLException(Code)



updateClob
public void updateClob(int columnPosition, Clob x) throws SQLException(Code)



updateClob
public void updateClob(String columnName, Clob x) throws SQLException(Code)



updateDate
public void updateDate(int columnPosition, Date x) throws SQLException(Code)



updateDate
public void updateDate(String columnName, Date x) throws SQLException(Code)



updateDouble
public void updateDouble(int columnPosition, double x) throws SQLException(Code)



updateDouble
public void updateDouble(String columnName, double x) throws SQLException(Code)



updateFloat
public void updateFloat(int columnPosition, float x) throws SQLException(Code)



updateFloat
public void updateFloat(String columnName, float x) throws SQLException(Code)



updateInt
public void updateInt(int columnPosition, int x) throws SQLException(Code)



updateInt
public void updateInt(String columnName, int x) throws SQLException(Code)



updateLong
public void updateLong(int columnPosition, long x) throws SQLException(Code)



updateLong
public void updateLong(String columnName, long x) throws SQLException(Code)



updateNull
public void updateNull(int columnPosition) throws SQLException(Code)



updateNull
public void updateNull(String columnName) throws SQLException(Code)



updateObject
public void updateObject(String columnName, Object x) throws SQLException(Code)



updateObject
public void updateObject(int columnPosition, Object x) throws SQLException(Code)



updateObject
public void updateObject(int columnPosition, Object x, int scale) throws SQLException(Code)



updateObject
public void updateObject(String columnName, Object x, int scale) throws SQLException(Code)



updateRef
public void updateRef(int columnPosition, Ref x) throws SQLException(Code)



updateRef
public void updateRef(String columnName, Ref x) throws SQLException(Code)



updateRow
public void updateRow() throws SQLException(Code)



updateShort
public void updateShort(int columnPosition, short x) throws SQLException(Code)



updateShort
public void updateShort(String columnName, short x) throws SQLException(Code)



updateString
public void updateString(int columnPosition, String x) throws SQLException(Code)



updateString
public void updateString(String columnName, String x) throws SQLException(Code)



updateTime
public void updateTime(int columnPosition, Time x) throws SQLException(Code)



updateTime
public void updateTime(String columnName, Time x) throws SQLException(Code)



updateTimestamp
public void updateTimestamp(int columnPosition, Timestamp x) throws SQLException(Code)



updateTimestamp
public void updateTimestamp(String columnName, Timestamp x) throws SQLException(Code)



wasNull
public boolean wasNull() 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.