Class CommonSearchModel.SearchField

java.lang.Object
ch.tocco.nice2.model.entity.api.search.CommonSearchModel.SearchField
Enclosing interface:
CommonSearchModel

public static class CommonSearchModel.SearchField extends Object
  • Field Details

    • name

      public final String name
      A field or path name. Examples: "lastname", "someRel.someField".
    • minChars

      @Nullable public final @Nullable Integer minChars
      0-n, if the number is larger than the default of RemoteField.getMinChars() then that is used.
    • maxChars

      @Nullable public final @Nullable Integer maxChars
    • isRelation

      public boolean isRelation
      Tells if the field is not a field of the entity, but some kind of related thing instead. Then it can be a relation name (and another method will find out which fields to include of that related entity in the search), or a specified field of a related entity. This status is figured out in the model reading process.
  • Constructor Details

    • SearchField

      public SearchField(String name, @Nullable @Nullable Integer minChars, @Nullable @Nullable Integer maxChars)