gov.nih.nci.caarray.domain
Annotation Type MaxSerializableSize


@Target(value=METHOD)
@Retention(value=RUNTIME)
public @interface MaxSerializableSize

The presence of this annotation indicates to the entity pruning algorithm used to prepare return results for remote API queries a maximum size for a collection that can be serialized. The entity pruning algorithm should test the size of the collection, and if it exceeds the size indicated by this annotation, throw a RuntimeException indicating that the result cannot be retrieved. This annotation should be placed on getter methods for collection-typed properties of persistent objects. It is only effective if the ExtraLazy option is used for the collection, preventing the collection from being faulted when its size is obtained.

Author:
dkokotov

Required Element Summary
 int value
          the maximum number of elements in collection that will result in successful serialization.
 

Element Detail

value

public abstract int value
the maximum number of elements in collection that will result in successful serialization.