Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.sql.SQLStatements
Class SQLBuiltInFunctions

java.lang.Object
  extended by com.ibm.etools.iseries.edit.sql.SQLStatements.SQLBuiltInFunctions

public class SQLBuiltInFunctions
extends Object


Field Summary
static String Copyright
           
 
Constructor Summary
SQLBuiltInFunctions()
           
 
Method Summary
static SQLBuiltInFunction getBIF(String name)
           
static boolean isAsSubqueryClause(String text)
          Indicates whether or not the specified clause is an AS subquery clase
static boolean isBIF(String text)
          Indicates whether or not the specified string is a built-in function
static boolean isBIFKwd(String text)
          Indicates whether or not the specified string is a built-in function keyword
static boolean isPrimaryKeyColumnConstraint(StringBuffer statementBuffer, String text)
          Indicates whether or not there is a primary key constraint being specified
static boolean isValidClause(String text, ISQLItem item)
          Indicates whether or not the specified caluse is a valid clause
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Copyright

public static final String Copyright
See Also:
Constant Field Values
Constructor Detail

SQLBuiltInFunctions

public SQLBuiltInFunctions()
Method Detail

isBIF

public static boolean isBIF(String text)
Indicates whether or not the specified string is a built-in function

Parameters:
text - The text to check
Returns:
true if the text is a built-in function, false otherwise

isBIFKwd

public static boolean isBIFKwd(String text)
Indicates whether or not the specified string is a built-in function keyword

Parameters:
text - The text to check
Returns:
true if the text is a built-in function, false otherwise

isAsSubqueryClause

public static boolean isAsSubqueryClause(String text)
Indicates whether or not the specified clause is an AS subquery clase

Parameters:
text - the text to test
Returns:
true if it is an AS false otherwise

isValidClause

public static boolean isValidClause(String text,
                                    ISQLItem item)
Indicates whether or not the specified caluse is a valid clause

Parameters:
text - the text to text
item - the current SQL item
Returns:
true if this is a valid clause, false otherwise

isPrimaryKeyColumnConstraint

public static boolean isPrimaryKeyColumnConstraint(StringBuffer statementBuffer,
                                                   String text)
Indicates whether or not there is a primary key constraint being specified

Parameters:
statementBuffer - the statement buffer to check
text - the current text to check
Returns:
true if a primary key contraint is detected, false otherwise

getBIF

public static SQLBuiltInFunction getBIF(String name)

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.