org.eclipse.jpt.core
Interface JpaDataSource

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable, JpaNode, Model

public interface JpaDataSource
extends JpaNode

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_NAME_PROPERTY
          ID string used when connectionProfileName property is changed
static java.lang.String CONNECTION_PROFILE_PROPERTY
          ID string used when connectionProfile property is changed
 
Method Summary
 boolean connectionProfileIsActive()
           
 void dispose()
           
 ConnectionProfile getConnectionProfile()
          The data source's connection profile should never be null.
 java.lang.String getConnectionProfileName()
          Return the data source's connection profile name.
 boolean hasAConnection()
           
 void setConnectionProfileName(java.lang.String connectionProfileName)
          Set the data source's connection profile name.
 
Methods inherited from interface org.eclipse.jpt.core.JpaNode
getJpaProject, getParent, getResource
 
Methods inherited from interface org.eclipse.jpt.utility.model.Model
addCollectionChangeListener, addCollectionChangeListener, addListChangeListener, addListChangeListener, addPropertyChangeListener, addPropertyChangeListener, addStateChangeListener, addTreeChangeListener, addTreeChangeListener, removeCollectionChangeListener, removeCollectionChangeListener, removeListChangeListener, removeListChangeListener, removePropertyChangeListener, removePropertyChangeListener, removeStateChangeListener, removeTreeChangeListener, removeTreeChangeListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

CONNECTION_PROFILE_NAME_PROPERTY

static final java.lang.String CONNECTION_PROFILE_NAME_PROPERTY
ID string used when connectionProfileName property is changed

See Also:
Model.addPropertyChangeListener(String, org.eclipse.jpt.utility.model.listener.PropertyChangeListener), Constant Field Values

CONNECTION_PROFILE_PROPERTY

static final java.lang.String CONNECTION_PROFILE_PROPERTY
ID string used when connectionProfile property is changed

See Also:
Model.addPropertyChangeListener(String, org.eclipse.jpt.utility.model.listener.PropertyChangeListener), Constant Field Values
Method Detail

getConnectionProfileName

java.lang.String getConnectionProfileName()
Return the data source's connection profile name. The connection profile is looked up based on this setting.


setConnectionProfileName

void setConnectionProfileName(java.lang.String connectionProfileName)
Set the data source's connection profile name. The connection profile is looked up based on this setting.


getConnectionProfile

ConnectionProfile getConnectionProfile()
The data source's connection profile should never be null. If we do not have a connection, return a "null" connection profile.


connectionProfileIsActive

boolean connectionProfileIsActive()

hasAConnection

boolean hasAConnection()

dispose

void dispose()