public abstract class AbstractType<X> extends Object implements javax.persistence.metamodel.Type<X>, Serializable
Type
hierarchy of interfaces.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()
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. |
String |
getTypeName()
Obtains the type name.
|
protected 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 javax.persistence.metamodel.Type<X>
public String getTypeName()
getJavaType()
for detailsCopyright © 2013. All rights reserved.