public abstract class AbstractType<X>
extends java.lang.Object
implements javax.persistence.metamodel.Type<X>, java.io.Serializable
Type
hierarchy of interfaces.Modifier | Constructor and Description |
---|---|
protected |
AbstractType(java.lang.Class<X> javaType)
Instantiates the type based on the given Java type.
|
protected |
AbstractType(java.lang.Class<X> javaType,
java.lang.String typeName)
Instantiates the type based on the given Java type.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<X> |
getJavaType()
IMPL NOTE : The Hibernate version may return
null here in the case of either dynamic models or
entity classes mapped multiple times using entity-name. |
java.lang.String |
getTypeName()
Obtains the type name.
|
protected AbstractType(java.lang.Class<X> javaType)
javaType
- The Java type of the JPA model type.protected AbstractType(java.lang.Class<X> javaType, java.lang.String typeName)
javaType
- typeName
- public java.lang.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 javax.persistence.metamodel.Type<X>
public java.lang.String getTypeName()
getJavaType()
for detailsCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.