Class TableAndFieldNameValidator


  • public class TableAndFieldNameValidator
    extends Object
    Validates table and field names for illegal characters.
    Since:
    7.20.0
    • Field Detail

      • TABLE_OR_FIELD_NAME_PATTERN

        public static final Pattern TABLE_OR_FIELD_NAME_PATTERN
    • Constructor Detail

      • TableAndFieldNameValidator

        public TableAndFieldNameValidator()
    • Method Detail

      • checkNameDoesNotHaveSqlInjections

        public static String checkNameDoesNotHaveSqlInjections​(String tableOrFieldName)
        Checks that the SQL does not have any SQL injections.
        Returns:
        sql