|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value={FIELD,TYPE}) public @interface Indexed
This annotation controls whether or not fields are indexed in the datastore.
When placed on a simple field, the field will be indexed if possible. Text, Blob, and @Serialized fields cannot be indexed. If the field is an @Embedded class or a collection of @Embedded classes, the fields of those classes will be indexed as if the class had the @Indexed annotation.
When placed on an entity class or an embedded class, this sets the default for all fields to be indexed. It can be overridden by field level annotations.
If an embedded class field is annotated with @Indexed, any @Indexed or @Unindexed annotation on the class itself is ignored.
If passed one or more classes that implement the If
interface, the
value will be indexed only if it tests positive for any of the conditions. This
allows "partial indexing" of only some categories of values (ie, true but not false).
Optional Element Summary | |
---|---|
java.lang.Class<? extends If<?,?>>[] |
value
|
public abstract java.lang.Class<? extends If<?,?>>[] value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |