Errai 3.0.1-SNAPSHOT

org.jboss.errai.jpa.rebind
Class SqlUtil

java.lang.Object
  extended by org.jboss.errai.jpa.rebind.SqlUtil

public class SqlUtil
extends Object


Method Summary
static String parseStringLiteral(String quotedString)
          "Unquotes" the given SQL String literal, and transforms the '' escape sequence to '.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseStringLiteral

public static String parseStringLiteral(String quotedString)
"Unquotes" the given SQL String literal, and transforms the '' escape sequence to '.

Parameters:
quotedString - A string literal from a SQL/HQL/JPQL query. The first and last characters must be ' (single quote).
Returns:
the given string with quotes removed and escape sequences removed.

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.