Java Doc for DB2WizardPage.java in  » GIS » udig-1.1 » net » refractions » udig » catalog » internal » db2 » ui » 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 » GIS » udig 1.1 » net.refractions.udig.catalog.internal.db2.ui 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


net.refractions.udig.catalog.ui.preferences.AbstractProprietaryDatastoreWizardPage
   net.refractions.udig.catalog.internal.db2.ui.DB2WizardPage

DB2WizardPage
public class DB2WizardPage extends AbstractProprietaryDatastoreWizardPage implements UDIGConnectionPage(Code)
Specify DB2 database connection parameters.


author:
   Justin Deoliveira,Refractions Research Inc.,jdeolive@refractions.net
since:
   1.0.1


Field Summary
final public  StringIMAGE_KEY
    
 ArrayList<DataBaseConnInfo>dbData
    
 booleandirty
    
 ConnectionrealConnection
    

Constructor Summary
public  DB2WizardPage()
     Constructs a DB2 database connection wizard page.

Method Summary
protected  booleanareAllFieldsFilled()
     Checks if all user input fields are non-empty.
protected  booleanareDbFieldsFilled()
     Checks if port, host, userid, password and database name fields all are non-empty.
protected  GroupcreateAdvancedControl(Composite arg0)
     Perform additional processing when the GUI is created.
protected  voiddoCreateWizardPage(Composite parent)
    
public  booleandoIsPageComplete()
    
protected  booleanexcludeSchema(String schemaName)
     Always returns false as we want to keep all schema candidates.
protected  ConnectiongetConnection()
     Gets a connection to the DB2 database.
protected  StringgetDBText()
    
protected  DataStoreFactorySpigetDataStoreFactorySpi()
     Returns the DB2DataStoreFactory.
protected  StringgetDriversMessage()
    
protected  StringgetHostText()
    
public  StringgetId()
    
public  Map<String, Serializable>getParams()
     Returns the parameters Empty strings are converted to null to work correctly with factory.canProcess.
protected  StringgetPassText()
    
protected  StringgetPortText()
    
protected  AbstractProprietaryJarPreferencePagegetPreferencePage()
    
public  List<IService>getResources(IProgressMonitor monitor)
     Creates the DB2 service so we can do real work.
protected  StringgetRestartMessage()
    
protected  StringgetSchema()
     Gets the selected schema value.
public  List<URL>getURLs()
     This method does nothing.
protected  StringgetUserText()
     Gets the user value.
protected  booleanhasSchema()
     DB2 always requires the schema.
protected  booleanisDBCombo()
     DB2 doesn't allow database name selection from a list.
protected  booleanisHostCombo()
     DB2 allows a host selection list.
protected  voidpopulateSchema()
     Fills the combo-box with the schema values available for the specified database.
protected  voidsetDBText(String value)
     Sets the database text field.
protected  voidsetPassText(String value)
     Sets the password text field.
protected  voidsetPortText(String value)
     Sets the port text field.
protected  voidsetUserText(String value)
     Sets the userid text field.

Field Detail
IMAGE_KEY
final public String IMAGE_KEY(Code)
DB2WizardPage IMAGE_KEY field - not sure what it is used for



dbData
ArrayList<DataBaseConnInfo> dbData(Code)



dirty
boolean dirty(Code)



realConnection
Connection realConnection(Code)




Constructor Detail
DB2WizardPage
public DB2WizardPage()(Code)
Constructs a DB2 database connection wizard page. Reads any settings that may have been saved from a previous session.




Method Detail
areAllFieldsFilled
protected boolean areAllFieldsFilled()(Code)
Checks if all user input fields are non-empty. true if all needed fields are non-empty.



areDbFieldsFilled
protected boolean areDbFieldsFilled()(Code)
Checks if port, host, userid, password and database name fields all are non-empty. true if all needed fields are non-empty.



createAdvancedControl
protected Group createAdvancedControl(Composite arg0)(Code)
Perform additional processing when the GUI is created. Sets the default value for the port field and disables the schema field.
Parameters:
  arg0 - null



doCreateWizardPage
protected void doCreateWizardPage(Composite parent)(Code)



doIsPageComplete
public boolean doIsPageComplete()(Code)



excludeSchema
protected boolean excludeSchema(String schemaName)(Code)
Always returns false as we want to keep all schema candidates.
Parameters:
  schemaName - false



getConnection
protected Connection getConnection()(Code)
Gets a connection to the DB2 database. The port, host, userid, password and database name must have been specified in order for the connection to succeed. a database Connection
throws:
  Exception -



getDBText
protected String getDBText()(Code)



getDataStoreFactorySpi
protected DataStoreFactorySpi getDataStoreFactorySpi()(Code)
Returns the DB2DataStoreFactory. the DB2DataStoreFactory



getDriversMessage
protected String getDriversMessage()(Code)



getHostText
protected String getHostText()(Code)



getId
public String getId()(Code)
Returns a string with the name of the DB2 plugin the DB2 plugin name



getParams
public Map<String, Serializable> getParams()(Code)
Returns the parameters Empty strings are converted to null to work correctly with factory.canProcess. a map of parameter values



getPassText
protected String getPassText()(Code)



getPortText
protected String getPortText()(Code)



getPreferencePage
protected AbstractProprietaryJarPreferencePage getPreferencePage()(Code)



getResources
public List<IService> getResources(IProgressMonitor monitor) throws Exception(Code)
Creates the DB2 service so we can do real work. Saves the values of text fields from the GUI so that they can be used the next time this GUI page is displayed.
Parameters:
  monitor - a List with the DB2 service
throws:
  Exception -



getRestartMessage
protected String getRestartMessage()(Code)



getSchema
protected String getSchema()(Code)
Gets the selected schema value. field text contents



getURLs
public List<URL> getURLs()(Code)
This method does nothing. TODO: perhaps return a jdbc url?



getUserText
protected String getUserText()(Code)
Gets the user value. field text contents



hasSchema
protected boolean hasSchema()(Code)
DB2 always requires the schema. true



isDBCombo
protected boolean isDBCombo()(Code)
DB2 doesn't allow database name selection from a list. false



isHostCombo
protected boolean isHostCombo()(Code)
DB2 allows a host selection list. true



populateSchema
protected void populateSchema()(Code)
Fills the combo-box with the schema values available for the specified database. The DB2 catalog table db2gse.st_geometry_columns is used to get a list of all the schema values associated with tables that have spatial columns.



setDBText
protected void setDBText(String value)(Code)
Sets the database text field.
Parameters:
  value -



setPassText
protected void setPassText(String value)(Code)
Sets the password text field.
Parameters:
  value -



setPortText
protected void setPortText(String value)(Code)
Sets the port text field.
Parameters:
  value -



setUserText
protected void setUserText(String value)(Code)
Sets the userid text field.
Parameters:
  value -



Methods inherited from net.refractions.udig.catalog.ui.preferences.AbstractProprietaryDatastoreWizardPage
final public void createControl(Composite parent)(Code)(Java Doc)
abstract protected void doCreateWizardPage(Composite parent)(Code)(Java Doc)
abstract protected boolean doIsPageComplete()(Code)(Java Doc)
abstract protected String getDriversMessage()(Code)(Java Doc)
abstract protected AbstractProprietaryJarPreferencePage getPreferencePage()(Code)(Java Doc)
abstract protected String getRestartMessage()(Code)(Java Doc)
final public boolean isPageComplete()(Code)(Java Doc)

w___w__w__._j__a_va2_s_.co___m_ | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.