|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.etools.iseries.edit.sql.SQLFormatter
public class SQLFormatter
Field Summary | |
---|---|
static String |
Copyright
|
Constructor Summary | |
---|---|
SQLFormatter()
The default contructor for this class |
Method Summary | |
---|---|
void |
formatSQLStatement(int startElement,
int endElement,
LpexView view)
Formats SQL statements in the range specified |
void |
formatSQLStatement(int element,
LpexView view)
Formats an SQL statement in an LPEX view |
String |
formatSQLStatement(String statementString,
boolean insertSignature)
Give a statement string, generates a formatted version based on properties set in the formatter. |
int |
getFirstFormattedElement()
Retrieves the first element that was formatted. |
int |
getIndent(LpexView view,
int iElement)
Retrieves the indent for the view for the specified start element |
int |
getLastFormattedElement()
Retrieves the last element that was formatted. |
void |
resetStopElement()
Used to reset the formatter stop element. |
void |
setFormatting(SQLFormattingSettings formatting)
Sets the formatting settings to use for the formatter |
void |
setInitialIndent(int value)
Sets the intial indent for the SQL statement |
void |
setScanForExecSQL(boolean value)
Used to set whether on not the formatter needs to scan for exec sql. |
void |
setSignature(ISQLSignature signature)
Sets the signature settings for the SQL formatter |
void |
setStopElement(int iElement)
Used to force the formatter to stop at a specified element. |
void |
setUppercasing(SQLUpperCaseSettings uppercasing)
Sets the uppercasing settings to use for the formatter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String Copyright
Constructor Detail |
---|
public SQLFormatter()
Method Detail |
---|
public void formatSQLStatement(int startElement, int endElement, LpexView view)
startElement
- the start element to start formattingendElement
- the end element to start formatting.view
- the view to format the elements inpublic void formatSQLStatement(int element, LpexView view)
element
- The element number to formatview
- the view to format the statement for.public String formatSQLStatement(String statementString, boolean insertSignature)
statementString
- the string to formatinsertSignature
- whether or not to insert a signature, depending on the signature settings ** NOT CURRRENTLY AVAILABLE
setFormatting(SQLFormattingSettings)
,
setUppercasing(SQLUpperCaseSettings)
,
setSignature(ISQLSignature)
public int getFirstFormattedElement()
public int getIndent(LpexView view, int iElement)
view
- the view to retrieve the start indent foriElement
- the element the get the indent for
public int getLastFormattedElement()
public void resetStopElement()
public void setFormatting(SQLFormattingSettings formatting)
formatting
- The settings that the formatter should use to format the textpublic void setInitialIndent(int value)
value
- the initial indent to usepublic void setScanForExecSQL(boolean value)
value
- true if the formatter should scan for EXEC SQL, false otherwisepublic void setSignature(ISQLSignature signature)
signature
- the signature to use when formatting statementspublic void setStopElement(int iElement)
iElement
- the element that the formatter should stop formattingresetStopElement()
public void setUppercasing(SQLUpperCaseSettings uppercasing)
uppercasing
- uppercase settings for the formatter
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |