Errai 3.0.1-SNAPSHOT

org.jboss.errai.jpa.client.local
Class ErraiEntityType<X>

java.lang.Object
  extended by org.jboss.errai.jpa.client.local.ErraiManagedType<X>
      extended by org.jboss.errai.jpa.client.local.ErraiIdentifiableType<X>
          extended by org.jboss.errai.jpa.client.local.ErraiEntityType<X>
Type Parameters:
X - The actual entity type described by this metatype.
All Implemented Interfaces:
javax.persistence.metamodel.Bindable<X>, javax.persistence.metamodel.EntityType<X>, javax.persistence.metamodel.IdentifiableType<X>, javax.persistence.metamodel.ManagedType<X>, javax.persistence.metamodel.Type<X>

public abstract class ErraiEntityType<X>
extends ErraiIdentifiableType<X>
implements javax.persistence.metamodel.EntityType<X>

Errai implementation of the JPA EntityType metamodel interface. Specializes IdentifiableType by adding name and bindableType properties.

Author:
Jonathan Fuerth

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.persistence.metamodel.Type
javax.persistence.metamodel.Type.PersistenceType
 
Nested classes/interfaces inherited from interface javax.persistence.metamodel.Bindable
javax.persistence.metamodel.Bindable.BindableType
 
Field Summary
 
Fields inherited from class org.jboss.errai.jpa.client.local.ErraiManagedType
javaType
 
Constructor Summary
ErraiEntityType(String name, Class<X> javaType)
           
 
Method Summary
 Class<X> getBindableJavaType()
          Return the Java type of the represented object.
 javax.persistence.metamodel.Bindable.BindableType getBindableType()
          Return the bindable type of the represented object.
 String getName()
          Return the entity name.
 String toString()
           
 
Methods inherited from class org.jboss.errai.jpa.client.local.ErraiIdentifiableType
addAttribute, deliverPostLoad, deliverPostPersist, deliverPostRemove, deliverPostUpdate, deliverPrePersist, deliverPreRemove, deliverPreUpdate, fromJson, getDeclaredId, getDeclaredVersion, getId, getIdClassAttributes, getIdType, getPersistenceType, getSupertype, getVersion, hasSingleIdAttribute, hasVersionAttribute
 
Methods inherited from class org.jboss.errai.jpa.client.local.ErraiManagedType
getAttribute, getAttributes, getCollection, getCollection, getDeclaredAttribute, getDeclaredAttributes, getDeclaredCollection, getDeclaredCollection, getDeclaredList, getDeclaredList, getDeclaredMap, getDeclaredMap, getDeclaredPluralAttributes, getDeclaredSet, getDeclaredSet, getDeclaredSingularAttribute, getDeclaredSingularAttribute, getDeclaredSingularAttributes, getJavaType, getList, getList, getMap, getMap, getPluralAttributes, getSet, getSet, getSingularAttribute, getSingularAttribute, getSingularAttributes, getSubtypes, isSuperclassOf, mergeState, newInstance, parseInlineJson, parsePluralJsonReference, parseSingularJsonReference, toJson
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface javax.persistence.metamodel.IdentifiableType
getDeclaredId, getDeclaredVersion, getId, getIdClassAttributes, getIdType, getSupertype, getVersion, hasSingleIdAttribute, hasVersionAttribute
 
Methods inherited from interface javax.persistence.metamodel.ManagedType
getAttribute, getAttributes, getCollection, getCollection, getDeclaredAttribute, getDeclaredAttributes, getDeclaredCollection, getDeclaredCollection, getDeclaredList, getDeclaredList, getDeclaredMap, getDeclaredMap, getDeclaredPluralAttributes, getDeclaredSet, getDeclaredSet, getDeclaredSingularAttribute, getDeclaredSingularAttribute, getDeclaredSingularAttributes, getList, getList, getMap, getMap, getPluralAttributes, getSet, getSet, getSingularAttribute, getSingularAttribute, getSingularAttributes
 
Methods inherited from interface javax.persistence.metamodel.Type
getJavaType, getPersistenceType
 

Constructor Detail

ErraiEntityType

public ErraiEntityType(String name,
                       Class<X> javaType)
Method Detail

getBindableJavaType

public Class<X> getBindableJavaType()
Description copied from interface: javax.persistence.metamodel.Bindable
Return the Java type of the represented object. If the bindable type of the object is PLURAL_ATTRIBUTE, the Java element type is returned. If the bindable type is SINGULAR_ATTRIBUTE or ENTITY_TYPE, the Java type of the represented entity or attribute is returned.

Specified by:
getBindableJavaType in interface javax.persistence.metamodel.Bindable<X>
Returns:
Java type

getName

public String getName()
Description copied from interface: javax.persistence.metamodel.EntityType
Return the entity name.

Specified by:
getName in interface javax.persistence.metamodel.EntityType<X>
Returns:
entity name

getBindableType

public javax.persistence.metamodel.Bindable.BindableType getBindableType()
Description copied from interface: javax.persistence.metamodel.Bindable
Return the bindable type of the represented object.

Specified by:
getBindableType in interface javax.persistence.metamodel.Bindable<X>
Returns:
bindable type

toString

public String toString()
Overrides:
toString in class ErraiIdentifiableType<X>

Errai 3.0.1-SNAPSHOT

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