Errai 3.0.1-SNAPSHOT

org.jboss.errai.jpa.client.local
Interface ErraiPluralAttribute<X,C,E>

Type Parameters:
X - The type containing the represented attribute
C - The collection type of the represented attribute
E - The element type of the represented collection attribute
All Superinterfaces:
javax.persistence.metamodel.Attribute<X,C>, javax.persistence.metamodel.Bindable<E>, ErraiAttribute<X,C>, javax.persistence.metamodel.PluralAttribute<X,C,E>

public interface ErraiPluralAttribute<X,C,E>
extends ErraiAttribute<X,C>, javax.persistence.metamodel.PluralAttribute<X,C,E>

Extends the JPA PluralAttribute interface with methods required by Errai persistence but missing from the JPA metamodel. Most importantly, this interface provides methods for reading and writing the attribute value.

Author:
Jonathan Fuerth

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.persistence.metamodel.PluralAttribute
javax.persistence.metamodel.PluralAttribute.CollectionType
 
Nested classes/interfaces inherited from interface javax.persistence.metamodel.Attribute
javax.persistence.metamodel.Attribute.PersistentAttributeType
 
Nested classes/interfaces inherited from interface javax.persistence.metamodel.Bindable
javax.persistence.metamodel.Bindable.BindableType
 
Method Summary
 C createEmptyCollection()
          Creates a new, empty collection of a type that is assignable to this attribute via the ErraiAttribute.set(Object, Object) method.
 
Methods inherited from interface org.jboss.errai.jpa.client.local.ErraiAttribute
cascades, get, set, toString
 
Methods inherited from interface javax.persistence.metamodel.PluralAttribute
getCollectionType, getElementType
 
Methods inherited from interface javax.persistence.metamodel.Attribute
getDeclaringType, getJavaType, getName, getPersistentAttributeType, isAssociation, isCollection
 
Methods inherited from interface javax.persistence.metamodel.Bindable
getBindableJavaType, getBindableType
 

Method Detail

createEmptyCollection

C createEmptyCollection()
Creates a new, empty collection of a type that is assignable to this attribute via the ErraiAttribute.set(Object, Object) method. Note that the returned type is not necessarily a subtype of java.util.Collection: it could also be a java.util.Map.

Returns:
A new collection instance that is type-compatible with this attribute's collection type.
See Also:
PluralAttribute.getCollectionType()

Errai 3.0.1-SNAPSHOT

Copyright © 2013-2014 JBoss, a division of Red Hat. All Rights Reserved.