Package de.yamass.redg.generator.utils
Class JavaSqlStringEscapeMap
This Map dynamically transforms Strings and escapes double-quotes. It should be used with the StringTemplate template to escape all SQL identifiers.
Based on the concept by @sharwell from https://github.com/antlr/stringtemplate4/issues/44
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorsConstructorDescriptionJavaSqlStringEscapeMap
(String escapeString) JavaSqlStringEscapeMap
(String escapeStringBefore, String escapeStringAfter) -
Method Summary
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
JavaSqlStringEscapeMap
-
JavaSqlStringEscapeMap
-
JavaSqlStringEscapeMap
public JavaSqlStringEscapeMap()
-
-
Method Details
-
get
-
containsKey
- Specified by:
containsKey
in interfaceMap<String,
Object> - Overrides:
containsKey
in classAbstractMap<String,
Object>
-
entrySet
-