|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.sqlbuilder.input.SQLBuilderEditorInput
public class SQLBuilderEditorInput
This class implements the ISQLEditorInput
interface using a string
for the SQL statement itself. This class is provided as a convenience for callers
of the SQL Builder who want to open it with a SQL statement as text.
There are constructors which allow you to pass in ISQLEditorConnectionInfo or
IConnectionProfile objects.
There are constructors which allow you to pass in an existing SQL statement in a
SQLStatementInfo object or to create new SQL statements by passing in
an integer to specify the statement type. The value must be
one of StatementHelper
's
STATEMENT_TYPE constants.
Constructor Summary | |
---|---|
SQLBuilderEditorInput(IConnectionProfile connectionProfile,
int statementType)
Creates an instance of this class with the given ConnectionProfile and StatementType. |
|
SQLBuilderEditorInput(IConnectionProfile connectionProfile,
ISQLStatementInfo sqlStatementInfo)
Creates an instance of this class with the given ConnectionProfile and SQLStatementInfo. |
|
SQLBuilderEditorInput(IConnectionProfile connectionProfile,
ISQLStatementInfo sqlStatementInfo,
IOmitSchemaInfo omitSchemaInfo)
Creates an instance of this class with the given ConnectionProfile, SQLStatementInfo and OmitSchemaInfo. |
|
SQLBuilderEditorInput(ISQLEditorConnectionInfo connectionInfo,
int statementType)
Creates an instance of this class with the given ConnectionInfo and StatementType. |
|
SQLBuilderEditorInput(ISQLEditorConnectionInfo connectionInfo,
ISQLStatementInfo sqlStatementInfo)
Creates an instance of this class with the given ConnectionInfo and SQLStatementInfo. |
|
SQLBuilderEditorInput(ISQLEditorConnectionInfo connectionInfo,
ISQLStatementInfo sqlStatementInfo,
IOmitSchemaInfo omitSchemaInfo)
Creates an instance of this class with the given ConnectionInfo and SQLStatementInfo. |
Method Summary | |
---|---|
boolean |
exists()
|
java.lang.Object |
getAdapter(java.lang.Class adapter)
|
ISQLEditorConnectionInfo |
getConnectionInfo()
Gets the ISQLEditorConnectionInfo associated with this input. |
IConnectionProfile |
getConnectionProfile()
Gets the IConnectionProfile associated with this input. |
java.lang.String |
getId()
Returns the unique identifier that distinguishes this editor input |
org.eclipse.jface.resource.ImageDescriptor |
getImageDescriptor()
|
ISQLBuilderEditorInputUsageOptions |
getInputUsageOptions()
Gets the usage options of the editor input. |
java.lang.String |
getName()
|
IOmitSchemaInfo |
getOmitSchemaInfo()
Gets the IOmitSchemaInfo associated with this input. |
org.eclipse.ui.IPersistableElement |
getPersistable()
|
java.lang.String |
getSQL()
Gets the SQLStatement contained in this input's File |
ISQLStatementInfo |
getSQLStatementInfo()
Gets the ISQLStatementInfo associated with this input. |
int |
getStatementType()
Gets the StatementType for in this input. |
java.lang.String |
getToolTipText()
|
IWindowStateInfo |
getWindowStateInfo()
Gets the window state information which stores the control states of the SQL Query Builder. |
boolean |
isConnectionRequired()
Returns whether database connection is required for this editor input to exist. |
void |
setConnectionInfo(ISQLEditorConnectionInfo connInfo)
Sets the ISQLEditorConnectionInfo associated with this input to the given
object. |
void |
setConnectionProfile(IConnectionProfile connProfile)
Sets the IConnectionProfile associated with this input to the given
object. |
void |
setInputUsageOptions(ISQLBuilderEditorInputUsageOptions options)
Sets the usage options of the editor input. |
void |
setOmitSchemaInfo(IOmitSchemaInfo omitSchemaInfo)
Sets the OmitSchemaInfo associated with this input to the given
object. |
void |
setSQLStatementInfo(ISQLStatementInfo sqlStatementInfo)
Sets the SQLStatementInfo associated with this input to the given
object. |
void |
setStatementType(int statementType)
Sets the StatementType for in this input. |
void |
setWindowStateInfo(IWindowStateInfo windowStateInfo)
Sets the window state information. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SQLBuilderEditorInput(ISQLEditorConnectionInfo connectionInfo, int statementType)
connectionInfo
- the ConnectionInfostatementType
- statement type is used for creating new statements.
The value must be
one of StatementHelper
's
STATEMENT_TYPE constants.public SQLBuilderEditorInput(IConnectionProfile connectionProfile, int statementType)
connectionProfile
- the ConnectionProfilestatementType
- statement type is used for creating new statements.
The value must be
one of StatementHelper
's
STATEMENT_TYPE constants.public SQLBuilderEditorInput(ISQLEditorConnectionInfo connectionInfo, ISQLStatementInfo sqlStatementInfo)
connectionInfo
- the ConnectionInfosqlStatementInfo
- the SQLStatementInfopublic SQLBuilderEditorInput(IConnectionProfile connectionProfile, ISQLStatementInfo sqlStatementInfo)
connectionProfile
- the ConnectionProfilesqlStatementInfo
- the SQLStatementInfopublic SQLBuilderEditorInput(ISQLEditorConnectionInfo connectionInfo, ISQLStatementInfo sqlStatementInfo, IOmitSchemaInfo omitSchemaInfo)
connectionInfo
- the ConnectionInfosqlStatementInfo
- the SQLStatementInfoomitSchemaInfo
- the OmitSchemaInfopublic SQLBuilderEditorInput(IConnectionProfile connectionProfile, ISQLStatementInfo sqlStatementInfo, IOmitSchemaInfo omitSchemaInfo)
connectionProfile
- the ConnectionProfilesqlStatementInfo
- the SQLStatementInfoomitSchemaInfo
- the OmitSchemaInfoMethod Detail |
---|
public ISQLEditorConnectionInfo getConnectionInfo()
ISQLEditorConnectionInfo
associated with this input.
getConnectionInfo
in interface ISQLBuilderEditorInput
getConnectionInfo
in interface ISQLEditorInput
ISQLEditorConnectionInfo
objectpublic void setConnectionInfo(ISQLEditorConnectionInfo connInfo)
ISQLEditorConnectionInfo
associated with this input to the given
object.
setConnectionInfo
in interface ISQLBuilderEditorInput
setConnectionInfo
in interface ISQLEditorInput
connInfo
- the ISQLEditorConnectionInfo
object to setpublic IConnectionProfile getConnectionProfile()
IConnectionProfile
associated with this input.
IConnectionProfile
objectpublic void setConnectionProfile(IConnectionProfile connProfile)
IConnectionProfile
associated with this input to the given
object.
connInfo
- the IConnectionProfile
object to setpublic void setOmitSchemaInfo(IOmitSchemaInfo omitSchemaInfo)
OmitSchemaInfo
associated with this input to the given
object.
setOmitSchemaInfo
in interface ISQLBuilderEditorInput
omitSchemaInfo
- the OmitSchemaInfo
object to setpublic IOmitSchemaInfo getOmitSchemaInfo()
IOmitSchemaInfo
associated with this input.
getOmitSchemaInfo
in interface ISQLBuilderEditorInput
IOmitSchemaInfo
objectpublic void setSQLStatementInfo(ISQLStatementInfo sqlStatementInfo)
SQLStatementInfo
associated with this input to the given
object.
sqlStatementInfo
- the ISQLStatementInfo
object to setpublic ISQLStatementInfo getSQLStatementInfo()
ISQLStatementInfo
associated with this input.
ISQLStatementInfo
objectpublic java.lang.String getSQL()
getSQL
in interface ISQLBuilderEditorInput
public int getStatementType()
StatementHelper
's
STATEMENT_TYPE constants.
public void setStatementType(int statementType)
StatementHelper
's
STATEMENT_TYPE constants.
public java.lang.String getId()
ISQLEditorInput
getId
in interface ISQLEditorInput
public boolean isConnectionRequired()
ISQLEditorInput
isConnectionRequired
in interface ISQLEditorInput
public boolean exists()
exists
in interface org.eclipse.ui.IEditorInput
public org.eclipse.jface.resource.ImageDescriptor getImageDescriptor()
getImageDescriptor
in interface org.eclipse.ui.IEditorInput
public java.lang.String getName()
getName
in interface org.eclipse.ui.IEditorInput
public org.eclipse.ui.IPersistableElement getPersistable()
getPersistable
in interface org.eclipse.ui.IEditorInput
public java.lang.String getToolTipText()
getToolTipText
in interface org.eclipse.ui.IEditorInput
public java.lang.Object getAdapter(java.lang.Class adapter)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
public IWindowStateInfo getWindowStateInfo()
ISQLBuilderEditorInput
getWindowStateInfo
in interface ISQLBuilderEditorInput
public void setWindowStateInfo(IWindowStateInfo windowStateInfo)
ISQLBuilderEditorInput
setWindowStateInfo
in interface ISQLBuilderEditorInput
public ISQLBuilderEditorInputUsageOptions getInputUsageOptions()
ISQLBuilderEditorInput
getInputUsageOptions
in interface ISQLBuilderEditorInput
public void setInputUsageOptions(ISQLBuilderEditorInputUsageOptions options)
ISQLBuilderEditorInput
setInputUsageOptions
in interface ISQLBuilderEditorInput
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |