Class TypeImpl<X>
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.metamodel.TypeImpl<X>
-
- Type Parameters:
X- The type of the represented object or attribute
- All Implemented Interfaces:
java.io.Serializable,javax.persistence.metamodel.Type<X>
- Direct Known Subclasses:
BasicTypeImpl,ManagedTypeImpl
public abstract class TypeImpl<X> extends java.lang.Object implements javax.persistence.metamodel.Type<X>, java.io.SerializablePurpose: 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:
Type, Serialized Form
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.lang.Class<X>getJavaType()Return the represented Java type.java.lang.Class<X>getJavaType(java.lang.ClassLoader classLoader)Return the represented Java type.java.lang.StringgetJavaTypeName()Return the name of the java typeabstract booleanisEntity()INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)protected abstract booleanisIdentifiableType()INTERNAL: Return whether this type is identifiable.protected abstract booleanisManagedType()INTERNAL: Return whether this type is identifiable.abstract booleanisMappedSuperclass()INTERNAL: Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)java.lang.StringtoString()INTERNAL: Return the string representation of the receiver.protected abstract voidtoStringHelper(java.lang.StringBuffer aBuffer)INTERNAL: Append the partial string representation of the receiver to the StringBuffer.
-
-
-
Method Detail
-
getJavaType
public java.lang.Class<X> getJavaType(java.lang.ClassLoader classLoader)
Return the represented Java type.- Returns:
- Java type
-
getJavaType
public java.lang.Class<X> getJavaType()
Return the represented Java type.- Specified by:
getJavaTypein interfacejavax.persistence.metamodel.Type<X>- Returns:
- Java type
-
getJavaTypeName
public java.lang.String getJavaTypeName()
Return the name of the java type
-
isEntity
public abstract boolean isEntity()
INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)- Returns:
-
isIdentifiableType
protected abstract boolean isIdentifiableType()
INTERNAL: Return whether this type is identifiable. This would be EntityType and MappedSuperclassType- Returns:
-
isManagedType
protected abstract boolean isManagedType()
INTERNAL: Return whether this type is identifiable. This would be EmbeddableType as well as EntityType and MappedSuperclassType- Returns:
-
isMappedSuperclass
public abstract boolean isMappedSuperclass()
INTERNAL: Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)- Returns:
-
toString
public java.lang.String toString()
INTERNAL: Return the string representation of the receiver.- Overrides:
toStringin classjava.lang.Object
-
toStringHelper
protected abstract void toStringHelper(java.lang.StringBuffer aBuffer)
INTERNAL: Append the partial string representation of the receiver to the StringBuffer.
-
-