Annotation Type Definition


@Target({FIELD,METHOD,TYPE}) @Retention(RUNTIME) @Repeatable(Definitions.class) @Beta public @interface Definition

Annotate a SqlObject type, method, or field as @Definition in order to define an attribute for all SqlObject methods in the same type.

  • On a type, both the key and value must be specified.
  • On a method, the key defaults to the method name, and the value will be the result of calling the method statically.
  • On a field, the key defaults to the field name, and the value will be the result of getting the field value statically.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
     
     
  • Field Details

  • Element Details

    • key

      String key
      Default:
      "__definition_undefined__"
    • value

      String value
      Default:
      "__definition_undefined__"