Class Types.Entity<X>

Type Parameters:
X - the represented Java type.
All Implemented Interfaces:
Bindable<X>, EntityType<X>, IdentifiableType<X>, ManagedType<X>, Type<X>
Enclosing class:
Types

public static class Types.Entity<X> extends Types.Identifiable<X> implements EntityType<X>
An entity type that is independently identifiable.
Since:
2.0.0
Author:
Pinaki Poddar
  • Field Details

    • cls

      public final Class<X> cls
  • Constructor Details

  • Method Details

    • getPersistenceType

      public Type.PersistenceType getPersistenceType()
      Specified by:
      getPersistenceType in interface Type<X>
    • getName

      public String getName()
      Specified by:
      getName in interface EntityType<X>
    • getBindableType

      public Bindable.BindableType getBindableType()
      Return the bindable type of the represented object.
      Specified by:
      getBindableType in interface Bindable<X>
      Returns:
      bindable type
    • getBindableJavaType

      public Class<X> getBindableJavaType()
      Return the Java type of the represented object. If the bindable type of the object is PLURAL_ATTRIBUTE, the Java element type is returned. If the bindable type is SINGULAR_ATTRIBUTE or ENTITY_TYPE, the Java type of the represented entity or attribute is returned.
      Specified by:
      getBindableJavaType in interface Bindable<X>
      Returns:
      Java type
    • getJavaType

      public final Class<X> getJavaType()
      Specified by:
      getJavaType in interface Type<X>
    • toString

      public String toString()
      Overrides:
      toString in class Object