Class DatabaseCaseSensitivity
java.lang.Object
com.saperion.ngc.resultset.generator.DatabaseCaseSensitivity
This class provides methods to read the case-sensitivity settings from the configuration files like
NameOpUpper and CaseSensitiveFields.
-
Method Summary
Modifier and TypeMethodDescriptiongetCaseSensitiveFields
(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.
-
Method Details
-
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
Returns a set containing all fields that are marked as case-sensitive. Such fields must not be made case-insensitive when searching even ifuseUpperCase(DDC)
returns true.- Parameters:
ddc
- ddc to get case-sensitive fields for- Returns:
- set of names of case-insensitive fields (in upper-case)
-