java.lang.Object
java.lang.Enum<SearchTermTemplates>
de.digitalcollections.cudami.server.backend.impl.jdbi.identifiable.SearchTermTemplates
All Implemented Interfaces:
Serializable, Comparable<SearchTermTemplates>, Constable

public enum SearchTermTemplates extends Enum<SearchTermTemplates>
  • Enum Constant Details

  • Field Details

    • placeholder

      public final String placeholder
  • Method Details

    • values

      public static SearchTermTemplates[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SearchTermTemplates valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • renderTemplate

      public String renderTemplate(String placeholderSuffix, Object... values)
      Fill the template with values. An optional placeholderSuffix can be supplied to distinguish multiple usages.
      Parameters:
      placeholderSuffix - a string appended to the placeholder after an underscore, may be null
      values - the objects passed to String.format(String, Object...)
      Returns:
      the formatted SQL