Java Doc for BaseTest.java in  » Database-DBMS » db-derby-10.2 » org » apache » derbyTesting » functionTests » tests » store » 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 » db derby 10.2 » org.apache.derbyTesting.functionTests.tests.store 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.derbyTesting.functionTests.tests.store.BaseTest

All known Subclasses:   org.apache.derbyTesting.functionTests.tests.storetests.st_reclaim_longcol,  org.apache.derbyTesting.functionTests.tests.storetests.st_derby715,  org.apache.derbyTesting.functionTests.tests.store.OnlineCompressTest,  org.apache.derbyTesting.functionTests.tests.store.dropcrash,
BaseTest
abstract public class BaseTest (Code)
Common utility functions that can be shared across store .java tests.

If more than one store tests wants a function, put it here rather than copy it. Hopefully going forward, with enough utility functions adding new store tests will be easier. New store tests should extend this test to pick up access to utility routines - see OnlineCompressTest.java as an example.



Field Summary
final protected static  intSPACE_INFO_ESTIMSPACESAVING
    
final protected static  intSPACE_INFO_IS_INDEX
     call the space table vti.

Utility test function to call the space table vti to get information about allocated and free pages.

final protected static  intSPACE_INFO_NUMCOLS
    
final protected static  intSPACE_INFO_NUM_ALLOC
    
final protected static  intSPACE_INFO_NUM_FREE
    
final protected static  intSPACE_INFO_NUM_UNFILLED
    
final protected static  intSPACE_INFO_PAGE_SIZE
    
protected static  booleanverbose
    

Constructor Summary
public  BaseTest()
    

Method Summary
protected  voidbeginTest(Connection conn, String str)
    
protected  booleancheckAllConsistency(Connection conn)
     Call consistency checker on all the tables.
protected  booleancheckConsistency(Connection conn, String schemaName, String tableName)
     Call consistency checker on the table.
protected  voidcreateDebugSystemProcedures(Connection conn)
     Create a system procedures to access SANE debug table routines.
public  voidcreateTable(Connection conn, String tbl_name, String create_str)
     create given table on the input connection.
 Stringdump_table(Connection conn, String schemaName, String tableName, boolean commit_transaction)
     Return string with table information.
protected  voidendTest(Connection conn, String str)
    
public  voidexecuteQuery(Connection conn, String stmt_str, boolean commit_query)
     Simple wrapper to execute a sql string.
protected  int[]getSpaceInfo(Connection conn, String schemaName, String tableName, boolean commit_xact)
    
protected  Stringget_lock_info(Connection conn, boolean include_system_locks)
     Get lock table.
protected  voidlog(String str)
    
protected  voidlogError(String str)
    
 voidrunTests(String[] argv)
    
abstract public  voidtestList(Connection conn)
    
protected  voidtestProgress(String str)
    
protected  inttotal_pages(int[] space_info)
     Given output from getSpaceInfo(), return total pages in file.

Field Detail
SPACE_INFO_ESTIMSPACESAVING
final protected static int SPACE_INFO_ESTIMSPACESAVING(Code)



SPACE_INFO_IS_INDEX
final protected static int SPACE_INFO_IS_INDEX(Code)
call the space table vti.

Utility test function to call the space table vti to get information about allocated and free pages. Information is passed back in an int array as follows: is_index = ret_info[0]; num_alloc = ret_info[1]; num_free = ret_info[2]; page_size = ret_info[3]; estimate_space_savings = ret_info[4];

the space information about the table.
exception:
  StandardException - Standard exception policy.




SPACE_INFO_NUMCOLS
final protected static int SPACE_INFO_NUMCOLS(Code)



SPACE_INFO_NUM_ALLOC
final protected static int SPACE_INFO_NUM_ALLOC(Code)



SPACE_INFO_NUM_FREE
final protected static int SPACE_INFO_NUM_FREE(Code)



SPACE_INFO_NUM_UNFILLED
final protected static int SPACE_INFO_NUM_UNFILLED(Code)



SPACE_INFO_PAGE_SIZE
final protected static int SPACE_INFO_PAGE_SIZE(Code)



verbose
protected static boolean verbose(Code)




Constructor Detail
BaseTest
public BaseTest()(Code)




Method Detail
beginTest
protected void beginTest(Connection conn, String str) throws SQLException(Code)



checkAllConsistency
protected boolean checkAllConsistency(Connection conn) throws SQLException(Code)
Call consistency checker on all the tables.




checkConsistency
protected boolean checkConsistency(Connection conn, String schemaName, String tableName) throws SQLException(Code)
Call consistency checker on the table.




createDebugSystemProcedures
protected void createDebugSystemProcedures(Connection conn) throws SQLException(Code)
Create a system procedures to access SANE debug table routines.




createTable
public void createTable(Connection conn, String tbl_name, String create_str) throws SQLException(Code)
create given table on the input connection.

Takes care of dropping the table if it exists already.


exception:
  StandardException - Standard exception policy.




dump_table
String dump_table(Connection conn, String schemaName, String tableName, boolean commit_transaction) throws SQLException(Code)
Return string with table information.

Dumps summary store information about the table, also dumps extra information about individual pages into the error log file.




endTest
protected void endTest(Connection conn, String str) throws SQLException(Code)



executeQuery
public void executeQuery(Connection conn, String stmt_str, boolean commit_query) throws SQLException(Code)
Simple wrapper to execute a sql string.



getSpaceInfo
protected int[] getSpaceInfo(Connection conn, String schemaName, String tableName, boolean commit_xact) throws SQLException(Code)



get_lock_info
protected String get_lock_info(Connection conn, boolean include_system_locks) throws SQLException(Code)
Get lock table.

Returns a single string with a dump of the entire lock table.

The lock table.
Parameters:
  conn - The connection to use.
Parameters:
  include_system_locks - If true include non-user locks like thoserequested by background internal threads.




log
protected void log(String str)(Code)



logError
protected void logError(String str)(Code)



runTests
void runTests(String[] argv) throws Throwable(Code)



testList
abstract public void testList(Connection conn) throws SQLException(Code)



testProgress
protected void testProgress(String str) throws SQLException(Code)



total_pages
protected int total_pages(int[] space_info)(Code)
Given output from getSpaceInfo(), return total pages in file.

simply the sum of allocated and free pages.




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.