org.eclipse.datatools.connectivity.db.generic.ui
Class GenericDBProfileDetailsWizardPage

java.lang.Object
  extended by org.eclipse.jface.dialogs.DialogPage
      extended by org.eclipse.jface.wizard.WizardPage
          extended by org.eclipse.datatools.connectivity.internal.ui.wizards.BaseWizardPage
              extended by org.eclipse.datatools.connectivity.ui.wizards.ConnectionProfileDetailsPage
                  extended by org.eclipse.datatools.connectivity.db.generic.ui.GenericDBProfileDetailsWizardPage
All Implemented Interfaces:
org.eclipse.datatools.connectivity.internal.ui.wizards.ISkippable, org.eclipse.datatools.connectivity.internal.ui.wizards.ISummaryDataSource, org.eclipse.datatools.connectivity.internal.ui.wizards.IWizardAction, org.eclipse.help.IContextProvider, org.eclipse.jface.dialogs.IDialogPage, org.eclipse.jface.dialogs.IMessageProvider, org.eclipse.jface.wizard.IWizardPage

public class GenericDBProfileDetailsWizardPage
extends ConnectionProfileDetailsPage
implements org.eclipse.help.IContextProvider

This class gathers the properties for the generic DB connection profile.

Author:
brianf

Field Summary
 
Fields inherited from interface org.eclipse.help.IContextProvider
NONE, SELECTION
 
Fields inherited from interface org.eclipse.jface.dialogs.IMessageProvider
ERROR, INFORMATION, NONE, WARNING
 
Constructor Summary
GenericDBProfileDetailsWizardPage(java.lang.String pageName)
          Constructor
 
Method Summary
 void createControl(org.eclipse.swt.widgets.Composite parent)
           
 void createCustomControl(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
 org.eclipse.help.IContext getContext(java.lang.Object target)
           
 int getContextChangeMask()
           
 java.lang.String getDatabaseName()
          Get the database name
 java.lang.String getDBConnProps()
          Get the optional connection properties
 java.lang.String getDBPWD()
          Get the password
 java.lang.String getDBUID()
          Get the user name
 java.lang.String getDriverCategory()
           
 java.lang.String getDriverClass()
          Get the driver class
 java.lang.String getDriverDatabaseName()
          Get the sample database name from the driver instance.
 java.lang.String getDriverID()
          Get the driver ID
 java.lang.String getDriverURL()
          Get the sample URL from the driver instance.
 boolean getSaveDBPWD()
          Get the password
 java.lang.String getSearchExpression(java.lang.Object target)
           
 java.util.List getSummaryData()
           
 java.lang.String getURL()
          Get the URL for the CP
 java.lang.String getVendor()
          Get the vendor
 java.lang.String getVersion()
          Get the version
 void setDriverCategory(java.lang.String driverCategory)
          Sets the driver category that should be used for displaying available driver defnitions.
 void setErrorMessage(java.lang.String newMessage)
           
 
Methods inherited from class org.eclipse.datatools.connectivity.ui.wizards.ConnectionProfileDetailsPage
setCreateAutoConnectControls
 
Methods inherited from class org.eclipse.datatools.connectivity.internal.ui.wizards.BaseWizardPage
getSkippable, onSetActive, onWizardNext, setNeedMediation, setSkippable
 
Methods inherited from class org.eclipse.jface.wizard.WizardPage
canFlipToNextPage, getImage, getName, getNextPage, getPreviousPage, getShell, getWizard, isPageComplete, setDescription, setImageDescriptor, setMessage, setPageComplete, setPreviousPage, setTitle, setWizard, toString
 
Methods inherited from class org.eclipse.jface.dialogs.DialogPage
getControl, getDescription, getErrorMessage, getMessage, getMessageType, getTitle, performHelp, setMessage, setVisible
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.eclipse.jface.dialogs.IDialogPage
getControl, getDescription, getErrorMessage, getMessage, getTitle, performHelp, setVisible
 

Constructor Detail

GenericDBProfileDetailsWizardPage

public GenericDBProfileDetailsWizardPage(java.lang.String pageName)
Constructor

Parameters:
pageName -
Method Detail

createCustomControl

public void createCustomControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createCustomControl in class ConnectionProfileDetailsPage

getDriverURL

public java.lang.String getDriverURL()
Get the sample URL from the driver instance.

Returns:

getDriverDatabaseName

public java.lang.String getDriverDatabaseName()
Get the sample database name from the driver instance.

Returns:

getVendor

public java.lang.String getVendor()
Get the vendor

Returns:

getVersion

public java.lang.String getVersion()
Get the version

Returns:

getDriverClass

public java.lang.String getDriverClass()
Get the driver class

Returns:

getDBUID

public java.lang.String getDBUID()
Get the user name

Returns:

getDBPWD

public java.lang.String getDBPWD()
Get the password

Returns:

getSaveDBPWD

public boolean getSaveDBPWD()
Get the password

Returns:

getDBConnProps

public java.lang.String getDBConnProps()
Get the optional connection properties

Returns:

getDatabaseName

public java.lang.String getDatabaseName()
Get the database name

Returns:

getURL

public java.lang.String getURL()
Get the URL for the CP

Returns:

getDriverID

public java.lang.String getDriverID()
Get the driver ID

Returns:

getSummaryData

public java.util.List getSummaryData()
Specified by:
getSummaryData in interface org.eclipse.datatools.connectivity.internal.ui.wizards.ISummaryDataSource
Overrides:
getSummaryData in class org.eclipse.datatools.connectivity.internal.ui.wizards.BaseWizardPage

setErrorMessage

public void setErrorMessage(java.lang.String newMessage)
Overrides:
setErrorMessage in class org.eclipse.jface.wizard.WizardPage

getDriverCategory

public java.lang.String getDriverCategory()

setDriverCategory

public void setDriverCategory(java.lang.String driverCategory)
Sets the driver category that should be used for displaying available driver defnitions.

Parameters:
driverCategory -

getContext

public org.eclipse.help.IContext getContext(java.lang.Object target)
Specified by:
getContext in interface org.eclipse.help.IContextProvider
Overrides:
getContext in class ConnectionProfileDetailsPage

getContextChangeMask

public int getContextChangeMask()
Specified by:
getContextChangeMask in interface org.eclipse.help.IContextProvider
Overrides:
getContextChangeMask in class ConnectionProfileDetailsPage

getSearchExpression

public java.lang.String getSearchExpression(java.lang.Object target)
Specified by:
getSearchExpression in interface org.eclipse.help.IContextProvider
Overrides:
getSearchExpression in class ConnectionProfileDetailsPage

createControl

public void createControl(org.eclipse.swt.widgets.Composite parent)
Specified by:
createControl in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
createControl in class ConnectionProfileDetailsPage

dispose

public void dispose()
Specified by:
dispose in interface org.eclipse.jface.dialogs.IDialogPage
Overrides:
dispose in class org.eclipse.jface.dialogs.DialogPage