Errai 3.0.1-SNAPSHOT

org.jboss.errai.jpa.client.local
Interface ErraiSingularAttribute<X,T>

Type Parameters:
X - The type containing the represented attribute
T - The type of the represented attribute
All Superinterfaces:
javax.persistence.metamodel.Attribute<X,T>, javax.persistence.metamodel.Bindable<T>, ErraiAttribute<X,T>, javax.persistence.metamodel.SingularAttribute<X,T>

public interface ErraiSingularAttribute<X,T>
extends ErraiAttribute<X,T>, javax.persistence.metamodel.SingularAttribute<X,T>

Extends the JPA SingularAttribute interface with methods required by Errai persistence but missing from the JPA metamodel.

Author:
Jonathan Fuerth

Nested Class Summary
 
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
 ErraiIdGenerator<T> getValueGenerator()
          Returns a generator for the values of this attribute.
 boolean isGeneratedValue()
          Can the attribute's value be generated (usually for ID attributes).
 
Methods inherited from interface org.jboss.errai.jpa.client.local.ErraiAttribute
cascades, get, set, toString
 
Methods inherited from interface javax.persistence.metamodel.SingularAttribute
getType, isId, isOptional, isVersion
 
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

isGeneratedValue

boolean isGeneratedValue()
Can the attribute's value be generated (usually for ID attributes).


getValueGenerator

ErraiIdGenerator<T> getValueGenerator()
Returns a generator for the values of this attribute. Only works for attributes that are annotated with @GeneratedValue.

Returns:
the ID generator for this generated attribute. Never null.
Throws:
UnsupportedOperationException - if this attribute is not a @GeneratedValue.

Errai 3.0.1-SNAPSHOT

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