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


java.lang.Object
   org.netbeans.lib.ddl.impl.Specification

Specification
public class Specification implements DatabaseSpecification(Code)


Field Summary
final public static  StringADD_COLUMN
    
final public static  StringADD_CONSTRAINT
    
final public static  StringCOMMENT_TABLE
    
final public static  StringCOMMENT_VIEW
    
final public static  StringCREATE_FUNCTION
    
final public static  StringCREATE_INDEX
    
final public static  StringCREATE_PROCEDURE
    
final public static  StringCREATE_TABLE
    
final public static  StringCREATE_TRIGGER
    
final public static  StringCREATE_VIEW
    
final public static  StringDROP_CONSTRAINT
    
final public static  StringDROP_FUNCTION
    
final public static  StringDROP_INDEX
    
final public static  StringDROP_PROCEDURE
    
final public static  StringDROP_TABLE
    
final public static  StringDROP_TRIGGER
    
final public static  StringDROP_VIEW
    
final public static  StringMODIFY_COLUMN
    
final public static  StringREMOVE_COLUMN
    
final public static  StringRENAME_COLUMN
    
final public static  StringRENAME_TABLE
    
final public static  StringRENAME_VIEW
    
 StringadaptorClass
    
 DatabaseMetaDatadmdAdaptor
    
 SpecificationFactoryfactory
    

Constructor Summary
public  Specification(HashMap description)
    
public  Specification(HashMap description, Connection c)
    

Method Summary
public  voidcloseJDBCConnection()
    
public  DDLCommandcreateCommand(String commandName)
     Creates command identified by commandName.
public  DDLCommandcreateCommand(String commandName, String tableName)
     Creates command identified by commandName on table tableName. Returns null if command specified by commandName was not found.
public  AddColumncreateCommandAddColumn(String tableName)
    
public  CommentTablecreateCommandCommentTable(String tableName, String comment)
    
public  CommentViewcreateCommandCommentView(String viewName, String comment)
    
public  CreateFunctioncreateCommandCreateFunction(String name)
    
public  CreateIndexcreateCommandCreateIndex(String tableName)
    
public  CreateProcedurecreateCommandCreateProcedure(String name)
    
public  CreateTablecreateCommandCreateTable(String tableName)
    
public  CreateTriggercreateCommandCreateTrigger(String name, String tablename, int timing)
    
public  CreateViewcreateCommandCreateView(String viewname)
    
public  AbstractCommandcreateCommandDropFunction(String name)
    
public  DropIndexcreateCommandDropIndex(String tablename)
    
public  AbstractCommandcreateCommandDropProcedure(String name)
    
public  AbstractCommandcreateCommandDropTable(String tableName)
    
public  AbstractCommandcreateCommandDropTrigger(String name)
    
public  AbstractCommandcreateCommandDropView(String viewname)
    
public  ModifyColumncreateCommandModifyColumn(String tableName)
    
public  RemoveColumncreateCommandRemoveColumn(String tableName)
    
public  RenameColumncreateCommandRenameColumn(String tableName)
    
public  RenameTablecreateCommandRenameTable(String tableName, String newName)
    
public  RenameViewcreateCommandRenameView(String tableName, String newName)
    
public  MapgetCommandProperties(String command)
    
public  DBConnectiongetConnection()
    
public  ConnectiongetJDBCConnection()
     Returns JDBC connection. Commands must test if the connection is not open yet; if you simply call openJDBCConnection without test (and the connection will be open by user), a DDLException throws.
public  DatabaseMetaDatagetMetaData()
    
public  StringgetMetaDataAdaptorClassName()
    
public  MapgetProperties()
    
public  DatabaseSpecificationFactorygetSpecificationFactory()
    
public  StringgetType(int type)
    
public static  intgetType(String type)
    
public  MapgetTypeMap()
    
public  ConnectionopenJDBCConnection()
     Opens JDBC Connection. This method usually calls command when it need to process something.
public  voidsetMetaDataAdaptorClassName(String name)
    
public  voidsetSpecificationFactory(DatabaseSpecificationFactory fac)
    

Field Detail
ADD_COLUMN
final public static String ADD_COLUMN(Code)



ADD_CONSTRAINT
final public static String ADD_CONSTRAINT(Code)



COMMENT_TABLE
final public static String COMMENT_TABLE(Code)



COMMENT_VIEW
final public static String COMMENT_VIEW(Code)



CREATE_FUNCTION
final public static String CREATE_FUNCTION(Code)



CREATE_INDEX
final public static String CREATE_INDEX(Code)



CREATE_PROCEDURE
final public static String CREATE_PROCEDURE(Code)



CREATE_TABLE
final public static String CREATE_TABLE(Code)



CREATE_TRIGGER
final public static String CREATE_TRIGGER(Code)



CREATE_VIEW
final public static String CREATE_VIEW(Code)



DROP_CONSTRAINT
final public static String DROP_CONSTRAINT(Code)



DROP_FUNCTION
final public static String DROP_FUNCTION(Code)



DROP_INDEX
final public static String DROP_INDEX(Code)



DROP_PROCEDURE
final public static String DROP_PROCEDURE(Code)



DROP_TABLE
final public static String DROP_TABLE(Code)



DROP_TRIGGER
final public static String DROP_TRIGGER(Code)



DROP_VIEW
final public static String DROP_VIEW(Code)



MODIFY_COLUMN
final public static String MODIFY_COLUMN(Code)



REMOVE_COLUMN
final public static String REMOVE_COLUMN(Code)



RENAME_COLUMN
final public static String RENAME_COLUMN(Code)



RENAME_TABLE
final public static String RENAME_TABLE(Code)



RENAME_VIEW
final public static String RENAME_VIEW(Code)



adaptorClass
String adaptorClass(Code)
Metadata adaptor



dmdAdaptor
DatabaseMetaData dmdAdaptor(Code)



factory
SpecificationFactory factory(Code)
Owned factory




Constructor Detail
Specification
public Specification(HashMap description)(Code)
Constructor



Specification
public Specification(HashMap description, Connection c)(Code)
Constructor




Method Detail
closeJDBCConnection
public void closeJDBCConnection() throws DDLException(Code)



createCommand
public DDLCommand createCommand(String commandName) throws CommandNotSupportedException(Code)
Creates command identified by commandName. Command names will include create/rename/drop table/view/index/column and comment table/column. It returns null if command specified by commandName was not found. Used system allows developers to extend db-specification files and simply address new commands (everybody can implement createXXXCommand()).



createCommand
public DDLCommand createCommand(String commandName, String tableName) throws CommandNotSupportedException(Code)
Creates command identified by commandName on table tableName. Returns null if command specified by commandName was not found. It does not check tableName existency; it simply waits for relevant execute() command which fires SQLException.



createCommandAddColumn
public AddColumn createCommandAddColumn(String tableName) throws CommandNotSupportedException(Code)
Add column



createCommandCommentTable
public CommentTable createCommandCommentTable(String tableName, String comment) throws CommandNotSupportedException(Code)
Comment table command
Parameters:
  tableName - Name of the table
Parameters:
  comment - New comment



createCommandCommentView
public CommentView createCommandCommentView(String viewName, String comment) throws CommandNotSupportedException(Code)
Comment view command
Parameters:
  tableName - Name of the view
Parameters:
  comment - New comment



createCommandCreateFunction
public CreateFunction createCommandCreateFunction(String name) throws CommandNotSupportedException(Code)
Create function
Parameters:
  viewname - Name of function



createCommandCreateIndex
public CreateIndex createCommandCreateIndex(String tableName) throws CommandNotSupportedException(Code)
Create index
Parameters:
  indexName - Name of index
Parameters:
  tableName - Name of the table



createCommandCreateProcedure
public CreateProcedure createCommandCreateProcedure(String name) throws CommandNotSupportedException(Code)
Create procedure
Parameters:
  viewname - Name of procedure



createCommandCreateTable
public CreateTable createCommandCreateTable(String tableName) throws CommandNotSupportedException(Code)
Create table command
Parameters:
  tableName - Name of the table



createCommandCreateTrigger
public CreateTrigger createCommandCreateTrigger(String name, String tablename, int timing) throws CommandNotSupportedException(Code)
Create trigger
Parameters:
  viewname - Name of trigger



createCommandCreateView
public CreateView createCommandCreateView(String viewname) throws CommandNotSupportedException(Code)
Create view
Parameters:
  viewname - Name of index



createCommandDropFunction
public AbstractCommand createCommandDropFunction(String name) throws CommandNotSupportedException(Code)
Drop function
Parameters:
  viewname - Name of function



createCommandDropIndex
public DropIndex createCommandDropIndex(String tablename) throws CommandNotSupportedException(Code)
Drop index
Parameters:
  indexName - Name of index



createCommandDropProcedure
public AbstractCommand createCommandDropProcedure(String name) throws CommandNotSupportedException(Code)
Drop procedure
Parameters:
  viewname - Name of procedure



createCommandDropTable
public AbstractCommand createCommandDropTable(String tableName) throws CommandNotSupportedException(Code)
Drop table command
Parameters:
  tableName - Name of the table



createCommandDropTrigger
public AbstractCommand createCommandDropTrigger(String name) throws CommandNotSupportedException(Code)
Drop trigger
Parameters:
  viewname - Name of trigger



createCommandDropView
public AbstractCommand createCommandDropView(String viewname) throws CommandNotSupportedException(Code)
Drop view
Parameters:
  viewname - Name of index



createCommandModifyColumn
public ModifyColumn createCommandModifyColumn(String tableName) throws CommandNotSupportedException(Code)
Modify column



createCommandRemoveColumn
public RemoveColumn createCommandRemoveColumn(String tableName) throws CommandNotSupportedException(Code)
Remove column
Parameters:
  tableName - Name of the table



createCommandRenameColumn
public RenameColumn createCommandRenameColumn(String tableName) throws CommandNotSupportedException(Code)
Rename column



createCommandRenameTable
public RenameTable createCommandRenameTable(String tableName, String newName) throws CommandNotSupportedException(Code)
Drop table command
Parameters:
  tableName - Name of the table



createCommandRenameView
public RenameView createCommandRenameView(String tableName, String newName) throws CommandNotSupportedException(Code)
Drop table command
Parameters:
  tableName - Name of the table



getCommandProperties
public Map getCommandProperties(String command)(Code)
Returns command description



getConnection
public DBConnection getConnection()(Code)
Returns used connection



getJDBCConnection
public Connection getJDBCConnection()(Code)
Returns JDBC connection. Commands must test if the connection is not open yet; if you simply call openJDBCConnection without test (and the connection will be open by user), a DDLException throws. This is a self-checking mechanism; you must always close used connection.



getMetaData
public DatabaseMetaData getMetaData() throws SQLException(Code)
Returns database metadata



getMetaDataAdaptorClassName
public String getMetaDataAdaptorClassName()(Code)



getProperties
public Map getProperties()(Code)
Returns all database properties



getSpecificationFactory
public DatabaseSpecificationFactory getSpecificationFactory()(Code)



getType
public String getType(int type)(Code)
Returns DBType where maps specified java type



getType
public static int getType(String type)(Code)
Returns DBType where maps specified java type



getTypeMap
public Map getTypeMap()(Code)
Returns type map



openJDBCConnection
public Connection openJDBCConnection() throws DDLException(Code)
Opens JDBC Connection. This method usually calls command when it need to process something. But you can call it explicitly and leave connection open until last command gets executed. Don't forget to close it.



setMetaDataAdaptorClassName
public void setMetaDataAdaptorClassName(String name)(Code)



setSpecificationFactory
public void setSpecificationFactory(DatabaseSpecificationFactory fac)(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.