@Retention(value=RUNTIME) @Target(value=FIELD) public @interface Key
Persisting. Double and float are not supported.
Persisting elements must define at least one key.
Non Persisting elements that have to be persisted in the store (e.g. as property value or in a column family as an index or a value) must define only keys properties.
In case a class defines more than one key, those keys must be given an incrementing order(). First order is 1.
Instances of such classes can be represented and rebuilt by a String using ConversionTools.convertFromString(Class, String) and ConversionTools.convertToString(Object).public abstract int order
public abstract boolean reverted
Long, etc), boolean, and Date.
A search is always performed according to a start key and continues using ascending order (StorageManagement.findElements()).
Inverting a key changes the order of elements.Date keys, as in the following class:public class Foo { @Key public Date bar; }StorageManagement.findElements().ofClass(FooStd.class).withKey("bar").greaterOrEqualsThan(d).withAtMost(100).elements().iterate()
will iterate over elements whose key bar is later or equals than date d. Reverting the key, those elements would be elements earlier or equal than d.Copyright © 2016. All Rights Reserved.