Class BasicTypeImpl<X>

  • Type Parameters:
    X - The type of the represented basic type
    All Implemented Interfaces:
    jakarta.persistence.metamodel.BasicType<X>, jakarta.persistence.metamodel.Type<X>, Serializable

    public class BasicTypeImpl<X>
    extends TypeImpl<X>
    implements jakarta.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
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface jakarta.persistence.metamodel.Type

        jakarta.persistence.metamodel.Type.PersistenceType
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BasicTypeImpl​(Class<X> javaClass)  
    • Constructor Detail

      • BasicTypeImpl

        protected BasicTypeImpl​(Class<X> javaClass)
    • Method Detail

      • getPersistenceType

        public jakarta.persistence.metamodel.Type.PersistenceType getPersistenceType()
        Return the persistence type.
        Specified by:
        getPersistenceType in interface jakarta.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)
        Specified by:
        isEntity in class TypeImpl<X>
        Returns:
      • isIdentifiableType

        protected boolean isIdentifiableType()
        INTERNAL: Return whether this type is identifiable. This would be EntityType and MappedSuperclassType
        Specified by:
        isIdentifiableType in class TypeImpl<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:
        isManagedType in class TypeImpl<X>
        Returns:
      • isMappedSuperclass

        public boolean isMappedSuperclass()
        INTERNAL: Return whether this type is an MappedSuperclass (true) or Entity (false) or Embeddable (false)
        Specified by:
        isMappedSuperclass in class TypeImpl<X>
        Returns:
      • toStringHelper

        protected void toStringHelper​(StringBuffer aBuffer)
        INTERNAL: Append the partial string representation of the receiver to the StringBuffer.
        Specified by:
        toStringHelper in class TypeImpl<X>