public final class SQLUtil extends Object
| 构造器和说明 |
|---|
SQLUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getExactlyExpression(String value)
Get exactly SQL expression.
|
static Number |
getExactlyNumber(String value,
int radix)
Get exactly number value and type.
|
static String |
getExactlyValue(String value)
Get exactly value for SQL expression.
|
static String |
getExpressionWithoutOutsideParentheses(String value)
Get exactly SQL expression without outside parentheses.
|
static List<SubqueryTableSegment> |
getSubqueryTableSegmentFromTableSegment(TableSegment tableSegment)
Get subquery from tableSegment.
|
static boolean |
isReadOnly(SQLStatement sqlStatement)
Determine whether SQL is read-only.
|
public static Number getExactlyNumber(String value, int radix)
value - string to be convertedradix - radixpublic static String getExactlyValue(String value)
remove special char for SQL expression
value - SQL expressionpublic static String getExactlyExpression(String value)
remove space for SQL expression
value - SQL expressionpublic static String getExpressionWithoutOutsideParentheses(String value)
value - SQL expressionpublic static List<SubqueryTableSegment> getSubqueryTableSegmentFromTableSegment(TableSegment tableSegment)
tableSegment - TableSegment.public static boolean isReadOnly(SQLStatement sqlStatement)
sqlStatement - SQL statementCopyright © 2020 The Apache Software Foundation. All rights reserved.