|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.sqleditor.SQLEditorConnectionInfo
org.eclipse.datatools.sqltools.sqlbuilder.model.SQLBuilderConnectionInfo
public class SQLBuilderConnectionInfo
This class extends SQLEditorConnectionInfo so that a ConnectionInfo object can be constructed from a ConnectionProfile.
Field Summary |
---|
Fields inherited from class org.eclipse.datatools.sqltools.sqleditor.SQLEditorConnectionInfo |
---|
DEFAULT_SQLEDITOR_CONNECTION_INFO |
Constructor Summary | |
---|---|
SQLBuilderConnectionInfo(IConnectionProfile connectionProfile)
Constructs a SQLBuilderConnectionInfo by
ConnectionProfile . |
Method Summary | |
---|---|
java.lang.String |
encode()
Encodes the given SQLBuilderConnectionInfo object for persistence |
IConnectionProfile |
getConnectionProfile()
Gets the IConnectionProfile object associated with this input. |
java.lang.String |
getConnectionProfileName()
Gets the IConnectionProfile name associated with this input. |
Database |
getDatabase()
Gets the Database object associated with this input. |
java.sql.Connection |
getSharedConnection()
Retrieves the sharable connection from IControlConnection, which in turn delegates to the connectivity layer. |
Methods inherited from class org.eclipse.datatools.sqltools.sqleditor.SQLEditorConnectionInfo |
---|
decode, getDatabaseName, getDatabaseVendorDefinition, getDatabaseVendorDefinitionId, getDefaultSchemaName, getName, getProfileStatus, isConnected, setConnectionProfileName, setDatabase, setDatabaseName, setDatabaseVendorDefinitionId, setDefaultSchemaName, setProfileStatus |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLBuilderConnectionInfo(IConnectionProfile connectionProfile)
SQLBuilderConnectionInfo
by
ConnectionProfile
.
connectionProfile
- IConnectionProfile
Method Detail |
---|
public IConnectionProfile getConnectionProfile()
ISQLEditorConnectionInfo
IConnectionProfile
object associated with this input.
The IConnectionProfile
object contains the information needed
to connect to a database.
getConnectionProfile
in interface ISQLEditorConnectionInfo
getConnectionProfile
in class SQLEditorConnectionInfo
IConnectionProfile
object associated with this input
or null
if none or profile name is invalidpublic java.lang.String getConnectionProfileName()
ISQLEditorConnectionInfo
IConnectionProfile
name associated with this input.
The IConnectionProfile
object contains the information needed
to connect to a database.
getConnectionProfileName
in interface ISQLEditorConnectionInfo
getConnectionProfileName
in class SQLEditorConnectionInfo
IConnectionProfile
name associated with this input
or null
if nonepublic Database getDatabase()
ISQLEditorConnectionInfo
Database
object associated with this input. The
Database
object provides access to database metadata (catalog)
information.
getDatabase
in interface ISQLEditorConnectionInfo
getDatabase
in class SQLEditorConnectionInfo
Database
object associated with this input, or
null
if nonepublic java.sql.Connection getSharedConnection()
getSharedConnection
in interface ISQLEditorConnectionInfo
getSharedConnection
in class SQLEditorConnectionInfo
public java.lang.String encode()
SQLBuilderConnectionInfo
object for persistence
encode
in interface ISQLEditorConnectionInfo
encode
in class SQLEditorConnectionInfo
info
-
decode()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |