@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface Indexes
Storable
for specifying all
the indexes
it should have.
Example:
@Indexes({ @Index("name"), @Index("-lastModified"), @Index({"length", "lastModified"}) }) @PrimaryKey("ID") public interface FileInfo extends Storable<FileInfo> { long getID(); void setID(long id); String getName(); void setName(String name); long getLength(); void setLength(long length); long getLastModified(); void getLastModified(long datetime); ... }
Index
public abstract Index[] value
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.