|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionProfile
Database connection profile
Provisional API: This interface is part of an interim API that is still under development and expected to change significantly before reaching stability. It is available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.
| Field Summary | |
|---|---|
static java.lang.String |
CONNECTION_PROFILE_TYPE
|
static java.lang.String |
DATABASE_SAVE_PWD_PROP_ID
|
static java.lang.String |
DRIVER_DEFINITION_PROP_ID
|
static java.lang.String |
DRIVER_DEFINITION_TYPE_PROP_ID
|
static java.lang.String |
DRIVER_JAR_LIST_PROP_ID
|
| Fields inherited from interface org.eclipse.jpt.db.DatabaseObject |
|---|
DEFAULT_COMPARATOR, IDENTIFIER_TRANSFORMER, NAME_TRANSFORMER |
| Method Summary | |
|---|---|
void |
addConnectionListener(ConnectionListener listener)
Add the specified connection listener to the connection profile. |
boolean |
canWorkOffline()
Return whether the connection profile supports working offline and data has been saved for working offline. |
void |
connect()
Connect to the database. |
void |
disconnect()
Disconnect from the database. |
Database |
getDatabase()
Return the connection profile's database. |
java.lang.String |
getDatabaseName()
Return the default database name. |
java.lang.String |
getDatabaseProduct()
Return the database product name. |
java.lang.String |
getDatabaseVendor()
Return the database vendor. |
java.lang.String |
getDatabaseVersion()
Return the database version. |
java.lang.String |
getDriverClassName()
Return the driver class name. |
java.lang.String |
getDriverDefinitionID()
Return the ID of the associated Driver definition. |
java.lang.String |
getDriverJarList()
Return the jar list for the associated Driver as a comma-delimited string. |
java.lang.String |
getDriverName()
Return the name of the associated Driver definition. |
java.lang.String |
getInstanceID()
Return the connection profile's static ID. |
java.lang.String |
getProviderID()
Return ID of the provider managing the DTP profile. |
java.lang.String |
getURL()
Return the default connection URL. |
java.lang.String |
getUserName()
Return the default user name. |
java.lang.String |
getUserPassword()
Return the default user password. |
boolean |
isActive()
Return whether the profile is either connected to a live database session or working off-line (i.e. |
boolean |
isConnected()
Return whether the profile is connected to a live database session (i.e. |
boolean |
isDisconnected()
Return whether the profile is not connected to a live database session (i.e. |
boolean |
isInactive()
Return whether the profile is neither connected to a live database session nor working off-line (i.e. |
boolean |
isWorkingOffline()
Return whether the profile is working off-line (i.e. |
void |
removeConnectionListener(ConnectionListener listener)
Remove the specified connection listener from the connection profile. |
org.eclipse.core.runtime.IStatus |
saveWorkOfflineData()
Save the state of the connection profile for working in an offline mode. |
boolean |
supportsWorkOfflineMode()
Return whether the connection factories associated with the connection profile's provider support working offline. |
org.eclipse.core.runtime.IStatus |
workOffline()
Begin working off-line. |
| Methods inherited from interface org.eclipse.jpt.db.DatabaseObject |
|---|
getConnectionProfile, getIdentifier, getIdentifier, getName |
| Field Detail |
|---|
static final java.lang.String CONNECTION_PROFILE_TYPE
static final java.lang.String DRIVER_DEFINITION_PROP_ID
static final java.lang.String DRIVER_DEFINITION_TYPE_PROP_ID
static final java.lang.String DRIVER_JAR_LIST_PROP_ID
static final java.lang.String DATABASE_SAVE_PWD_PROP_ID
| Method Detail |
|---|
Database getDatabase()
getDatabase in interface DatabaseObjectjava.lang.String getProviderID()
java.lang.String getInstanceID()
java.lang.String getDatabaseName()
java.lang.String getDatabaseProduct()
java.lang.String getDatabaseVendor()
java.lang.String getDatabaseVersion()
java.lang.String getDriverClassName()
java.lang.String getURL()
java.lang.String getUserName()
java.lang.String getUserPassword()
java.lang.String getDriverDefinitionID()
java.lang.String getDriverJarList()
java.lang.String getDriverName()
boolean isActive()
isConnected(),
isWorkingOffline()boolean isInactive()
isActive()boolean isConnected()
isActive()boolean isDisconnected()
isConnected()void connect()
disconnect()void disconnect()
connect()boolean isWorkingOffline()
isActive()boolean supportsWorkOfflineMode()
org.eclipse.core.runtime.IStatus saveWorkOfflineData()
boolean canWorkOffline()
org.eclipse.core.runtime.IStatus workOffline()
void addConnectionListener(ConnectionListener listener)
void removeConnectionListener(ConnectionListener listener)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||