Annotation Type Indexed


  • @Retention(RUNTIME)
    @Target(METHOD)
    public @interface Indexed
    This annotation is used on getter methods to indicate that the field is indexed.
    Version:
    2012-06-01
    Author:
    Gaspar Sinai
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      boolean primaryKey
      This marker can be used to mark the primary keys.
      IndexType type
      This marks the how the field should be indexed.
    • Element Detail

      • primaryKey

        boolean primaryKey
        This marker can be used to mark the primary keys.
        Returns:
        true if the marked getter returns a primary key.
        Default:
        false
      • type

        IndexType type
        This marks the how the field should be indexed.
        Returns:
        the indexing method.
        Default:
        org.microspace.annotation.IndexType.AUTO