Top Description Fields Constructors Methods
org.eclipse.persistence.internal.jpa.metamodel

public abstract Class TypeImpl<X>

extends Object
implements Type<X>, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, jakarta.persistence.metamodel.Type
Known Direct Subclasses
org.eclipse.persistence.internal.jpa.metamodel.BasicTypeImpl, org.eclipse.persistence.internal.jpa.metamodel.ManagedTypeImpl
Type Parameters
<X>
The type of the represented object or attribute
Imports
java.io.Serializable, java.security.AccessController, .PrivilegedActionException, jakarta.persistence.metamodel.Type, org.eclipse.persistence.exceptions.ValidationException, org.eclipse.persistence.internal.helper.ConversionManager, org.eclipse.persistence.internal.security.PrivilegedAccessHelper, .PrivilegedClassForName, org.eclipse.persistence.logging.AbstractSessionLog, .SessionLog

Purpose: Provides the implementation for the Type interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)

Description: Instances of the type Type represent persistent object or attribute types.

Since
EclipseLink 1.2 - JPA 2.0
See Also
jakarta.persistence.metamodel.Type

Field Summary

Modifier and TypeField and Description
private Class<X>
javaClass

The Java Class in use that this Type represents

private String

Constructor Summary

AccessConstructor and Description
protected
TypeImpl(Class<X> javaClass)

protected
TypeImpl(Class<X> javaClass, String javaClassName)

Method Summary

Modifier and TypeMethod and Description
public Class<X>

Returns:

Java type
getJavaType
(ClassLoader classLoader)

Return the represented Java type.

public Class<X>

Returns:

Java type
getJavaType
()

Implements jakarta.persistence.metamodel.Type.getJavaType.

Return the represented Java type.
public String
getJavaTypeName()

Return the name of the java type

public abstract boolean
isEntity()

INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)

protected abstract boolean
isIdentifiableType()

INTERNAL: Return whether this type is identifiable.

protected abstract boolean
isManagedType()

INTERNAL: Return whether this type is identifiable.

public abstract boolean
isMappedSuperclass()

INTERNAL: Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)

public String
toString()

Overrides java.lang.Object.toString.

INTERNAL: Return the string representation of the receiver.
protected abstract void
toStringHelper(StringBuffer aBuffer)

INTERNAL: Append the partial string representation of the receiver to the StringBuffer.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

javaClassback to summary
private Class<X> javaClass

The Java Class in use that this Type represents

javaClassNameback to summary
private String javaClassName

Constructor Detail

TypeImplback to summary
protected TypeImpl(Class<X> javaClass)
TypeImplback to summary
protected TypeImpl(Class<X> javaClass, String javaClassName)

Method Detail

getJavaTypeback to summary
public Class<X> getJavaType(ClassLoader classLoader)

Return the represented Java type.

Returns:Class<X>

Java type

Annotations
@SuppressWarnings:unchecked
getJavaTypeback to summary
public Class<X> getJavaType()

Implements jakarta.persistence.metamodel.Type.getJavaType.

Return the represented Java type.

Returns:Class<X>

Java type

Annotations
@Override
getJavaTypeNameback to summary
public String getJavaTypeName()

Return the name of the java type

isEntityback to summary
public abstract boolean isEntity()

INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)

isIdentifiableTypeback to summary
protected abstract boolean isIdentifiableType()

INTERNAL: Return whether this type is identifiable. This would be EntityType and MappedSuperclassType

isManagedTypeback to summary
protected abstract boolean isManagedType()

INTERNAL: Return whether this type is identifiable. This would be EmbeddableType as well as EntityType and MappedSuperclassType

isMappedSuperclassback to summary
public abstract boolean isMappedSuperclass()

INTERNAL: Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

INTERNAL: Return the string representation of the receiver.

Returns:String

Doc from java.lang.Object.toString.

a string representation of the object.

Annotations
@Override
toStringHelperback to summary
protected abstract void toStringHelper(StringBuffer aBuffer)

INTERNAL: Append the partial string representation of the receiver to the StringBuffer.