|
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.SQLStatements.SQLStatements
public class SQLStatements
Field Summary | |
---|---|
static String |
Copyright
|
static String[] |
SQL_STATEMENTS
|
Constructor Summary | |
---|---|
SQLStatements()
|
Method Summary | |
---|---|
static SQLStatement |
getKwd(String text)
Indicates whether or not the specified text is a valid statement keyword |
static SQLStatement |
getKwd(String text,
boolean isIncludePredicates)
|
static SQLStatement |
getNestedElse()
Retrieves the WHEN statement to use when formatting nested CASE statements |
static SQLStatement |
getNestedWhen()
Retrieves the WHEN statement to use when formatting nested CASE statements |
protected static SQLStatement |
getSQLStatement(String statement)
Creates and retrieves the statement object for the specified SQL statement name |
protected static SQLStatement |
getSQLStatement(String statement,
boolean isControlStatement)
Creates and retrieves the statement object for the specified SQL statement name |
static SQLStatement |
getStartCtlKwd(String text)
Retrieves the start control keyword specified |
static SQLStatement |
getStartKwd(String text)
Indicates whether or not the specified text is a statement name |
static boolean |
isIntermediateWordsRequired(SQLStatement statement)
Indicates whether or not this statement type has mandatory intermediate words |
static boolean |
isIntermediateWordsSufficient(SQLStatement statement,
String intermediateWords)
Indicates whether the intermediate words specified are valid for the statement |
static boolean |
isNestedControlStatementAllowed(SQLStatement statement)
Indicates whether or not control statements are allowed as nested statement |
static boolean |
isNestedStatementAllowed(SQLStatement statement1,
SQLStatement statement2)
Indicates whether or not the statement2 is allowed to be a nested statement for statement1 |
static boolean |
isOption(ISQLItem item,
String testOption)
Indicates whether or not the specified option is a valid option |
static boolean |
isOptionalWords(String firstWord,
String optionalWords,
boolean checkForAny)
Indicates whether or not the test kewyword is an optional word for the first word |
static boolean |
isStartKwd(String text)
Indicates whether or not the specified text is the start of a statement |
static boolean |
isStartOfOptionalWords(String firstWord,
String nextWords)
Indicates if the specfied set of words are valid words for the first word |
static boolean |
isStatementControlKwd(String text)
Indicates whether or not the specified text is a statement control keyword |
static boolean |
isStatementFirstKwd(String text)
Indicates whether or not the specified kwd is a first word of a two word statement |
static boolean |
isStatementKwd(String text)
Indicates whether or not the specified text is a statement keyword |
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
public static final String[] SQL_STATEMENTS
Constructor Detail |
---|
public SQLStatements()
Method Detail |
---|
public static SQLStatement getKwd(String text)
text
- the text to check
public static SQLStatement getKwd(String text, boolean isIncludePredicates)
public static SQLStatement getNestedElse()
public static SQLStatement getNestedWhen()
protected static SQLStatement getSQLStatement(String statement)
statement
- the statement name
protected static SQLStatement getSQLStatement(String statement, boolean isControlStatement)
statement
- the statement nameisControlStatement
- whether or not the statement is a control statement
public static SQLStatement getStartCtlKwd(String text)
text
- the name of the control keyword
public static SQLStatement getStartKwd(String text)
text
- the text to check
public static boolean isIntermediateWordsRequired(SQLStatement statement)
statement
- the statement to check
public static boolean isIntermediateWordsSufficient(SQLStatement statement, String intermediateWords)
statement
- the statement to checkintermediateWords
- the intermediate words to verify
public static boolean isNestedControlStatementAllowed(SQLStatement statement)
statement
- the statement to check
public static boolean isNestedStatementAllowed(SQLStatement statement1, SQLStatement statement2)
statement1
- the statement that nesting is being checked forstatement2
- the statement that may be a nested statement of statement 1
public static boolean isOption(ISQLItem item, String testOption)
item
- the SQL statement to check the option fortestOption
- the option to check
public static boolean isOptionalWords(String firstWord, String optionalWords, boolean checkForAny)
firstWord
- the first word of a statementoptionalWords
- The optional words to testcheckForAny
- whether or not *ANY should be checked
public static boolean isStartKwd(String text)
text
- the text to check
public static boolean isStartOfOptionalWords(String firstWord, String nextWords)
firstWord
- the first word of a statementnextWords
- a set of next words to check
public static boolean isStatementControlKwd(String text)
text
- the text to check
public static boolean isStatementFirstKwd(String text)
text
- the keyword to check
public static boolean isStatementKwd(String text)
text
- the text to check
|
Rational Developer for Power Systems Software V7.6 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |