public abstract class AbstractType<X> extends Object implements Type<X>, Serializable
Type hierarchy of interfaces.Type.PersistenceType| Modifier | Constructor and Description |
|---|---|
protected |
AbstractType(Class<X> javaType)
Instantiates the type based on the given Java type.
|
protected |
AbstractType(Class<X> javaType,
String typeName)
Instantiates the type based on the given Java type.
|
| Modifier and Type | Method and Description |
|---|---|
Class<X> |
getJavaType()
Return the represented Java type.
|
String |
getTypeName()
Obtains the type name.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPersistenceTypeprotected AbstractType(Class<X> javaType)
javaType - The Java type of the JPA model type.public Class<X> getJavaType()
null here in the case of either dynamic models or
entity classes mapped multiple times using entity-name. In these cases, the getTypeName() value
should be used.getJavaType in interface Type<X>public String getTypeName()
getJavaType() for detailsCopyright © 2018 JBoss by Red Hat. All rights reserved.