Class BasicTypeImpl<X>
- java.lang.Object
-
- org.eclipse.persistence.internal.jpa.metamodel.TypeImpl<X>
-
- org.eclipse.persistence.internal.jpa.metamodel.BasicTypeImpl<X>
-
- Type Parameters:
X- The type of the represented basic type
- All Implemented Interfaces:
java.io.Serializable,javax.persistence.metamodel.BasicType<X>,javax.persistence.metamodel.Type<X>
public class BasicTypeImpl<X> extends TypeImpl<X> implements javax.persistence.metamodel.BasicType<X>
Purpose: Provides the implementation for the Basic interface of the JPA 2.0 Metamodel API (part of the JSR-317 EJB 3.1 Criteria API)
Description: Instances of the type BasicType represent basic types (including temporal and enumerated types).
- Since:
- EclipseLink 1.2 - JPA 2.0
- See Also:
BasicType, Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedBasicTypeImpl(java.lang.Class<X> javaClass)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.persistence.metamodel.Type.PersistenceTypegetPersistenceType()Return the persistence type.booleanisEntity()INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)protected booleanisIdentifiableType()INTERNAL: Return whether this type is identifiable.protected booleanisManagedType()INTERNAL: Return whether this type is identifiable.booleanisMappedSuperclass()INTERNAL: Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)protected voidtoStringHelper(java.lang.StringBuffer aBuffer)INTERNAL: Append the partial string representation of the receiver to the StringBuffer.-
Methods inherited from class org.eclipse.persistence.internal.jpa.metamodel.TypeImpl
getJavaType, getJavaType, getJavaTypeName, toString
-
-
-
-
Constructor Detail
-
BasicTypeImpl
protected BasicTypeImpl(java.lang.Class<X> javaClass)
-
-
Method Detail
-
getPersistenceType
public javax.persistence.metamodel.Type.PersistenceType getPersistenceType()
Return the persistence type.- Specified by:
getPersistenceTypein interfacejavax.persistence.metamodel.Type<X>- Returns:
- persistence type
-
isEntity
public boolean isEntity()
INTERNAL: Return whether this type is an Entity (true) or MappedSuperclass (false) or Embeddable (false)
-
isIdentifiableType
protected boolean isIdentifiableType()
INTERNAL: Return whether this type is identifiable. This would be EntityType and MappedSuperclassType- Specified by:
isIdentifiableTypein classTypeImpl<X>- Returns:
-
isManagedType
protected boolean isManagedType()
INTERNAL: Return whether this type is identifiable. This would be EmbeddableType as well as EntityType and MappedSuperclassType- Specified by:
isManagedTypein classTypeImpl<X>- Returns:
-
isMappedSuperclass
public boolean isMappedSuperclass()
INTERNAL: Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)- Specified by:
isMappedSuperclassin classTypeImpl<X>- Returns:
-
toStringHelper
protected void toStringHelper(java.lang.StringBuffer aBuffer)
INTERNAL: Append the partial string representation of the receiver to the StringBuffer.- Specified by:
toStringHelperin classTypeImpl<X>
-
-