|
||||||||||
| 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()
ISQLEditorConnectionInfoIConnectionProfile object associated with this input.
The IConnectionProfile object contains the information needed
to connect to a database.
getConnectionProfile in interface ISQLEditorConnectionInfogetConnectionProfile in class SQLEditorConnectionInfoIConnectionProfile object associated with this input
or null if none or profile name is invalidpublic java.lang.String getConnectionProfileName()
ISQLEditorConnectionInfoIConnectionProfile name associated with this input.
The IConnectionProfile object contains the information needed
to connect to a database.
getConnectionProfileName in interface ISQLEditorConnectionInfogetConnectionProfileName in class SQLEditorConnectionInfoIConnectionProfile name associated with this input
or null if nonepublic Database getDatabase()
ISQLEditorConnectionInfoDatabase object associated with this input. The
Database object provides access to database metadata (catalog)
information.
getDatabase in interface ISQLEditorConnectionInfogetDatabase in class SQLEditorConnectionInfoDatabase object associated with this input, or
null if nonepublic java.sql.Connection getSharedConnection()
getSharedConnection in interface ISQLEditorConnectionInfogetSharedConnection in class SQLEditorConnectionInfopublic java.lang.String encode()
SQLBuilderConnectionInfo object for persistence
encode in interface ISQLEditorConnectionInfoencode in class SQLEditorConnectionInfoinfo -
decode()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||