public class OraProxySqlTranslator
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static OraProxySqlTranslator |
getInstance(boolean yamlStore,
java.lang.String fileUrl)
Returns SQL Translation instance
|
java.lang.String |
translate(java.lang.String source)
Returns the translated SQL statement, or source SQL statement if no translation is found
|
public static OraProxySqlTranslator getInstance(boolean yamlStore, java.lang.String fileUrl) throws java.sql.SQLException
yamlStore - when set to 'true' YAML format will be used for parsing
input file, when set to 'false' Chronicle Map (JDK1.8+)
file will be used.fileUrl - URL to file with SQL Translation in format (YAML below)
092pcht0h6c0t: |-
SELECT 'EXMPLE TRANSLATION'
FROM DUALjava.sql.SQLExceptionpublic java.lang.String translate(java.lang.String source)
throws java.sql.SQLException
source - source SQL statementjava.sql.SQLException