|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.sqltools.sqlbuilder.util.SQLStatementSupport
public class SQLStatementSupport
This class provides helpful methods for working with one or more SQL statements contained within a SQL script document.
Field Summary | |
---|---|
static java.lang.String |
CURRENT_STATEMENT_TERMINATOR
A property name the the statement terminator property for use in property change notification. |
static java.lang.String |
DEFAULT_STATEMENT_TERMINATOR
The default statement terminator string. |
Constructor Summary | |
---|---|
SQLStatementSupport()
Constructs an instance of this class. |
|
SQLStatementSupport(org.eclipse.jface.text.IDocument doc)
Constructs an instance of this class with the given document. |
Method Summary | |
---|---|
java.lang.String |
getDefaultStatementTerminator()
Gets the default statement terminator string for the current document. |
java.util.List |
getSQLStatementList()
Gets the SQL statements contained in the given document, as a list of strings. |
java.lang.String |
getStatementTerminator()
Gets the current statement terminator string for the current document. |
void |
propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
Handles notifications to the object that a property has changed. |
void |
setDocument(org.eclipse.jface.text.IDocument doc)
Sets the document associated with this object to the given SQL script document. |
void |
setStatementTerminator(java.lang.String newStatementTerminator)
Sets the current statement terminator string for this editor to the given string. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CURRENT_STATEMENT_TERMINATOR
public static final java.lang.String DEFAULT_STATEMENT_TERMINATOR
Constructor Detail |
---|
public SQLStatementSupport()
public SQLStatementSupport(org.eclipse.jface.text.IDocument doc)
doc
- a IDocument
for which statement support is neededMethod Detail |
---|
public java.lang.String getDefaultStatementTerminator()
public java.util.List getSQLStatementList()
public java.lang.String getStatementTerminator()
public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
propertyChange
in interface org.eclipse.jface.util.IPropertyChangeListener
event
- the property change event object describing which property
changed and howpublic void setDocument(org.eclipse.jface.text.IDocument doc)
doc
- the IDocument
for which support is neededpublic void setStatementTerminator(java.lang.String newStatementTerminator)
newStatementTerminator
- the statement terminator to use for this editor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |