Annotation Type Where


@Target(METHOD)
@Retention(RUNTIME)
public @interface Where
  • Optional Element Summary

    Optional Elements
    Modifier and Type Optional Element Description
    MethodPredicate[] asMethods  
    String[] value
    This annotation value defines an array of literal conditions like "[$c.type == $cat.id, $c.rating > 30.0]".
  • Element Details

    • value

      String[] value

      This annotation value defines an array of literal conditions like "[$c.type == $cat.id, $c.rating > 30.0]". The implementation must parse and match every condition with the method signature. So in the example above the annotated method might look like void doSomething(Customer $a, Category $cat)

      Returns:
      array of literal conditions
      Default:
      {}
    • asMethods

      MethodPredicate[] asMethods
      Returns:
      array of MethodPredicate conditions
      See Also:
      MethodPredicate
      Default:
      {}