Class EntityFilter<E>

java.lang.Object
org.javarosa.core.services.storage.EntityFilter<E>

public abstract class EntityFilter<E>
extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • preFilter

      public int preFilter​(int id, HashMap<String,​Object> metaData)
      filter based just on ID and metadata (metadata not supported yet!! will always be 'null', currently)
      Parameters:
      id -
      metaData -
      Returns:
      if PREFILTER_INCLUDE, record will be included, matches() not called if PREFILTER_EXCLUDE, record will be excluded, matches() not called if PREFILTER_FILTER, matches() will be called and record will be included or excluded based on return value
    • matches

      public abstract boolean matches​(E e)