|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines all the connection information require by a SQLEditor
.
Method Summary | |
java.lang.String |
encode()
Encodes the given ISQLEditorConnectionInfo object for persistency. |
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.lang.String |
getDatabaseName()
Gets the database name associated with this input. |
DatabaseVendorDefinition |
getDatabaseVendorDefinition()
Gets the DatabaseVendorDefinition object associated with this input. |
DatabaseVendorDefinitionId |
getDatabaseVendorDefinitionId()
Gets the DatabaseVendorDefinitionId object associated with this input. |
java.lang.String |
getDefaultSchemaName()
Gets the default schema name to use with the connection or database associated with this input. |
java.lang.String |
getName()
Gets a String representing this object. |
int |
getProfileStatus()
|
java.sql.Connection |
getSharedConnection()
Retrieves the shared connection. |
boolean |
isConnected()
|
void |
setConnectionProfileName(java.lang.String profileName)
Sets the IConnectionProfile name associated with this input to the given
object. |
void |
setDatabase(Database database)
Sets the Database object associated with this input to the
given object. |
void |
setDatabaseVendorDefinitionId(DatabaseVendorDefinitionId dbVendorDefId)
Sets the DatabaseVendorDefinitionId associated with this input to the given
object. |
void |
setDefaultSchemaName(java.lang.String schemaName)
Sets the default schema name to use with the connection or database associated with this input. |
void |
setProfileStatus(int status)
|
Method Detail |
public java.lang.String getName()
public DatabaseVendorDefinition getDatabaseVendorDefinition()
DatabaseVendorDefinition
object associated with this input.
The DatabaseVendorDefinition
object contains the information needed
to do parsing, syntax highlighting, and syntax validation.
DatabaseVendorDefinition
object associated with this input, can never be null.
A default DatabaseVendorDefinition
object will be return if not specified.public DatabaseVendorDefinitionId getDatabaseVendorDefinitionId()
DatabaseVendorDefinitionId
object associated with this input.
The DatabaseVendorDefinitionId
object identifies a DatabaseVendorDefinition
object
DatabaseVendorDefinitionId
object associated with this input, can never be null.
A default DatabaseVendorDefinitionId
object will be return if not specified.public IConnectionProfile getConnectionProfile()
IConnectionProfile
object associated with this input.
The IConnectionProfile
object contains the information needed
to connect to a database.
IConnectionProfile
object associated with this input
or null
if none or profile name is invalidpublic java.lang.String getConnectionProfileName()
IConnectionProfile
name associated with this input.
The IConnectionProfile
object contains the information needed
to connect to a database.
IConnectionProfile
name associated with this input
or null
if nonepublic Database getDatabase()
Database
object associated with this input. The
Database
object provides access to database metadata (catalog)
information.
Database
object associated with this input, or
null
if nonepublic java.lang.String getDatabaseName()
null
if nonegetDatabase()
public java.lang.String getDefaultSchemaName()
public void setConnectionProfileName(java.lang.String profileName)
IConnectionProfile
name associated with this input to the given
object.
profileName
- the IConnectionProfile
name to setpublic void setDatabase(Database database)
Database
object associated with this input to the
given object.
database
- the Database
object to setpublic void setDefaultSchemaName(java.lang.String schemaName)
public void setDatabaseVendorDefinitionId(DatabaseVendorDefinitionId dbVendorDefId)
DatabaseVendorDefinitionId
associated with this input to the given
object.
dbVendorDefId
- the DatabaseVendorDefinitionId
object to setpublic java.sql.Connection getSharedConnection()
public java.lang.String encode()
ISQLEditorConnectionInfo
object for persistency.
decode()
public int getProfileStatus()
public void setProfileStatus(int status)
public boolean isConnected()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |