Class Types.Identifiable<X>

  • Type Parameters:
    X -
    All Implemented Interfaces:
    jakarta.persistence.metamodel.IdentifiableType<X>, jakarta.persistence.metamodel.ManagedType<X>, jakarta.persistence.metamodel.Type<X>
    Direct Known Subclasses:
    Types.Entity, Types.MappedSuper
    Enclosing class:
    Types

    public abstract static class Types.Identifiable<X>
    extends AbstractManagedType<X>
    implements jakarta.persistence.metamodel.IdentifiableType<X>
    Represents an abstract persistent type that has a persistent identity.
    Author:
    Pinaki Poddar
    • Field Detail

      • cls

        public final java.lang.Class<X> cls
    • Method Detail

      • hasVersionAttribute

        public boolean hasVersionAttribute()
        Whether or not the identifiable type has a version attribute.
        Specified by:
        hasVersionAttribute in interface jakarta.persistence.metamodel.IdentifiableType<X>
        Returns:
        boolean indicating whether or not the identifiable type has a version attribute
      • getSupertype

        public jakarta.persistence.metamodel.IdentifiableType<? super X> getSupertype()
        Return the identifiable type that corresponds to the most specific mapped superclass or entity extended by the entity or mapped superclass.
        Specified by:
        getSupertype in interface jakarta.persistence.metamodel.IdentifiableType<X>
        Returns:
        super type of identifiable type or null if no such super type
      • hasIdAttribute

        public boolean hasIdAttribute()
      • hasSingleIdAttribute

        public boolean hasSingleIdAttribute()
        Whether or not the identifiable type uses an attribute to represents its persistent identity. Returns true for a simple or embedded identifier. Returns false for an classes that use separate identifier class for its persistent identity.
        Specified by:
        hasSingleIdAttribute in interface jakarta.persistence.metamodel.IdentifiableType<X>
        Returns:
        boolean indicating whether or not the identifiable type represents its persistent identity via a single identifier attribute.
      • getIdType

        public jakarta.persistence.metamodel.Type<?> getIdType()
        Return the type that represents the type of the id.
        Specified by:
        getIdType in interface jakarta.persistence.metamodel.IdentifiableType<X>
        Returns:
        type of identifier
      • getJavaType

        public final java.lang.Class<X> getJavaType()
        Specified by:
        getJavaType in interface jakarta.persistence.metamodel.Type<X>
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object