Top Description Inners Methods
javax.persistence.metamodel

public Interface PluralAttribute<X, C, E>

extends Attribute<X, C>, Bindable<E>
Known Direct Subinterfaces
javax.persistence.metamodel.SetAttribute, javax.persistence.metamodel.CollectionAttribute, javax.persistence.metamodel.ListAttribute, javax.persistence.metamodel.MapAttribute
Type Parameters
<X>
The type the represented collection belongs to
<C>
The type of the represented collection
<E>
The element type of the represented collection

Instances of the type PluralAttribute represent persistent collection-valued attributes.
Since
Java Persistence 2.0

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static enum

Method Summary

Modifier and TypeMethod and Description
public PluralAttribute.CollectionType

Returns:

collection type
getCollectionType
()

Return the collection type.

public Type<E>

Returns:

element type
getElementType
()

Return the type representing the element type of the collection.

Inherited from javax.persistence.metamodel.Attribute:
getDeclaringTypegetJavaMembergetJavaTypegetNamegetPersistentAttributeTypeisAssociationisCollection
Inherited from javax.persistence.metamodel.Bindable:
getBindableJavaTypegetBindableType

Method Detail

getCollectionTypeback to summary
public PluralAttribute.CollectionType getCollectionType()

Return the collection type.

Returns:PluralAttribute.CollectionType

collection type

getElementTypeback to summary
public Type<E> getElementType()

Return the type representing the element type of the collection.

Returns:Type<E>

element type

javax.persistence.metamodel back to summary

public final Enum PluralAttribute.CollectionType

extends Enum<PluralAttribute.CollectionType>
Class Inheritance

Field Summary

Modifier and TypeField and Description
public static final PluralAttribute.CollectionType
COLLECTION

Collection-valued attribute

public static final PluralAttribute.CollectionType
LIST

List-valued attribute

public static final PluralAttribute.CollectionType
MAP

Map-valued attribute

public static final PluralAttribute.CollectionType
SET

Set-valued attribute

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public static PluralAttribute.CollectionType
public static PluralAttribute.CollectionType[]
Inherited from java.lang.Enum:
clonecompareTodescribeConstableequalsfinalizegetDeclaringClasshashCodenameordinaltoStringvalueOf

Field Detail

COLLECTIONback to summary
public static final PluralAttribute.CollectionType COLLECTION

Collection-valued attribute

LISTback to summary
public static final PluralAttribute.CollectionType LIST

List-valued attribute

MAPback to summary
public static final PluralAttribute.CollectionType MAP

Map-valued attribute

SETback to summary
public static final PluralAttribute.CollectionType SET

Set-valued attribute

Constructor Detail

CollectionTypeback to summary
private CollectionType()

Method Detail

valueOfback to summary
public static PluralAttribute.CollectionType valueOf(String name)
valuesback to summary
public static PluralAttribute.CollectionType[] values()