Package org.teiid.query.parser
Class SQLParserUtil
- java.lang.Object
-
- org.teiid.query.parser.SQLParserUtil
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SQLParserUtil.ParsedDataType
-
Field Summary
Fields Modifier and Type Field Description static boolean
CONDITION_CONSTRAINT_DEFAULT
static boolean
DECIMAL_AS_DOUBLE
static boolean
RESULT_ANY_POSITION
-
Constructor Summary
Constructors Constructor Description SQLParserUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Expression
arrayFromQuery(QueryCommand subquery)
static FunctionMethod
createFunctionMethod(Procedure proc)
static boolean
isTrue(String text)
static String
normalizeId(String s)
static String
normalizeId(String s, boolean singlePart)
static void
setDefault(BaseColumn column, Expression value)
static void
setTypeInfo(SQLParserUtil.ParsedDataType type, BaseColumn column)
-
-
-
Method Detail
-
normalizeId
public static String normalizeId(String s) throws ParseException
- Throws:
ParseException
-
normalizeId
public static String normalizeId(String s, boolean singlePart) throws ParseException
- Throws:
ParseException
-
createFunctionMethod
public static FunctionMethod createFunctionMethod(Procedure proc)
-
isTrue
public static boolean isTrue(String text)
-
setTypeInfo
public static void setTypeInfo(SQLParserUtil.ParsedDataType type, BaseColumn column)
-
setDefault
public static void setDefault(BaseColumn column, Expression value)
-
arrayFromQuery
public static Expression arrayFromQuery(QueryCommand subquery) throws ParseException
- Throws:
ParseException
-
-