|
| ESC_FUNCTION =("\\s*fn\\s+([^ ]*?)\\s*\\(", "\\(\\s*(.*)\\s*\\)", null) |
|
| ESC_DATE =("\\s*(d)\\s+", "('.*?')", "DATE ") |
|
| ESC_TIME =("\\s*(t)\\s+", "('.*?')", "TIME ") |
|
| ESC_TIMESTAMP =("\\s*(ts)\\s+", "('.*?')", "TIMESTAMP ") |
|
Definition at line 16 of file HeavyAIEscapeParser.java.
ai.heavy.jdbc.HeavyAIEscapeParser.EscapeFunctions.EscapeFunctions |
( |
String |
escapePattern, |
|
|
String |
argPattern, |
|
|
String |
replacementKeyword |
|
) |
| |
|
inline |
String ai.heavy.jdbc.HeavyAIEscapeParser.EscapeFunctions.call_escape_fn |
( |
String |
all_arguments, |
|
|
Method |
method |
|
) |
| |
|
inlineprivate |
Definition at line 32 of file HeavyAIEscapeParser.java.
34 StringBuilder sb =
new StringBuilder();
35 List<CharSequence> parseArgs =
new ArrayList<CharSequence>(3);
37 StringBuilder args_sb =
new StringBuilder();
38 for (
int index = 0; index < all_arguments.length(); ++index) {
39 if (all_arguments.charAt(index) ==
',' && bracket_cnt == 0) {
40 parseArgs.add(args_sb.toString());
41 args_sb.delete(0, args_sb.length());
44 if (all_arguments.charAt(index) ==
'(') {
46 }
else if (all_arguments.charAt(index) ==
')') {
49 args_sb.append(all_arguments.charAt(index));
52 parseArgs.add(args_sb.toString());
53 method.invoke(null, sb, parseArgs);
55 }
catch (InvocationTargetException e) {
56 throw new RuntimeException(
"Invocation fn argument parse error" + e.getMessage());
57 }
catch (IllegalAccessException ilE) {
58 throw new RuntimeException(
"Access fn argument error" + ilE.getMessage());
static String ai.heavy.jdbc.HeavyAIEscapeParser.EscapeFunctions.function |
( |
String |
arg | ) |
|
|
inlinestatic |
String ai.heavy.jdbc.HeavyAIEscapeParser.EscapeFunctions.makeMatch |
( |
String |
sql | ) |
|
|
inlineprivate |
static String ai.heavy.jdbc.HeavyAIEscapeParser.EscapeFunctions.simple |
( |
String |
arg | ) |
|
|
inlinestatic |
final Pattern ai.heavy.jdbc.HeavyAIEscapeParser.EscapeFunctions.argPattern |
|
private |
ai.heavy.jdbc.HeavyAIEscapeParser.EscapeFunctions.ESC_DATE =("\\s*(d)\\s+", "('.*?')", "DATE ") |
ai.heavy.jdbc.HeavyAIEscapeParser.EscapeFunctions.ESC_FUNCTION =("\\s*fn\\s+([^ ]*?)\\s*\\(", "\\(\\s*(.*)\\s*\\)", null) |
ai.heavy.jdbc.HeavyAIEscapeParser.EscapeFunctions.ESC_TIME =("\\s*(t)\\s+", "('.*?')", "TIME ") |
ai.heavy.jdbc.HeavyAIEscapeParser.EscapeFunctions.ESC_TIMESTAMP =("\\s*(ts)\\s+", "('.*?')", "TIMESTAMP ") |
final Pattern ai.heavy.jdbc.HeavyAIEscapeParser.EscapeFunctions.escapePattern |
|
private |
final String ai.heavy.jdbc.HeavyAIEscapeParser.EscapeFunctions.replacementKeyword |
|
private |
The documentation for this enum was generated from the following file: