Class HanaUtil


  • public final class HanaUtil
    extends Object
    Various utility methods for SAP HANA.
    Author:
    Stefan Uhrig, SAP SE
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static String encodeIdentifier​(String id)
      Encodes an identifier.
      static String toStringLiteral​(String s)
      Converts a string to a SQL string literal by quoting it with single quotes.
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • encodeIdentifier

        public static String encodeIdentifier​(String id)
        Encodes an identifier.
        Parameters:
        id - The identifier to encode. Must not be null.
        Returns:
        Returns the encoded identifier.
      • toStringLiteral

        public static String toStringLiteral​(String s)
        Converts a string to a SQL string literal by quoting it with single quotes.
        Parameters:
        s - The string to convert.
        Returns:
        Returns the string literal.