com.amazon.carbonado
Annotation Type AlternateKeys


@Documented
@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface AlternateKeys

List of alternate keys for a Storable.

Example:

 @AlternateKeys({
     @Key("fullPath")
     @Key({"+name", "-parentID"})
 })
 @PrimaryKey("ID")
 public interface FileInfo extends Storable<FileInfo> {
     long getID();
     void setID(long id);

     String getFullPath();
     void setFullPath(String path);

     String getName();
     void setName(String name);

     long getParentID();
     void setParentID(long id);

     ...
 }
 

Author:
Brian S O'Neill
See Also:
Key

Optional Element Summary
 Key[] value
          A list of Key annotations.
 

value

public abstract Key[] value
A list of Key annotations.

Default:
{}


Copyright © 2006-2009 Amazon Technologies, Inc.. All Rights Reserved.