com.amazon.carbonado
Annotation Type PrimaryKey


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

Identifies a Storable property as being a member of the primary key. All Storable types must have at least one property belonging to the primary key.

Example:

 @PrimaryKey("userInfoID")
 public interface UserInfo extends Storable<UserInfo> {
     long getUserInfoID();
     void setUserInfoID(long id);

     ...
 }
 

Author:
Brian S O'Neill
See Also:
AlternateKeys, Sequence

Required Element Summary
 String[] value
          A list of property names, which may be prefixed with '+' or '-' to indicate a preference for ascending or descending order.
 

Element Detail

value

public abstract String[] value
A list of property names, which may be prefixed with '+' or '-' to indicate a preference for ascending or descending order.



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