Top Description Methods
org.eclipse.persistence.annotations

public @Interface Array

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

Array types are extended object-relational data-types supported by some databases. Array types are user define types in the database such as VARRAY types on Oracle. Arrays can contains basic types (VARCHAR) or other Struct types, and can be stored in a column or in a Struct type.

This annotation can be defined on a collection attribute that is persisted to an Array type. The collection can be of basic types, or embeddable class mapped using a Struct.

Author
James Sutherland
Since
EclipseLink 2.3
See Also
org.eclipse.persistence.mappings.structures.ObjectRelationalDataTypeDescriptor, org.eclipse.persistence.mappings.structures.ArrayMapping, org.eclipse.persistence.mappings.structures.ObjectArrayMapping

Method Summary

Modifier and TypeMethod and Description
public String
databaseType()

(Required) The database name of the database array structure type.

public Class<?>
targetClass()

(Optional) The basic or embeddable class that is the element type of the collection.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

databaseTypeback to summary
public String databaseType()

(Required) The database name of the database array structure type.

targetClassback to summary
public Class<?> targetClass()

(Optional) The basic or embeddable class that is the element type of the collection. This element is optional only if the collection field or property is defined using Java generics, and must be specified otherwise. It defaults to the paramterized type of the collection when defined using generics.