|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectDataSourceDesignSessionBase
org.eclipse.datatools.connectivity.oda.design.ui.designsession.DataSourceDesignSession
An UI design session for use by an ODA host designer to interact and communicate with custom ODA UI extensions to create or edit an extended ODA data source design instance.
Nested Class Summary | |
static interface |
DataSourceDesignSession.IDesignNameValidator
The public interface for call-back to an ODA design name validator provided by an ODA consumer application to validate the name of a data source design defined in the ODA connection profile selection page. |
static class |
DataSourceDesignSession.ProfileReference
Represents the reference information of an external connection profile. |
Method Summary | |
OdaDesignSession |
cancel()
Performs cancel on this design session. |
static OdaDesignSession |
createNewDesignFromProfile(java.lang.String odaDataSourceId,
java.lang.String newDataSourceName,
DataSourceDesignSession.ProfileReference profileRef)
Creates a design session with a new data source design, whose properties and their values are copied from, or referenced to, the given profile reference. |
OdaDesignSession |
finish()
Performs finish on this design session to create or edit its data source design. |
PropertyPage |
getEditorPage()
Returns a customized editor page for use within a design session to edit an extended ODA data source design instance. |
IAdaptable |
getEditPropertyPageElement()
Returns a customized editor page's adaptable element that represents the the extended ODA data source design instance that is being edited. |
IWizard |
getNewWizard()
Returns an ODA wizard for use within this design session to create a new, extended ODA data source design instance. |
PropertyPage |
getProfileSelectionPropertyPage()
Returns the property page that allows an user to update the selection of a connection profile. |
DesignSessionRequest |
getRequest()
Returns the session request that has started this design session. |
IWizardPage |
getWizardStartingPage()
Returns a customized starting wizard page for use within this design session to create a new, extended ODA data source design instance. |
void |
restartNewDesign(java.lang.String odaDataSourceId,
java.lang.String newDataSourceName,
DataSourceDesignSession.ProfileReference profileRef,
DesignSessionRequest request)
Restarts the design session to create a new data source design instance with the given name for the given ODA data source type, and initializes with the properties specified in the given profile instance. |
void |
setDesignNameValidator(DataSourceDesignSession.IDesignNameValidator validator)
Assigns the specified design name validator to the wizard page that collects user input of a design name. |
void |
setUseProfileSelectionPage(boolean use)
|
static DataSourceDesignSession |
startEditDesign(DesignSessionRequest request)
Requests to start a design session to edit a data source design, as specified in the given ODA design session request. |
static DataSourceDesignSession |
startEditDesign(DesignSessionRequest request,
DataSourceEditorPage editorPage)
Requests to start a design session with the given editor page to edit a data source design, as specified in the given ODA design session request. |
static DataSourceDesignSession |
startNewDesign(java.lang.String odaDataSourceId,
java.lang.String newDataSourceName)
Starts a design session to create a new data source design instance with the given name for the given ODA data source type. |
static DataSourceDesignSession |
startNewDesign(java.lang.String odaDataSourceId,
java.lang.String newDataSourceName,
DataSourceDesignSession.ProfileReference profileRef,
DesignSessionRequest request)
Starts a design session to create a new data source design instance with the given name for the given ODA data source type, and initializes with the properties specified in the given profile instance. |
static DataSourceDesignSession |
startNewDesignFromProfile()
Starts a design session to create a new data source design instance, whose properties and their values are copied from, or referenced to, the given profile instance reference. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static DataSourceDesignSession startNewDesign(java.lang.String odaDataSourceId, java.lang.String newDataSourceName) throws OdaException
odaDataSourceId
- an ODA data source extension element idnewDataSourceName
- a unique name that identifies a
data source design instance
OdaException
#startNewDesign(String, String, ProfileReference, DesignSessionRequest)
public static DataSourceDesignSession startNewDesign(java.lang.String odaDataSourceId, java.lang.String newDataSourceName, DataSourceDesignSession.ProfileReference profileRef, DesignSessionRequest request) throws OdaException
odaDataSourceId
- an ODA data source extension element idnewDataSourceName
- a unique name that identifies a
data source design instanceprofileRef
- optional reference to an existing profile instance
kept in an external profile storage file;
may be null if no reference to an existing profilerequest
- optional design session request specification,
such as session's edit state and locale;
may be null for an editable session
in the default system locale
OdaException
public static DataSourceDesignSession startNewDesignFromProfile()
public void restartNewDesign(java.lang.String odaDataSourceId, java.lang.String newDataSourceName, DataSourceDesignSession.ProfileReference profileRef, DesignSessionRequest request) throws OdaException
odaDataSourceId
- newDataSourceName
- profileRef
- request
-
OdaException
#startNewDesign(String, String, ProfileReference, DesignSessionRequest)
public static DataSourceDesignSession startEditDesign(DesignSessionRequest request) throws OdaException
request
- a design session request, must contain
a data source design to edit
OdaException
startEditDesign(DesignSessionRequest, DataSourceEditorPage)
public static DataSourceDesignSession startEditDesign(DesignSessionRequest request, DataSourceEditorPage editorPage) throws OdaException
request
- a design session request, must contain
a data source design to editeditorPage
- the property page instance created
by the ODA host to edit the design;
may be null, in which case the session will
create a custom page
OdaException
public static OdaDesignSession createNewDesignFromProfile(java.lang.String odaDataSourceId, java.lang.String newDataSourceName, DataSourceDesignSession.ProfileReference profileRef) throws OdaException
odaDataSourceId
- an ODA data source extension element idnewDataSourceName
- unique name to assign to new data source instance;
may be null or empty, in which case the profile name
is appliedprofileRef
- reference to an existing profile instance
kept in an external profile storage file
OdaException
public DesignSessionRequest getRequest()
public OdaDesignSession finish() throws OdaException
OdaException
public OdaDesignSession cancel()
public void setUseProfileSelectionPage(boolean use)
public void setDesignNameValidator(DataSourceDesignSession.IDesignNameValidator validator)
validator
- interface for a call-back validatorpublic IWizard getNewWizard() throws OdaException
OdaException
public IWizardPage getWizardStartingPage() throws OdaException
OdaException
public PropertyPage getProfileSelectionPropertyPage() throws OdaException
OdaException
public PropertyPage getEditorPage() throws OdaException
OdaException
public IAdaptable getEditPropertyPageElement() throws OdaException
OdaException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |