Class DatabaseCaseSensitivity


  • public final class DatabaseCaseSensitivity
    extends java.lang.Object
    This class provides methods to read the case-sensitivity settings from the configuration files like NameOpUpper and CaseSensitiveFields.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Set<java.lang.String> getCaseSensitiveFields​(com.saperion.intf.DDC ddc)
      Returns a set containing all fields that are marked as case-sensitive.
      static boolean useUpperCase​(com.saperion.intf.DDC ddc)
      Checks if string-fields in the specified DDC must be converted to upper-case when searching.
      • Methods inherited from class java.lang.Object

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

      • useUpperCase

        public static boolean useUpperCase​(com.saperion.intf.DDC ddc)
        Checks if string-fields in the specified DDC must be converted to upper-case when searching.
        Parameters:
        ddc - ddc to check setting for
        Returns:
        true if string-fields must be converted to upper-case
      • getCaseSensitiveFields

        public static java.util.Set<java.lang.String> getCaseSensitiveFields​(com.saperion.intf.DDC ddc)
        Returns a set containing all fields that are marked as case-sensitive. Such fields must not be made case-insensitive when searching even if useUpperCase(DDC) returns true.
        Parameters:
        ddc - ddc to get case-sensitive fields for
        Returns:
        set of names of case-insensitive fields (in upper-case)