|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.sqlbuilder.views.source.SQLBuilderDBProposalsService
public class SQLBuilderDBProposalsService
This class extends SQLDBProposalsService in the SQLEditor package in order to override the "populate" method. In the SQL Builder context we don't want to do a "reestablishConnection" action, since that momentarily pops up a progress dialog even when the connection is already established. This interferes with the content assist popup and causes the SQL validation to kick in.
Constructor Summary | |
---|---|
SQLBuilderDBProposalsService(ISQLEditorConnectionInfo connInfo)
Constructs an instance of this class with the given ISQLEditorConnectionInfo object. |
|
SQLBuilderDBProposalsService(ISQLEditorConnectionInfo connInfo,
java.lang.String schemaName)
Constructs an instance of this class with the given ISQLEditorConnectionInfo object and default (implied) schema name. |
Method Summary | |
---|---|
ISQLEditorConnectionInfo |
getConnectionInfo()
Gets the ISQLEditorConnectionInfo used to provide content assist. |
java.util.List |
getDBProposals()
Gets the list of SQLDBProposal objects for the content assist proposals. |
java.lang.String |
getSchemaName()
Gets the default (implied) schema name. |
boolean |
populate(java.util.List tokenList)
Populates the list database of database object proposals (schemas, tables, columns) using given list of tokens (DB identifiers) indicating the start of the expression for which the user wants DB proposals. |
void |
setSchemaName(java.lang.String schemaName)
Sets the default (implied) schema name to the given name. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLBuilderDBProposalsService(ISQLEditorConnectionInfo connInfo)
ISQLEditorConnectionInfo
object.
connInfo
- the ISQLEditorConnectionInfo
object to usepublic SQLBuilderDBProposalsService(ISQLEditorConnectionInfo connInfo, java.lang.String schemaName)
ISQLEditorConnectionInfo
object and default (implied) schema name.
connInfo
- the ISQLEditorConnectionInfo
object to useschemaName
- the default (implied) schema nameMethod Detail |
---|
public ISQLEditorConnectionInfo getConnectionInfo()
ISQLEditorConnectionInfo
used to provide content assist.
Implements ISQLDBProposalsService
interface.
ISQLEditorConnectionInfo
objectISQLDBProposalsService#getConnectionInfo()
public java.util.List getDBProposals()
SQLDBProposal
objects for the content assist proposals.
Implements ISQLDBProposalsService
interface.
ISQLDBProposalsService.getDBProposals()
public java.lang.String getSchemaName()
ISQLDBProposalsService
interface.
ISQLDBProposalsService#getSchemaName()
public boolean populate(java.util.List tokenList)
ISQLDBProposalsService
interface.
This method overrides the superclass method to not try to reestablish a
connection. We assume that the connection is available.
tokenList
- list of strings indicating the start of the expression for
which the user wants DB proposals
SQLDBProposalsService#populate()
,
ISQLDBProposalsService#populate()
public void setSchemaName(java.lang.String schemaName)
schemaName
- the default (implied) schema name to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |