Java Doc for MockResultSet.java in  » Database-Client » squirrel-sql-2.6.5a » net » sourceforge » squirrel_sql » mo » sql » 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 Client » squirrel sql 2.6.5a » net.sourceforge.squirrel_sql.mo.sql 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   net.sourceforge.squirrel_sql.mo.sql.MockResultSet

MockResultSet
public class MockResultSet implements ResultSet(Code)
A Mock ResultSet object useful for unit tests that require ResultSets.
author:
   manningr


Field Summary
 TableColumnInfo[]_infos
     The TableColumnInfos that describe the columns of the result.
 intcursorIndex
    
 ArrayList<Object[]>rowData
    
 ResultSetMetaDatarsmd
     ResultSetMetaData describing this result.

Constructor Summary
public  MockResultSet()
    
public  MockResultSet(TableColumnInfo[] infos)
    

Method Summary
public  booleanabsolute(int arg0)
    
public  voidaddRow(Object[] values)
     Adds a row of values to the result.
public  voidafterLast()
    
public  voidbeforeFirst()
    
public  voidcancelRowUpdates()
    
public  voidclearWarnings()
    
public  voidclose()
    
public  voiddeleteRow()
    
public  intfindColumn(String arg0)
    
public  booleanfirst()
    
public  ArraygetArray(int arg0)
    
public  ArraygetArray(String arg0)
    
public  InputStreamgetAsciiStream(int arg0)
    
public  InputStreamgetAsciiStream(String arg0)
    
public  BigDecimalgetBigDecimal(int arg0)
    
public  BigDecimalgetBigDecimal(String arg0)
    
public  BigDecimalgetBigDecimal(int arg0, int arg1)
    
public  BigDecimalgetBigDecimal(String arg0, int arg1)
    
public  InputStreamgetBinaryStream(int arg0)
    
public  InputStreamgetBinaryStream(String arg0)
    
public  BlobgetBlob(int arg0)
    
public  BlobgetBlob(String arg0)
    
public  booleangetBoolean(int arg0)
    
public  booleangetBoolean(String arg0)
    
public  bytegetByte(int arg0)
    
public  bytegetByte(String arg0)
    
public  byte[]getBytes(int arg0)
    
public  byte[]getBytes(String arg0)
    
public  ReadergetCharacterStream(int arg0)
    
public  ReadergetCharacterStream(String arg0)
    
public  ClobgetClob(int arg0)
    
public  ClobgetClob(String arg0)
    
public  intgetConcurrency()
    
public  StringgetCursorName()
    
public  DategetDate(int colIdx)
    
public  DategetDate(String arg0)
    
public  DategetDate(int arg0, Calendar arg1)
    
public  DategetDate(String arg0, Calendar arg1)
    
public  doublegetDouble(int arg0)
    
public  doublegetDouble(String arg0)
    
public  intgetFetchDirection()
    
public  intgetFetchSize()
    
public  floatgetFloat(int arg0)
    
public  floatgetFloat(String arg0)
    
public  intgetInt(int arg0)
    
public  intgetInt(String arg0)
    
public  longgetLong(int arg0)
    
public  longgetLong(String arg0)
    
public  ResultSetMetaDatagetMetaData()
    
public  ObjectgetObject(int column)
    
public  ObjectgetObject(String arg0)
    
public  ObjectgetObject(int arg0, Map arg1)
    
public  ObjectgetObject(String arg0, Map arg1)
    
public  RefgetRef(int arg0)
    
public  RefgetRef(String arg0)
    
public  intgetRow()
    
public  shortgetShort(int arg0)
    
public  shortgetShort(String arg0)
    
public  StatementgetStatement()
    
public  StringgetString(int arg0)
    
public  StringgetString(String arg0)
    
public  TimegetTime(int arg0)
    
public  TimegetTime(String arg0)
    
public  TimegetTime(int arg0, Calendar arg1)
    
public  TimegetTime(String arg0, Calendar arg1)
    
public  TimestampgetTimestamp(int column)
    
public  TimestampgetTimestamp(String arg0)
    
public  TimestampgetTimestamp(int arg0, Calendar arg1)
    
public  TimestampgetTimestamp(String arg0, Calendar arg1)
    
public  intgetType()
    
public  URLgetURL(int arg0)
    
public  URLgetURL(String arg0)
    
public  InputStreamgetUnicodeStream(int arg0)
    
public  InputStreamgetUnicodeStream(String arg0)
    
public  SQLWarninggetWarnings()
    
public  voidinsertRow()
    
public  booleanisAfterLast()
    
public  booleanisBeforeFirst()
    
public  booleanisFirst()
    
public  booleanisLast()
    
public  booleanlast()
    
public  voidmoveToCurrentRow()
    
public  voidmoveToInsertRow()
    
public  booleannext()
    
public  booleanprevious()
    
public  voidrefreshRow()
    
public  booleanrelative(int arg0)
    
public  booleanrowDeleted()
    
public  booleanrowInserted()
    
public  booleanrowUpdated()
    
public  voidsetFetchDirection(int arg0)
    
public  voidsetFetchSize(int arg0)
    
public  voidsetMetaData(ResultSetMetaData md)
    
public  voidsetTableColumnInfos(TableColumnInfo[] infos)
    
public  voidupdateArray(int arg0, Array arg1)
    
public  voidupdateArray(String arg0, Array arg1)
    
public  voidupdateAsciiStream(int arg0, InputStream arg1, int arg2)
    
public  voidupdateAsciiStream(String arg0, InputStream arg1, int arg2)
    
public  voidupdateBigDecimal(int arg0, BigDecimal arg1)
    
public  voidupdateBigDecimal(String arg0, BigDecimal arg1)
    
public  voidupdateBinaryStream(int arg0, InputStream arg1, int arg2)
    
public  voidupdateBinaryStream(String arg0, InputStream arg1, int arg2)
    
public  voidupdateBlob(int arg0, Blob arg1)
    
public  voidupdateBlob(String arg0, Blob arg1)
    
public  voidupdateBoolean(int arg0, boolean arg1)
    
public  voidupdateBoolean(String arg0, boolean arg1)
    
public  voidupdateByte(int arg0, byte arg1)
    
public  voidupdateByte(String arg0, byte arg1)
    
public  voidupdateBytes(int arg0, byte[] arg1)
    
public  voidupdateBytes(String arg0, byte[] arg1)
    
public  voidupdateCharacterStream(int arg0, Reader arg1, int arg2)
    
public  voidupdateCharacterStream(String arg0, Reader arg1, int arg2)
    
public  voidupdateClob(int arg0, Clob arg1)
    
public  voidupdateClob(String arg0, Clob arg1)
    
public  voidupdateDate(int arg0, Date arg1)
    
public  voidupdateDate(String arg0, Date arg1)
    
public  voidupdateDouble(int arg0, double arg1)
    
public  voidupdateDouble(String arg0, double arg1)
    
public  voidupdateFloat(int arg0, float arg1)
    
public  voidupdateFloat(String arg0, float arg1)
    
public  voidupdateInt(int arg0, int arg1)
    
public  voidupdateInt(String arg0, int arg1)
    
public  voidupdateLong(int arg0, long arg1)
    
public  voidupdateLong(String arg0, long arg1)
    
public  voidupdateNull(int arg0)
    
public  voidupdateNull(String arg0)
    
public  voidupdateObject(int arg0, Object arg1)
    
public  voidupdateObject(String arg0, Object arg1)
    
public  voidupdateObject(int arg0, Object arg1, int arg2)
    
public  voidupdateObject(String arg0, Object arg1, int arg2)
    
public  voidupdateRef(int arg0, Ref arg1)
    
public  voidupdateRef(String arg0, Ref arg1)
    
public  voidupdateRow()
    
public  voidupdateShort(int arg0, short arg1)
    
public  voidupdateShort(String arg0, short arg1)
    
public  voidupdateString(int arg0, String arg1)
    
public  voidupdateString(String arg0, String arg1)
    
public  voidupdateTime(int arg0, Time arg1)
    
public  voidupdateTime(String arg0, Time arg1)
    
public  voidupdateTimestamp(int arg0, Timestamp arg1)
    
public  voidupdateTimestamp(String arg0, Timestamp arg1)
    
public  booleanwasNull()
    

Field Detail
_infos
TableColumnInfo[] _infos(Code)
The TableColumnInfos that describe the columns of the result.



cursorIndex
int cursorIndex(Code)
The index into rowData of the next row to be used to return column values



rowData
ArrayList<Object[]> rowData(Code)
The simulated results from the "database"



rsmd
ResultSetMetaData rsmd(Code)
ResultSetMetaData describing this result.




Constructor Detail
MockResultSet
public MockResultSet()(Code)



MockResultSet
public MockResultSet(TableColumnInfo[] infos)(Code)

Parameters:
  infos - an array of TableColumnInfo items that describe the columnsof the result set.




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



addRow
public void addRow(Object[] values)(Code)
Adds a row of values to the result. Successive calls create additional rows.
Parameters:
  values -



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)



deleteRow
public void deleteRow() throws SQLException(Code)



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



first
public boolean first() throws SQLException(Code)



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



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



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



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



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



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



getBigDecimal
public BigDecimal getBigDecimal(int arg0, int arg1) throws SQLException(Code)



getBigDecimal
public BigDecimal getBigDecimal(String arg0, int arg1) throws SQLException(Code)



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



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



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



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



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



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



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



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



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



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



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



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



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



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



getConcurrency
public int getConcurrency() throws SQLException(Code)



getCursorName
public String getCursorName() throws SQLException(Code)



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



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



getDate
public Date getDate(int arg0, Calendar arg1) throws SQLException(Code)



getDate
public Date getDate(String arg0, Calendar arg1) throws SQLException(Code)



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



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



getFetchDirection
public int getFetchDirection() throws SQLException(Code)



getFetchSize
public int getFetchSize() throws SQLException(Code)



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



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



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



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



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



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



getMetaData
public ResultSetMetaData getMetaData() throws SQLException(Code)



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



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



getObject
public Object getObject(int arg0, Map arg1) throws SQLException(Code)



getObject
public Object getObject(String arg0, Map arg1) throws SQLException(Code)



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



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



getRow
public int getRow() throws SQLException(Code)



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



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



getStatement
public Statement getStatement() throws SQLException(Code)



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



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



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



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



getTime
public Time getTime(int arg0, Calendar arg1) throws SQLException(Code)



getTime
public Time getTime(String arg0, Calendar arg1) throws SQLException(Code)



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



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



getTimestamp
public Timestamp getTimestamp(int arg0, Calendar arg1) throws SQLException(Code)



getTimestamp
public Timestamp getTimestamp(String arg0, Calendar arg1) throws SQLException(Code)



getType
public int getType() throws SQLException(Code)



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



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



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



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



getWarnings
public SQLWarning getWarnings() throws SQLException(Code)



insertRow
public void insertRow() throws SQLException(Code)



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 arg0) 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 arg0) throws SQLException(Code)



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



setMetaData
public void setMetaData(ResultSetMetaData md)(Code)



setTableColumnInfos
public void setTableColumnInfos(TableColumnInfo[] infos)(Code)



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



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



updateAsciiStream
public void updateAsciiStream(int arg0, InputStream arg1, int arg2) throws SQLException(Code)



updateAsciiStream
public void updateAsciiStream(String arg0, InputStream arg1, int arg2) throws SQLException(Code)



updateBigDecimal
public void updateBigDecimal(int arg0, BigDecimal arg1) throws SQLException(Code)



updateBigDecimal
public void updateBigDecimal(String arg0, BigDecimal arg1) throws SQLException(Code)



updateBinaryStream
public void updateBinaryStream(int arg0, InputStream arg1, int arg2) throws SQLException(Code)



updateBinaryStream
public void updateBinaryStream(String arg0, InputStream arg1, int arg2) throws SQLException(Code)



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



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



updateBoolean
public void updateBoolean(int arg0, boolean arg1) throws SQLException(Code)



updateBoolean
public void updateBoolean(String arg0, boolean arg1) throws SQLException(Code)



updateByte
public void updateByte(int arg0, byte arg1) throws SQLException(Code)



updateByte
public void updateByte(String arg0, byte arg1) throws SQLException(Code)



updateBytes
public void updateBytes(int arg0, byte[] arg1) throws SQLException(Code)



updateBytes
public void updateBytes(String arg0, byte[] arg1) throws SQLException(Code)



updateCharacterStream
public void updateCharacterStream(int arg0, Reader arg1, int arg2) throws SQLException(Code)



updateCharacterStream
public void updateCharacterStream(String arg0, Reader arg1, int arg2) throws SQLException(Code)



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



updateClob
public void updateClob(String arg0, Clob arg1) throws SQLException(Code)



updateDate
public void updateDate(int arg0, Date arg1) throws SQLException(Code)



updateDate
public void updateDate(String arg0, Date arg1) throws SQLException(Code)



updateDouble
public void updateDouble(int arg0, double arg1) throws SQLException(Code)



updateDouble
public void updateDouble(String arg0, double arg1) throws SQLException(Code)



updateFloat
public void updateFloat(int arg0, float arg1) throws SQLException(Code)



updateFloat
public void updateFloat(String arg0, float arg1) throws SQLException(Code)



updateInt
public void updateInt(int arg0, int arg1) throws SQLException(Code)



updateInt
public void updateInt(String arg0, int arg1) throws SQLException(Code)



updateLong
public void updateLong(int arg0, long arg1) throws SQLException(Code)



updateLong
public void updateLong(String arg0, long arg1) throws SQLException(Code)



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



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



updateObject
public void updateObject(int arg0, Object arg1) throws SQLException(Code)



updateObject
public void updateObject(String arg0, Object arg1) throws SQLException(Code)



updateObject
public void updateObject(int arg0, Object arg1, int arg2) throws SQLException(Code)



updateObject
public void updateObject(String arg0, Object arg1, int arg2) throws SQLException(Code)



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



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



updateRow
public void updateRow() throws SQLException(Code)



updateShort
public void updateShort(int arg0, short arg1) throws SQLException(Code)



updateShort
public void updateShort(String arg0, short arg1) throws SQLException(Code)



updateString
public void updateString(int arg0, String arg1) throws SQLException(Code)



updateString
public void updateString(String arg0, String arg1) throws SQLException(Code)



updateTime
public void updateTime(int arg0, Time arg1) throws SQLException(Code)



updateTime
public void updateTime(String arg0, Time arg1) throws SQLException(Code)



updateTimestamp
public void updateTimestamp(int arg0, Timestamp arg1) throws SQLException(Code)



updateTimestamp
public void updateTimestamp(String arg0, Timestamp arg1) 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.