@Retention(value=RUNTIME) @Target(value=METHOD) @Documented public @interface JSetField
JSimpleDB
Set
fields.
The annotated method's return type must be either Set
<E>
,
SortedSet
<E>
, or NavigableSet
<E>
,
where E
is a supported simple type.
Note that both primitive types and their corresponding wrapper types are supported as elements. A set whose
elements have primitive type will throw an exception on an attempt to add a null value.
To specify a primitive element type, specify the type name (e.g., "int"
)
as the JField.type()
in the element()
.
public abstract String name
If empty string (default value), the name is inferred from the name of the annotated Java bean getter method.
public abstract int storageId
StorageIdGenerator
will be consulted to auto-generate a value.StorageIdGenerator.generateFieldStorageId()
Copyright © 2016. All rights reserved.