Class EntityType

All Implemented Interfaces:
Type, Comparable<EntityType>

public class EntityType extends TypeAdapter implements Comparable<EntityType>
EntityType represents a model of a query domain type with properties
Author:
tiwe
  • Constructor Details

    • EntityType

      public EntityType(Type type)
      Create a new EntityType instance for the given type
      Parameters:
      type -
    • EntityType

      public EntityType(Type type, Function<EntityType,String> variableNameFunction)
      Create a new EntityType instance for the given type
      Parameters:
      type - the type to be used
      variableNameFunction - the variable name function to be used
    • EntityType

      public EntityType(Type type, Set<Supertype> superTypes)
      Create a new EntityType instance for the given type and superTypes
      Parameters:
      type -
      superTypes -
  • Method Details

    • addAnnotation

      public void addAnnotation(Annotation annotation)
    • addConstructor

      public void addConstructor(Constructor co)
    • addDelegate

      public void addDelegate(Delegate delegate)
    • addProperty

      public void addProperty(Property field)
    • addSupertype

      public void addSupertype(Supertype entityType)
    • compareTo

      public int compareTo(EntityType o)
      Specified by:
      compareTo in interface Comparable<EntityType>
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class TypeAdapter
    • getAnnotation

      public <T extends Annotation> T getAnnotation(Class<T> type)
    • getAnnotations

      public Collection<Annotation> getAnnotations()
    • as

      public Type as(TypeCategory category)
      Specified by:
      as in interface Type
      Overrides:
      as in class TypeAdapter
    • getCategory

      public TypeCategory getCategory()
      Specified by:
      getCategory in interface Type
      Overrides:
      getCategory in class TypeAdapter
    • getConstructors

      public Set<Constructor> getConstructors()
    • getData

      public Map<Object,Object> getData()
    • getDelegates

      public Set<Delegate> getDelegates()
    • getOriginalCategory

      public TypeCategory getOriginalCategory()
    • getProperties

      public Set<Property> getProperties()
    • getSuperType

      @Nullable public @Nullable Supertype getSuperType()
    • getSuperTypes

      public Set<Supertype> getSuperTypes()
    • getUncapSimpleName

      @Deprecated public String getUncapSimpleName()
      Deprecated.
    • getModifiedSimpleName

      public String getModifiedSimpleName()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class TypeAdapter
    • hasArrays

      public boolean hasArrays()
    • hasEntityFields

      public boolean hasEntityFields()
    • hasInits

      public boolean hasInits()
    • hasLists

      public boolean hasLists()
    • hasCollections

      public boolean hasCollections()
    • hasSets

      public boolean hasSets()
    • hasMaps

      public boolean hasMaps()
    • include

      public void include(Supertype supertype)
    • getPropertyNames

      public Set<String> getPropertyNames()
    • getEscapedPropertyNames

      public Set<String> getEscapedPropertyNames()
    • getInnerType

      public Type getInnerType()