Java Doc for DBMetaDataFactory.java in  » IDE-Netbeans » etl.project » org » netbeans » modules » sql » framework » model » 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 » etl.project » org.netbeans.modules.sql.framework.model 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.netbeans.modules.sql.framework.model.DBMetaDataFactory

DBMetaDataFactory
public class DBMetaDataFactory (Code)
Extracts database metadata information (table names and constraints, their associated columns, etc.)
author:
   Ahimanikya Satapathy
version:
   $Revision$


Field Summary
final public static  StringAXION
    
final public static  StringAXION_TEXT
    
final public static  intCATALOG
    
final public static  StringDB2
    
final public static  StringDB2_TEXT
    
final public static  String[]DBTYPES
    
final public static  StringDERBY
    
final public static  StringDERBY_TEXT
    
final public static  StringJDBC
    
final public static  StringJDBC_ODBC
    
final public static  StringJDBC_TEXT
    
final public static  StringMYSQL
    
final public static  StringMYSQL_TEXT
    
final public static  intNAME
    
final public static  StringORACLE
    
final public static  StringORACLE_TEXT
    
final public static  StringPostgreSQL
    
final public static  StringPostgreSQL_TEXT
    
final public static  intSCHEMA
    
final public static  StringSQLSERVER
    
final public static  StringSQLSERVER_TEXT
    
final public static  intTYPE
    
final public static  StringVSAM_ADABAS_IAM
    
final public static  StringVSAM_ADABAS_IAM_TEXT
    


Method Summary
public  voidconnectDB(Connection conn)
     Establishes a connection to the database.
public  voiddisconnectDB()
     Disconnects from the database.
public  StringgetDBName()
    
public  StringgetDBType()
     Returns the database Database type.
public static  StringgetDBTypeFromURL(String url)
    
public  Map<String, ForeignKey>getForeignKeys(DBTable table)
     Returns a list of foreign keys for a table.
public  PrimaryKeyImplgetPrimaryKeys(String tcatalog, String tschema, String tname)
     Returns a list of primary keys for a table.
public  String[]getSchemas()
     Returns a list of schemas in the database.
public  String[][]getTables(String catalog, String schemaPattern, String tablePattern, String[] tableTypes)
     Returns a list of tables/views matching in the passed in filters.
Parameters:
  catalog - Catalog name
Parameters:
  schemaPattern - Schema pattern
Parameters:
  tablePattern - Table/View name pattern
Parameters:
  tableTypes - List of table types to include (ex.
public  String[][]getTablesAndViews(String catalog, String schemaPattern, String tablePattern, boolean includeSystemTables)
     Returns a list of tables and views matching in the passed in filters.
public  String[][]getTablesOnly(String catalog, String schemaPattern, String tablePattern, boolean includeSystemTables)
     Returns a list of tables matching in the passed in filters.
public  String[][]getViewsOnly(String catalog, String schemaPattern, String viewPattern, boolean includeSystemTables)
     Returns a list of views matching in the passed in filters.
public  booleanisTableOrViewExist(String tcatalog, String tschema, String tname)
    
public  voidpopulateColumns(SQLDBTable table)
    

Field Detail
AXION
final public static String AXION(Code)



AXION_TEXT
final public static String AXION_TEXT(Code)



CATALOG
final public static int CATALOG(Code)
Index to the catalog field for results of table/view/procedure searches



DB2
final public static String DB2(Code)



DB2_TEXT
final public static String DB2_TEXT(Code)



DBTYPES
final public static String[] DBTYPES(Code)
List of database type display descriptions



DERBY
final public static String DERBY(Code)



DERBY_TEXT
final public static String DERBY_TEXT(Code)



JDBC
final public static String JDBC(Code)



JDBC_ODBC
final public static String JDBC_ODBC(Code)



JDBC_TEXT
final public static String JDBC_TEXT(Code)



MYSQL
final public static String MYSQL(Code)



MYSQL_TEXT
final public static String MYSQL_TEXT(Code)



NAME
final public static int NAME(Code)
Index to the name field for results of table/view/procedure searches



ORACLE
final public static String ORACLE(Code)



ORACLE_TEXT
final public static String ORACLE_TEXT(Code)



PostgreSQL
final public static String PostgreSQL(Code)



PostgreSQL_TEXT
final public static String PostgreSQL_TEXT(Code)



SCHEMA
final public static int SCHEMA(Code)
Index to the schema field for results of table/view/procedure searches



SQLSERVER
final public static String SQLSERVER(Code)



SQLSERVER_TEXT
final public static String SQLSERVER_TEXT(Code)



TYPE
final public static int TYPE(Code)
Index to the type field for results of table/view/procedure searches



VSAM_ADABAS_IAM
final public static String VSAM_ADABAS_IAM(Code)



VSAM_ADABAS_IAM_TEXT
final public static String VSAM_ADABAS_IAM_TEXT(Code)





Method Detail
connectDB
public void connectDB(Connection conn) throws Exception(Code)
Establishes a connection to the database.
Parameters:
  conn - JDBC connection
throws:
  Exception -



disconnectDB
public void disconnectDB()(Code)
Disconnects from the database.
throws:
  Exception -



getDBName
public String getDBName() throws Exception(Code)
Returns the database product name String database product name
throws:
  Exception -



getDBType
public String getDBType() throws Exception(Code)
Returns the database Database type. String Database Database type
throws:
  Exception -



getDBTypeFromURL
public static String getDBTypeFromURL(String url) throws Exception(Code)



getForeignKeys
public Map<String, ForeignKey> getForeignKeys(DBTable table) throws Exception(Code)
Returns a list of foreign keys for a table.
Parameters:
  tcatalog - Catalog name
Parameters:
  tschema - Schema name
Parameters:
  tname - Table name List List of foreign keys
throws:
  Exception -



getPrimaryKeys
public PrimaryKeyImpl getPrimaryKeys(String tcatalog, String tschema, String tname) throws Exception(Code)
Returns a list of primary keys for a table.
Parameters:
  tcatalog - Catalog name
Parameters:
  tschema - Schema name
Parameters:
  tname - Table name List List of primary keys
throws:
  Exception -



getSchemas
public String[] getSchemas() throws Exception(Code)
Returns a list of schemas in the database. String[] List of schema names
throws:
  Exception -



getTables
public String[][] getTables(String catalog, String schemaPattern, String tablePattern, String[] tableTypes) throws Exception(Code)
Returns a list of tables/views matching in the passed in filters.
Parameters:
  catalog - Catalog name
Parameters:
  schemaPattern - Schema pattern
Parameters:
  tablePattern - Table/View name pattern
Parameters:
  tableTypes - List of table types to include (ex. TABLE, VIEW) String[][] List of tables matching search filters
throws:
  Exception -



getTablesAndViews
public String[][] getTablesAndViews(String catalog, String schemaPattern, String tablePattern, boolean includeSystemTables) throws Exception(Code)
Returns a list of tables and views matching in the passed in filters.
Parameters:
  catalog - Catalog name
Parameters:
  schemaPattern - Schema pattern
Parameters:
  tablePattern - Table/View name pattern
Parameters:
  includeSystemTables - Indicate whether to include system tables in search String[][] List of tables and views matching search filters
throws:
  Exception -



getTablesOnly
public String[][] getTablesOnly(String catalog, String schemaPattern, String tablePattern, boolean includeSystemTables) throws Exception(Code)
Returns a list of tables matching in the passed in filters.
Parameters:
  catalog - Catalog name
Parameters:
  schemaPattern - Schema pattern
Parameters:
  tablePattern - Table name pattern
Parameters:
  includeSystemTables - Indicate whether to include system tables in search String[][] List of tables matching search filters
throws:
  Exception -



getViewsOnly
public String[][] getViewsOnly(String catalog, String schemaPattern, String viewPattern, boolean includeSystemTables) throws Exception(Code)
Returns a list of views matching in the passed in filters.
Parameters:
  catalog - Catalog name
Parameters:
  schemaPattern - Schema pattern
Parameters:
  viewPattern - View name pattern
Parameters:
  includeSystemTables - Indicate whether to include system tables in search String[][] List of views matching search filters
throws:
  Exception -



isTableOrViewExist
public boolean isTableOrViewExist(String tcatalog, String tschema, String tname) throws Exception(Code)



populateColumns
public void populateColumns(SQLDBTable table) throws Exception(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.