EclipseLink 2.3.2, build 'v20111125-r10461' API Reference

org.eclipse.persistence.annotations
Annotation Type VirtualAccessMethods


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

Specifies that this class contains virtual attributes. This annotation is used in an EclipseLink-specific way to define access methods used by mappings with accessType=VIRTUAL. The xml-equivalent is the tag


Optional Element Summary
 java.lang.String get
          (Optional) The name of the getter method to use for the virtual property This method must take a single java.lang.String parameter and return a java.lang.Object.
 java.lang.String set
          (Optional) The name of the setter method to use for the virtual property This method must take a java.lang.String parameter and a java.lang.Object parameter.
 

get

public abstract java.lang.String get
(Optional) The name of the getter method to use for the virtual property This method must take a single java.lang.String parameter and return a java.lang.Object. If setMethod is specified, getMethod must be specified

Default:
"get"

set

public abstract java.lang.String set
(Optional) The name of the setter method to use for the virtual property This method must take a java.lang.String parameter and a java.lang.Object parameter. If getMethod is specified, setMethod must be specified

Default:
"set"

EclipseLink 2.3.2, build 'v20111125-r10461' API Reference