public class JDEscapeClause extends Object
This class represents an escape clause in a SQL statement. It is used to translate SQL statements with JDBC escape syntax to DB2 for IBM i format.
Constructor | Description |
---|---|
JDEscapeClause() |
Modifier and Type | Method | Description |
---|---|---|
static String |
parse(com.ibm.as400.access.JDSQLTokenizer tokenizer,
String decimalSeparator,
boolean flag,
int vrm) |
Parses an escape clause, and substitute it with native SQL.
|
static String |
parse(String escapeSyntax,
String decimalSeparator,
int vrm) |
Parses an escape clause, and substitute it with native SQL.
|
public static String parse(String escapeSyntax, String decimalSeparator, int vrm) throws SQLException
escapeSyntax
- SQL escape syntax.decimalSeparator
- The decimal separator.vrm
- The release as generated by AS400.generateVRM.SQLException
- If there is a syntax error or
a reference to an unsupported
scalar function.public static String parse(com.ibm.as400.access.JDSQLTokenizer tokenizer, String decimalSeparator, boolean flag, int vrm) throws SQLException
When the flag is true, the tokenized string is considered to be the entire SQL statement and will end at the end of the string.
When the flag is false, the tokenized string is considered to be just a single escape clause, starting 1 token after its left brace. It will end at the matching right brace.
tokenizer
- The tokenized string.decimalSeparator
- The decimal separator.flag
- The flag.vrm
- The release as generated by AS400.generateVRM.SQLException
- If there is a syntax error or
a reference to an unsupported
scalar function.Copyright © 2025. All rights reserved.