Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8139056

Add Convenience methods to improve usablility

XMLWordPrintable

    • b89

        Add two convenience methods

        - enquoteLiteral which returns a string enclosed in single quotes where all occurrences of a single quote are converted to two single quotes see [1] and [2]

        - enquoteName returns a simple SQL identifier


        [1] https://commons.apache.org/proper/commons-lang/javadocs/api-2.6/org/apache/commons/lang/StringEscapeUtils.html#escapeSql(java.lang.String)
        [2] http://grepcode.com/file/repo1.maven.org/maven2/org.owasp.esapi/esapi/2.1.0/org/owasp/esapi/Encoder.java?av=f

              lancea Lance Andersen
              lancea Lance Andersen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: