Top Description Methods
org.eclipse.persistence.annotations

public @Interface VirtualAccessMethods

extends Annotation
Annotations
@Documented
@Target:TYPE
@Retention:RUNTIME
Static Imports
java.lang.annotation.ElementType.TYPE, .RetentionPolicy.RUNTIME

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 <access-methods> tag

Method Summary

Modifier and TypeMethod and Description
public 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.

public 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.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

getback to summary
public 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

setback to summary
public 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