Java Doc for DBTestBase.java in  » IDE-Netbeans » db » org » netbeans » modules » db » util » 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 » IDE Netbeans » db » org.netbeans.modules.db.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.netbeans.modules.db.test.TestBase
   org.netbeans.modules.db.util.DBTestBase

All known Subclasses:   org.netbeans.modules.db.explorer.dlg.AddTableColumnDDLTest,  org.netbeans.modules.db.explorer.actions.AddToIndexDDLTest,  org.netbeans.modules.db.explorer.dlg.CreateTableDDLTest,  org.netbeans.modules.db.explorer.dlg.AddIndexDDLTest,  org.netbeans.modules.db.explorer.infos.DDLHelperTest,  org.netbeans.modules.db.explorer.dlg.AddViewDDLTest,  org.netbeans.api.db.sql.support.QuoterTest,  org.netbeans.modules.db.explorer.actions.GrabTableHelperTest,
DBTestBase
abstract public class DBTestBase extends TestBase (Code)
This class is a useful base test class that provides initial setup to get a connecxtion and also a number of utility routines
author:
   David Van Couvering


Field Summary
final protected static  LevelDEBUGLEVEL
    
final public static  intLC_RULE
    
final public static  intMC_RULE
    
final public static  intQUOTE_RETAINS_CASE
    
final protected static  StringSCHEMA
    
final public static  intUC_RULE
    
protected  Connectionconn
    
protected static  Stringdblocation
    
protected  DriverSpecificationdrvSpec
    
protected  Specificationspec
    
protected static  SpecificationFactoryspecfactory
    

Constructor Summary
public  DBTestBase(String name)
    

Method Summary
protected  voidaddBasicColumn(String tablename, String colname, int type, int size)
     Adds a basic column.
protected  booleancolumnExists(String tablename, String colname)
    
protected  booleancolumnInAnyIndex(String tablename, String colname)
    
protected  booleancolumnInIndex(String tablename, String colname, String indexname)
    
protected  booleancolumnInPrimaryKey(String tablename, String colname)
    
protected  voidcreateBasicTable(String tablename, String pkeyName)
    
protected  voidcreateSchema()
    
protected  voidcreateSimpleIndex(String tablename, String indexname, String colname)
    
protected  voidcreateView(String viewName, String query)
    
protected  voiddropSchema()
    
protected  voiddropTable(String tablename)
    
protected  voiddropView(String viewname)
    
public  StringfixIdentifier(String ident)
    
protected  ConnectiongetConnection()
    
public  intgetUnquotedCaseRule()
    
protected  booleanindexExists(String tablename, String indexname)
    
protected  booleanindexIsUnique(String tablename, String indexName)
    
protected  booleanisQuoted(String ident)
    
protected  voidprintAllTables()
    
protected  intprintResults(ResultSet rs, String queryName)
    
protected  Stringquote(String value)
    
protected  booleanschemaExists(String schemaName)
    
protected  voidsetSchema()
    
public  voidsetUp()
    
protected  booleantableExists(String tablename)
    
protected  voidtearDown()
    
protected  booleanviewExists(String viewName)
    

Field Detail
DEBUGLEVEL
final protected static Level DEBUGLEVEL(Code)



LC_RULE
final public static int LC_RULE(Code)



MC_RULE
final public static int MC_RULE(Code)



QUOTE_RETAINS_CASE
final public static int QUOTE_RETAINS_CASE(Code)



SCHEMA
final protected static String SCHEMA(Code)



UC_RULE
final public static int UC_RULE(Code)



conn
protected Connection conn(Code)



dblocation
protected static String dblocation(Code)



drvSpec
protected DriverSpecification drvSpec(Code)



spec
protected Specification spec(Code)



specfactory
protected static SpecificationFactory specfactory(Code)




Constructor Detail
DBTestBase
public DBTestBase(String name)(Code)




Method Detail
addBasicColumn
protected void addBasicColumn(String tablename, String colname, int type, int size) throws Exception(Code)
Adds a basic column. Non-unique, allows nulls.



columnExists
protected boolean columnExists(String tablename, String colname) throws Exception(Code)



columnInAnyIndex
protected boolean columnInAnyIndex(String tablename, String colname) throws Exception(Code)



columnInIndex
protected boolean columnInIndex(String tablename, String colname, String indexname) throws Exception(Code)



columnInPrimaryKey
protected boolean columnInPrimaryKey(String tablename, String colname) throws Exception(Code)



createBasicTable
protected void createBasicTable(String tablename, String pkeyName) throws Exception(Code)



createSchema
protected void createSchema() throws Exception(Code)



createSimpleIndex
protected void createSimpleIndex(String tablename, String indexname, String colname) throws Exception(Code)



createView
protected void createView(String viewName, String query) throws Exception(Code)



dropSchema
protected void dropSchema() throws Exception(Code)



dropTable
protected void dropTable(String tablename)(Code)



dropView
protected void dropView(String viewname)(Code)



fixIdentifier
public String fixIdentifier(String ident) throws Exception(Code)
Fix an identifier for a metadata call, as the metadata APIs require identifiers to be in proper case



getConnection
protected Connection getConnection() throws Exception(Code)



getUnquotedCaseRule
public int getUnquotedCaseRule() throws Exception(Code)



indexExists
protected boolean indexExists(String tablename, String indexname) throws Exception(Code)



indexIsUnique
protected boolean indexIsUnique(String tablename, String indexName) throws Exception(Code)



isQuoted
protected boolean isQuoted(String ident)(Code)



printAllTables
protected void printAllTables() throws Exception(Code)



printResults
protected int printResults(ResultSet rs, String queryName) throws Exception(Code)



quote
protected String quote(String value) throws Exception(Code)



schemaExists
protected boolean schemaExists(String schemaName) throws Exception(Code)



setSchema
protected void setSchema() throws Exception(Code)



setUp
public void setUp() throws Exception(Code)



tableExists
protected boolean tableExists(String tablename) throws Exception(Code)



tearDown
protected void tearDown() throws Exception(Code)



viewExists
protected boolean viewExists(String viewName) throws Exception(Code)



Methods inherited from org.netbeans.modules.db.test.TestBase
protected void setUp() throws Exception(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.