org.hibernate.ejb.metamodel
Class AbstractType<X>

java.lang.Object
  extended by org.hibernate.ejb.metamodel.AbstractType<X>
All Implemented Interfaces:
Serializable, Type<X>
Direct Known Subclasses:
AbstractManagedType

public abstract class AbstractType<X>
extends Object
implements Type<X>, Serializable

Defines commonality for the JPA Type hierarchy of interfaces. This adds a type name so we don't rely on the class name. That allows for non-class-based (metadata-driven) models. --koehn

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface javax.persistence.metamodel.Type
Type.PersistenceType
 
Constructor Summary
AbstractType(Class<X> javaType)
           
 
Method Summary
 Class<X> getJavaType()
           
 String getTypeName()
           
 void setTypeName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.persistence.metamodel.Type
getPersistenceType
 

Constructor Detail

AbstractType

public AbstractType(Class<X> javaType)
Method Detail

getJavaType

public Class<X> getJavaType()
Specified by:
getJavaType in interface Type<X>

getTypeName

public String getTypeName()

setTypeName

public void setTypeName(String name)


Copyright © 2001-2015 Red Hat, Inc. All Rights Reserved.