org.glassfish.ha.store.annotations
Annotation Type StoreEntry


@Retention(value=RUNTIME)
@Target(value=TYPE)
public @interface StoreEntry

An annotation to describe a class as a SToreEntry. For each class a.b.X that is annotated with @StoreEntry, an APT will be used to generate a class a.b.X_ For each attribute A of type T in X, a.b.X_ contains a (static) field whose type is SessionAttributeMetadata. SessionAttributeMetadata describes the attribute by giving its (java) type, name etc. Also, for each a.b.X a sub-class by name a.b.X_Storable will also be generated. a.b.X_Storable will implement Storable interface. The Storable interface allows a Store implementation to detect dirty attributes. An attribute A is dirty, if its setter method (or the method that was annotated with @Attribute("A") was invoked). An instance of a.b.X_Storable can be obtained by calling BackingStore.getStorable() An annotation that can be used to declare a String Attribute as a Version. Version attribute is a special attribute of a StoreEntry.

Author:
Mahesh.Kannan@Sun.Com

Optional Element Summary
 String value
           
 

value

public abstract String value
Default:
""


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.