|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.datatools.connectivity.oda.design.ui.designsession.DataSourceSessionHelper
A helper to an ODA host designer to handle a design session used to create or edit an extended ODA data source design definition.
| Constructor Summary | |
DataSourceSessionHelper(java.lang.String odaDataSourceId)
Constructor of the helper class for the given type of ODA data source extension. |
|
| Method Summary | |
OdaDesignSession |
cancelDesignSession()
Performs cancel on the current ODA design session. |
OdaDesignSession |
createNewDesignFromProfile(java.lang.String newDataSourceName,
java.lang.String profileInstanceId,
java.io.File storageFile,
boolean linkToProfile)
Creates a design session with a new data source design, whose properties and their values are copied from, or referenced to, the given profile instance. |
OdaDesignSession |
finishEditDataSource()
Performs finish on the current ODA design session to edit a data source design. |
OdaDesignSession |
finishNewDesignSession()
Performs finish on the current ODA design session to create a new data source design. |
PropertyPage |
getEditorPage()
Returns the customized editor page for use in an ODA design session to edit an extended ODA data source design definition. |
IAdaptable |
getEditPropertyPageElement()
Returns the customized editor page's adaptable element for use in a Property dialog to edit an extended ODA data source design definition. |
Wizard |
getNewWizard()
Returns the ODA wizard for use in an ODA design session to create a new, extended ODA data source design definition. |
java.util.Map |
getProfileIdentifiers(java.io.File storageFile)
Returns a collection of identifiers of all connection profile instances for the helper's ODA data source extension type. |
static java.util.Map |
getProfileIdentifiers(java.lang.String odaDataSouceId,
java.io.File storageFile)
A static method that returns a collection of identifiers of all connection profile instances for the given ODA data source extension type. |
IWizardPage |
getWizardStartingPage()
Returns the customized starting wizard page for use in an ODA design session to create a new, extended ODA data source design definition. |
void |
startEditDataSource(OdaDesignSession requestSession)
Starts a design session to edit the data source design defined in the given ODA design session instance. |
void |
startEditDataSource(OdaDesignSession requestSession,
DataSourceEditorPage editorPage)
Starts a design session with the given editor page to edit the data source design defined in the given ODA design session instance. |
void |
startNewDesignSession(java.lang.String aDataSourceName)
Starts a design session to create a new data source definition with the given name for the data source design instance. |
void |
startNewDesignSession(java.lang.String newDataSourceName,
java.lang.String profileInstanceId,
java.io.File storageFile,
boolean linkToProfile)
Starts a design session to create a new data source definition with the properties specified in the given profile instance. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DataSourceSessionHelper(java.lang.String odaDataSourceId)
odaDataSourceId - an ODA data source extension element id| Method Detail |
public static java.util.Map getProfileIdentifiers(java.lang.String odaDataSouceId,
java.io.File storageFile)
throws OdaException
storageFile - a file that stores profile instances;
may be null, which means to use the
default DTP profiles storage file
Map containing the instance Id
and display name of all existing profiles of the given odaDataSourceId.
The connection profiles' instance Id and display name
are stored as the key and value strings in the returned Map instance.
Returns an empty collection if there are
no matching connection profiles found in given storageFile.
OdaException - if error in reading from given storageFile,
or in processing the found profiles
public java.util.Map getProfileIdentifiers(java.io.File storageFile)
throws OdaException
OdaException - if error in reading from given storageFile,
or in processing the found profilesgetProfileIdentifiers(String, File)
public Wizard getNewWizard()
throws OdaException
OdaException
public IWizardPage getWizardStartingPage()
throws OdaException
OdaException
public PropertyPage getEditorPage()
throws OdaException
OdaException
public IAdaptable getEditPropertyPageElement()
throws OdaException
OdaException
public void startNewDesignSession(java.lang.String aDataSourceName)
throws OdaException
aDataSourceName - a unique name that identifies a data source design instance
OdaException
public void startNewDesignSession(java.lang.String newDataSourceName,
java.lang.String profileInstanceId,
java.io.File storageFile,
boolean linkToProfile)
throws OdaException
profileInstanceId - profile instance id; such as the
instance id returned by the
getProfileIdentifiers methodstorageFile - a file that stores profile instances;
may be null, which means to use the
default DTP profiles storage filelinkToProfile - "true" indicates to maintain a link to the
given profile instance and storageFile, and applies its
latest properties values at run-time.
"false" indicates to work with a copy of the current properties
specified in the profile instance; any future
changes to the profile instance is not applied to
the data source design.
OdaException
public OdaDesignSession finishNewDesignSession()
throws OdaException
OdaException
public OdaDesignSession createNewDesignFromProfile(java.lang.String newDataSourceName,
java.lang.String profileInstanceId,
java.io.File storageFile,
boolean linkToProfile)
throws OdaException
profileInstanceId - profile instance id; such as the
instance id returned by the
getProfileIdentifiers methodstorageFile - a file that stores profile instances;
may be null, which means to use the
default DTP profiles storage filelinkToProfile - "true" indicates to maintain a link to the
given profile instance and storageFile, and applies its
latest properties values at run-time.
"false" indicates to work with a copy of the current properties
specified in the profile instance; any future
changes to the profile instance is not applied to
the data source design.
OdaException
public void startEditDataSource(OdaDesignSession requestSession)
throws OdaException
OdaException
public void startEditDataSource(OdaDesignSession requestSession,
DataSourceEditorPage editorPage)
throws OdaException
editorPage - the property page instance created
by the ODA host to edit the design
OdaException
public OdaDesignSession finishEditDataSource()
throws OdaException
OdaExceptionpublic OdaDesignSession cancelDesignSession()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||