public class SqlUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
parseStringLiteral(String quotedString)
"Unquotes" the given SQL String literal, and transforms the
''
escape sequence to ' . |
public static String parseStringLiteral(String quotedString)
''
escape sequence to '
.quotedString
- A string literal from a SQL/HQL/JPQL query. The first and last
characters must be '
(single quote).Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.