Java Doc for TestAxionResultSet.java in  » Database-DBMS » axion » org » axiondb » 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 DBMS » axion » org.axiondb.jdbc 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.axiondb.jdbc.TestAxionResultSet

All known Subclasses:   org.axiondb.jdbc.TestAxionResultSet_DelimitedFlatfile,  org.axiondb.jdbc.TestAxionResultSet_Disk,
TestAxionResultSet
public class TestAxionResultSet extends TestCase (Code)

version:
   $Revision: 1.17 $ $Date: 2007/11/13 19:04:01 $
author:
   Chuck Burdick
author:
   Rodney Waldhoff
author:
   Jonathan Giron


Field Summary
protected static  intIMAX
    
protected static  intJMAX
    
protected  Connection_conn
    
protected  ResultSet_rset
    
protected  AxionStatement_stmt
    
protected  Table_table
    

Constructor Summary
public  TestAxionResultSet(String testName)
    

Method Summary
protected  voidassertAfterLast()
     Tests indicators that show that result set cursor is positioned after the last row in the ResultSet.
protected  voidassertBeforeFirst()
     Tests indicators that show that the result set cursor is positioned before the first row in the ResultSet.
protected  voidassertEmptyResultSet()
     Tests indicators that must be false when the result set is empty.
protected  voidassertFirstInMultirowRS()
     Tests indicators that show that the result set cursor is on the first row in the ResultSet - use only for multi-row ResultSets.
protected  voidassertInMiddleInMultirowRS()
     Tests indicators that show that the result set is in the middle of a ResultSet and not in either of the extremes - use only for multi-row ResultSets.
protected  voidassertLastInMultirowRS()
     Tests indicators that show that the result set cursor is on the last row in the ResultSet - use only for multi-row ResultSets.
protected  voidcreateBasicTable()
     Creates basic table for use in general ResultSet testing.
protected  DatabasecreateDatabase()
     Creates Axion database for this test suite.
protected  voidcreateEmptyTable()
     Creates empty table for use in testing position logic against a degenerate AxionResultSet.
protected  voidcreateForwardOnlyTable()
    
protected  voidcreateOneRowTable()
     Creates empty table for use in testing position logic against a degenerate AxionResultSet.
protected  TablecreateTableInstance()
    
protected  voidcreateUpdateTable()
     Constructs a table for use in testing updating methods in AxionResultSet.
protected  voidcreateUpdateTableWithNotNullColumn()
    
protected  voiddoCleanup()
     Executes cleanup methods that are local to this test suite.
protected  FilegetDatabaseDirectory()
     Gets File representing local filesystem directory in which Axion metadata files will be stored - null for this instance since we're testing via memory database.
protected  StringgetDatabaseName()
     Gets name of Axion database to use in this test suite.
public static  voidmain(String args)
    
public  voidsetUp()
    
public static  Testsuite()
    
public  voidtearDown()
    
public  voidtestAbsolute()
    
public  voidtestCancelRowUpdates()
    
public  voidtestClearWarnings()
    
public  voidtestCreate()
    
public  voidtestDeleteEndThenOtherRows()
    
public  voidtestDeleteFirstThenOtherRows()
    
public  voidtestDeleteRow2ThenOtherRows()
    
public  voidtestEmptyResultSet()
    
public  voidtestGetType()
    
public  voidtestInsertRowMultipleTimes()
    
public  voidtestInsertRowOnce()
    
public  voidtestMoveToCurrentRow()
    
public  voidtestMoveToInsertRow()
    
public  voidtestNegativeCancelRowUpdates()
    
public  voidtestNegativeCursor()
    
public  voidtestNegativeDeleteRow()
    
public  voidtestNegativeForwardOnly()
    
public  voidtestNegativeGets()
    
public  voidtestNegativeInsertRow()
    
public  voidtestNegativeUpdateRow()
    
public  voidtestNextThrowsExceptionAfterClose()
    
public  voidtestOneRowResultSet()
    
public  voidtestPositionIndicators()
    
public  voidtestPrevious()
    
public  voidtestPreviousFollowingAfterLast()
    
public  voidtestUpdateArrayStringArray()
    
public  voidtestUpdateArrayintArray()
    
public  voidtestUpdateAsciiStreamStringInputStreamint()
    
public  voidtestUpdateAsciiStreamintInputStreamint()
    
public  voidtestUpdateBigDecimalStringBigDecimal()
    
public  voidtestUpdateBigDecimalintBigDecimal()
    
public  voidtestUpdateBinaryStreamStringInputStreamint()
    
public  voidtestUpdateBinaryStreamintInputStreamint()
    
public  voidtestUpdateBlobStringBlob()
    
public  voidtestUpdateBlobintBlob()
    
public  voidtestUpdateBooleanStringboolean()
    
public  voidtestUpdateBooleanintboolean()
    
public  voidtestUpdateByteStringbyte()
    
public  voidtestUpdateByteintbyte()
    
public  voidtestUpdateBytesStringbyteArray()
    
public  voidtestUpdateBytesintbyteArray()
    
public  voidtestUpdateCharacterStreamStringReaderint()
    
public  voidtestUpdateCharacterStreamintReaderint()
    
public  voidtestUpdateClobStringClob()
    
public  voidtestUpdateClobintClob()
    
public  voidtestUpdateDateStringDate()
    
public  voidtestUpdateDateintDate()
    
public  voidtestUpdateDoubleStringdouble()
    
public  voidtestUpdateDoubleintdouble()
    
public  voidtestUpdateFloatStringfloat()
    
public  voidtestUpdateFloatintfloat()
    
public  voidtestUpdateIntStringint()
    
public  voidtestUpdateIntintint()
    
public  voidtestUpdateLongStringlong()
    
public  voidtestUpdateLongintlong()
    
public  voidtestUpdateNonNullColumn()
    
public  voidtestUpdateNullString()
    
public  voidtestUpdateNullint()
    
public  voidtestUpdateObjectStringObject_Boolean()
    
public  voidtestUpdateObjectStringObject_DateTimeTimestamp()
    
public  voidtestUpdateObjectStringObject_DateTimeTimestamp_CaseInsensitivity()
    
public  voidtestUpdateObjectStringObject_Double()
    
public  voidtestUpdateObjectStringObject_Float()
    
public  voidtestUpdateObjectStringObject_Integer()
    
public  voidtestUpdateObjectStringObject_NoCurrentRow()
    
public  voidtestUpdateObjectStringObject_String()
    
public  voidtestUpdateObjectStringObjectint()
    
public  voidtestUpdateObjectintObject_Boolean()
    
public  voidtestUpdateObjectintObject_DateTimeTimestamp()
    
public  voidtestUpdateObjectintObject_Double()
    
public  voidtestUpdateObjectintObject_Float()
    
public  voidtestUpdateObjectintObject_Integer()
    
public  voidtestUpdateObjectintObject_NoCurrentRow()
    
public  voidtestUpdateObjectintObject_String()
    
public  voidtestUpdateObjectintObjectint()
    
public  voidtestUpdateRefStringRef()
    
public  voidtestUpdateRefintRef()
    
public  voidtestUpdateRow()
    
public  voidtestUpdateShortStringshort()
    
public  voidtestUpdateShortintshort()
    
public  voidtestUpdateStringStringString()
    
public  voidtestUpdateStringintString()
    
public  voidtestUpdateTimeStringTime()
    
public  voidtestUpdateTimeintTime()
    
public  voidtestUpdateTimestampStringTimestamp()
    
public  voidtestUpdateTimestampintTimestamp()
    
public  voidtestWasNullWithInsertRow()
    

Field Detail
IMAX
protected static int IMAX(Code)



JMAX
protected static int JMAX(Code)



_conn
protected Connection _conn(Code)



_rset
protected ResultSet _rset(Code)



_stmt
protected AxionStatement _stmt(Code)



_table
protected Table _table(Code)




Constructor Detail
TestAxionResultSet
public TestAxionResultSet(String testName)(Code)




Method Detail
assertAfterLast
protected void assertAfterLast() throws Exception(Code)
Tests indicators that show that result set cursor is positioned after the last row in the ResultSet.
throws:
  Exception - if error occurs while executing methods under test.



assertBeforeFirst
protected void assertBeforeFirst() throws Exception(Code)
Tests indicators that show that the result set cursor is positioned before the first row in the ResultSet.
throws:
  Exception - if error occurs while executing methods under test.



assertEmptyResultSet
protected void assertEmptyResultSet() throws Exception(Code)
Tests indicators that must be false when the result set is empty.
throws:
  Exception - if error occurs while executing methods under test.



assertFirstInMultirowRS
protected void assertFirstInMultirowRS() throws Exception(Code)
Tests indicators that show that the result set cursor is on the first row in the ResultSet - use only for multi-row ResultSets.
throws:
  Exception - if error occurs while executing methods under test.



assertInMiddleInMultirowRS
protected void assertInMiddleInMultirowRS() throws Exception(Code)
Tests indicators that show that the result set is in the middle of a ResultSet and not in either of the extremes - use only for multi-row ResultSets.
throws:
  Exception - if error occurs while executing methods under test.



assertLastInMultirowRS
protected void assertLastInMultirowRS() throws Exception(Code)
Tests indicators that show that the result set cursor is on the last row in the ResultSet - use only for multi-row ResultSets.
throws:
  Exception - if error occurs while executing methods under test.



createBasicTable
protected void createBasicTable() throws Exception(Code)
Creates basic table for use in general ResultSet testing.
throws:
  Exception - if error occurs during table or ResultSet construction



createDatabase
protected Database createDatabase() throws Exception(Code)
Creates Axion database for this test suite. Database instance.
throws:
  Exception -



createEmptyTable
protected void createEmptyTable() throws Exception(Code)
Creates empty table for use in testing position logic against a degenerate AxionResultSet.
throws:
  Exception - if error occurs during table or ResultSet construction



createForwardOnlyTable
protected void createForwardOnlyTable() throws Exception(Code)



createOneRowTable
protected void createOneRowTable() throws Exception(Code)
Creates empty table for use in testing position logic against a degenerate AxionResultSet.
throws:
  Exception - if error occurs during table or ResultSet construction



createTableInstance
protected Table createTableInstance() throws Exception(Code)



createUpdateTable
protected void createUpdateTable() throws Exception(Code)
Constructs a table for use in testing updating methods in AxionResultSet.
throws:
  Exception - if error occurs during table or ResultSet construction



createUpdateTableWithNotNullColumn
protected void createUpdateTableWithNotNullColumn() throws Exception(Code)



doCleanup
protected void doCleanup() throws Exception(Code)
Executes cleanup methods that are local to this test suite. A subclass should override this method as necessary, but be sure to invoke it via super.doCleanup() if it does not already close resources which are bound to this class instance.



getDatabaseDirectory
protected File getDatabaseDirectory()(Code)
Gets File representing local filesystem directory in which Axion metadata files will be stored - null for this instance since we're testing via memory database. Should be overridden by subclasses that use the local file system for persistence. null for this instance



getDatabaseName
protected String getDatabaseName()(Code)
Gets name of Axion database to use in this test suite. Should be overridden by subclasses that wish to use a distinct database.



main
public static void main(String args)(Code)



setUp
public void setUp() throws Exception(Code)



suite
public static Test suite()(Code)



tearDown
public void tearDown() throws Exception(Code)



testAbsolute
public void testAbsolute() throws Exception(Code)



testCancelRowUpdates
public void testCancelRowUpdates() throws Exception(Code)



testClearWarnings
public void testClearWarnings() throws Exception(Code)



testCreate
public void testCreate() throws Exception(Code)



testDeleteEndThenOtherRows
public void testDeleteEndThenOtherRows() throws Exception(Code)



testDeleteFirstThenOtherRows
public void testDeleteFirstThenOtherRows() throws Exception(Code)



testDeleteRow2ThenOtherRows
public void testDeleteRow2ThenOtherRows() throws Exception(Code)



testEmptyResultSet
public void testEmptyResultSet() throws Exception(Code)



testGetType
public void testGetType() throws Exception(Code)



testInsertRowMultipleTimes
public void testInsertRowMultipleTimes() throws Exception(Code)



testInsertRowOnce
public void testInsertRowOnce() throws Exception(Code)



testMoveToCurrentRow
public void testMoveToCurrentRow() throws Exception(Code)



testMoveToInsertRow
public void testMoveToInsertRow() throws Exception(Code)



testNegativeCancelRowUpdates
public void testNegativeCancelRowUpdates() throws Exception(Code)



testNegativeCursor
public void testNegativeCursor() throws Exception(Code)



testNegativeDeleteRow
public void testNegativeDeleteRow() throws Exception(Code)



testNegativeForwardOnly
public void testNegativeForwardOnly() throws Exception(Code)



testNegativeGets
public void testNegativeGets() throws Exception(Code)



testNegativeInsertRow
public void testNegativeInsertRow() throws Exception(Code)



testNegativeUpdateRow
public void testNegativeUpdateRow() throws Exception(Code)



testNextThrowsExceptionAfterClose
public void testNextThrowsExceptionAfterClose() throws Exception(Code)



testOneRowResultSet
public void testOneRowResultSet() throws Exception(Code)



testPositionIndicators
public void testPositionIndicators() throws Exception(Code)



testPrevious
public void testPrevious() throws Exception(Code)



testPreviousFollowingAfterLast
public void testPreviousFollowingAfterLast() throws Exception(Code)



testUpdateArrayStringArray
public void testUpdateArrayStringArray() throws Exception(Code)



testUpdateArrayintArray
public void testUpdateArrayintArray() throws Exception(Code)



testUpdateAsciiStreamStringInputStreamint
public void testUpdateAsciiStreamStringInputStreamint() throws Exception(Code)



testUpdateAsciiStreamintInputStreamint
public void testUpdateAsciiStreamintInputStreamint() throws Exception(Code)



testUpdateBigDecimalStringBigDecimal
public void testUpdateBigDecimalStringBigDecimal() throws Exception(Code)



testUpdateBigDecimalintBigDecimal
public void testUpdateBigDecimalintBigDecimal() throws Exception(Code)



testUpdateBinaryStreamStringInputStreamint
public void testUpdateBinaryStreamStringInputStreamint() throws Exception(Code)



testUpdateBinaryStreamintInputStreamint
public void testUpdateBinaryStreamintInputStreamint() throws Exception(Code)



testUpdateBlobStringBlob
public void testUpdateBlobStringBlob() throws Exception(Code)



testUpdateBlobintBlob
public void testUpdateBlobintBlob() throws Exception(Code)



testUpdateBooleanStringboolean
public void testUpdateBooleanStringboolean() throws Exception(Code)



testUpdateBooleanintboolean
public void testUpdateBooleanintboolean() throws Exception(Code)



testUpdateByteStringbyte
public void testUpdateByteStringbyte() throws Exception(Code)



testUpdateByteintbyte
public void testUpdateByteintbyte() throws Exception(Code)



testUpdateBytesStringbyteArray
public void testUpdateBytesStringbyteArray() throws Exception(Code)



testUpdateBytesintbyteArray
public void testUpdateBytesintbyteArray() throws Exception(Code)



testUpdateCharacterStreamStringReaderint
public void testUpdateCharacterStreamStringReaderint() throws Exception(Code)



testUpdateCharacterStreamintReaderint
public void testUpdateCharacterStreamintReaderint() throws Exception(Code)



testUpdateClobStringClob
public void testUpdateClobStringClob() throws Exception(Code)



testUpdateClobintClob
public void testUpdateClobintClob() throws Exception(Code)



testUpdateDateStringDate
public void testUpdateDateStringDate() throws Exception(Code)



testUpdateDateintDate
public void testUpdateDateintDate() throws Exception(Code)



testUpdateDoubleStringdouble
public void testUpdateDoubleStringdouble() throws Exception(Code)



testUpdateDoubleintdouble
public void testUpdateDoubleintdouble() throws Exception(Code)



testUpdateFloatStringfloat
public void testUpdateFloatStringfloat() throws Exception(Code)



testUpdateFloatintfloat
public void testUpdateFloatintfloat() throws Exception(Code)



testUpdateIntStringint
public void testUpdateIntStringint() throws Exception(Code)



testUpdateIntintint
public void testUpdateIntintint() throws Exception(Code)



testUpdateLongStringlong
public void testUpdateLongStringlong() throws Exception(Code)



testUpdateLongintlong
public void testUpdateLongintlong() throws Exception(Code)



testUpdateNonNullColumn
public void testUpdateNonNullColumn() throws Exception(Code)



testUpdateNullString
public void testUpdateNullString() throws Exception(Code)



testUpdateNullint
public void testUpdateNullint() throws Exception(Code)



testUpdateObjectStringObject_Boolean
public void testUpdateObjectStringObject_Boolean() throws Exception(Code)



testUpdateObjectStringObject_DateTimeTimestamp
public void testUpdateObjectStringObject_DateTimeTimestamp() throws Exception(Code)



testUpdateObjectStringObject_DateTimeTimestamp_CaseInsensitivity
public void testUpdateObjectStringObject_DateTimeTimestamp_CaseInsensitivity() throws Exception(Code)



testUpdateObjectStringObject_Double
public void testUpdateObjectStringObject_Double() throws Exception(Code)



testUpdateObjectStringObject_Float
public void testUpdateObjectStringObject_Float() throws Exception(Code)



testUpdateObjectStringObject_Integer
public void testUpdateObjectStringObject_Integer() throws Exception(Code)



testUpdateObjectStringObject_NoCurrentRow
public void testUpdateObjectStringObject_NoCurrentRow() throws Exception(Code)



testUpdateObjectStringObject_String
public void testUpdateObjectStringObject_String() throws Exception(Code)



testUpdateObjectStringObjectint
public void testUpdateObjectStringObjectint() throws Exception(Code)



testUpdateObjectintObject_Boolean
public void testUpdateObjectintObject_Boolean() throws Exception(Code)



testUpdateObjectintObject_DateTimeTimestamp
public void testUpdateObjectintObject_DateTimeTimestamp() throws Exception(Code)



testUpdateObjectintObject_Double
public void testUpdateObjectintObject_Double() throws Exception(Code)



testUpdateObjectintObject_Float
public void testUpdateObjectintObject_Float() throws Exception(Code)



testUpdateObjectintObject_Integer
public void testUpdateObjectintObject_Integer() throws Exception(Code)



testUpdateObjectintObject_NoCurrentRow
public void testUpdateObjectintObject_NoCurrentRow() throws Exception(Code)



testUpdateObjectintObject_String
public void testUpdateObjectintObject_String() throws Exception(Code)



testUpdateObjectintObjectint
public void testUpdateObjectintObjectint() throws Exception(Code)



testUpdateRefStringRef
public void testUpdateRefStringRef() throws Exception(Code)



testUpdateRefintRef
public void testUpdateRefintRef() throws Exception(Code)



testUpdateRow
public void testUpdateRow() throws Exception(Code)



testUpdateShortStringshort
public void testUpdateShortStringshort() throws Exception(Code)



testUpdateShortintshort
public void testUpdateShortintshort() throws Exception(Code)



testUpdateStringStringString
public void testUpdateStringStringString() throws Exception(Code)



testUpdateStringintString
public void testUpdateStringintString() throws Exception(Code)



testUpdateTimeStringTime
public void testUpdateTimeStringTime() throws Exception(Code)



testUpdateTimeintTime
public void testUpdateTimeintTime() throws Exception(Code)



testUpdateTimestampStringTimestamp
public void testUpdateTimestampStringTimestamp() throws Exception(Code)



testUpdateTimestampintTimestamp
public void testUpdateTimestampintTimestamp() throws Exception(Code)



testWasNullWithInsertRow
public void testWasNullWithInsertRow() throws Exception(Code)



www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.