|
|||||||||||
| 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.DesignSessionUtil
An utility class to help an ODA host designer or an ODA driver's customized designer to manipulate ODA Design API objects during an ODA design session.
| Method Summary | |
static Properties |
createDataSourceNonPublicProperties(java.lang.String odaDataSourceId,
java.util.Properties utilProps)
Creates an ODA design property collection for those given properties that are not defined in an ODA runtime extension manifest. |
static Properties |
createDataSourcePublicProperties(java.lang.String odaDataSourceId,
java.util.Properties utilProps)
Creates an ODA design property collection for the public properties defined in an ODA runtime extension manifest. |
static IConnectionProfile |
getLinkedProfile(DataSourceDesign dataSourceDesign)
Returns the connection profile instance externally referenced, i.e. |
static java.util.Map |
getProfileIdentifiers(java.lang.String odaDataSourceId,
java.io.File storageFile)
Returns a collection of identifiers of all connection profile instances for the given ODA data source extension type. |
static boolean |
hasValidOdaDesignUIExtension(java.lang.String odaDataSourceId)
Indicates whether the given ODA data source type has implemented a valid org.eclipse.datatools.connectivity.oda.design.ui.dataSource
extension point. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static Properties createDataSourcePublicProperties(java.lang.String odaDataSourceId,
java.util.Properties utilProps)
throws OdaException
odaDataSourceId - the ODA extension data source element IDutilProps - java.util.properties, such as those collected from a connection profile
OdaException
public static Properties createDataSourceNonPublicProperties(java.lang.String odaDataSourceId,
java.util.Properties utilProps)
throws OdaException
odaDataSourceId - the ODA extension data source element IDutilProps - a java.util.Properties collection,
such as those collected from a connection profile
OdaException
public static IConnectionProfile getLinkedProfile(DataSourceDesign dataSourceDesign)
throws OdaException
dataSourceDesign -
OdaException - if referenced connection profile is not foundpublic static boolean hasValidOdaDesignUIExtension(java.lang.String odaDataSourceId)
org.eclipse.datatools.connectivity.oda.design.ui.dataSource
extension point.
odaDataSourceId - an ODA data source extension type's element id
public static java.util.Map getProfileIdentifiers(java.lang.String odaDataSourceId,
java.io.File storageFile)
throws OdaException
odaDataSourceId - an ODA data source extension type's element idstorageFile - 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
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||