Class HanaUtil


  • public final class HanaUtil
    extends Object
    Various utility methods for SAP HANA.
    Author:
    Stefan Uhrig, SAP SE
    • 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.