public class EntityType extends TypeAdapter implements java.lang.Comparable<EntityType>
EntityType
represents a model of a query domain type with propertiestype
Constructor and Description |
---|
EntityType(Type type)
Create a new
EntityType instance for the given type |
EntityType(Type type,
java.util.function.Function<EntityType,java.lang.String> variableNameFunction)
Create a new
EntityType instance for the given type |
EntityType(Type type,
java.util.Set<Supertype> superTypes)
Create a new
EntityType instance for the given type and superTypes |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(java.lang.annotation.Annotation annotation) |
void |
addConstructor(Constructor co) |
void |
addDelegate(Delegate delegate) |
void |
addProperty(Property field) |
void |
addSupertype(Supertype entityType) |
Type |
as(TypeCategory category) |
int |
compareTo(EntityType o) |
boolean |
equals(java.lang.Object o) |
<T extends java.lang.annotation.Annotation> |
getAnnotation(java.lang.Class<T> type) |
java.util.Collection<java.lang.annotation.Annotation> |
getAnnotations() |
TypeCategory |
getCategory() |
java.util.Set<Constructor> |
getConstructors() |
java.util.Map<java.lang.Object,java.lang.Object> |
getData() |
java.util.Set<Delegate> |
getDelegates() |
java.util.Set<java.lang.String> |
getEscapedPropertyNames() |
Type |
getInnerType() |
java.lang.String |
getModifiedSimpleName() |
TypeCategory |
getOriginalCategory() |
java.util.Set<Property> |
getProperties() |
java.util.Set<java.lang.String> |
getPropertyNames() |
@Nullable Supertype |
getSuperType() |
java.util.Set<Supertype> |
getSuperTypes() |
java.lang.String |
getUncapSimpleName()
Deprecated.
|
boolean |
hasArrays() |
boolean |
hasCollections() |
boolean |
hasEntityFields() |
int |
hashCode() |
boolean |
hasInits() |
boolean |
hasLists() |
boolean |
hasMaps() |
boolean |
hasSets() |
void |
include(Supertype supertype) |
asArrayType, getComponentType, getEnclosingType, getFullName, getGenericName, getGenericName, getJavaClass, getPackageName, getParameters, getRawName, getSimpleName, getType, isFinal, isMember, isPrimitive, toString
public EntityType(Type type)
EntityType
instance for the given typetype
- public EntityType(Type type, java.util.function.Function<EntityType,java.lang.String> variableNameFunction)
EntityType
instance for the given typetype
- the type to be usedvariableNameFunction
- the variable name function to be usedpublic void addAnnotation(java.lang.annotation.Annotation annotation)
public void addConstructor(Constructor co)
public void addDelegate(Delegate delegate)
public void addProperty(Property field)
public void addSupertype(Supertype entityType)
public int compareTo(EntityType o)
compareTo
in interface java.lang.Comparable<EntityType>
public boolean equals(java.lang.Object o)
equals
in class TypeAdapter
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> type)
public java.util.Collection<java.lang.annotation.Annotation> getAnnotations()
public Type as(TypeCategory category)
as
in interface Type
as
in class TypeAdapter
public TypeCategory getCategory()
getCategory
in interface Type
getCategory
in class TypeAdapter
public java.util.Set<Constructor> getConstructors()
public java.util.Map<java.lang.Object,java.lang.Object> getData()
public java.util.Set<Delegate> getDelegates()
public TypeCategory getOriginalCategory()
public java.util.Set<Property> getProperties()
@Nullable public @Nullable Supertype getSuperType()
public java.util.Set<Supertype> getSuperTypes()
@Deprecated public java.lang.String getUncapSimpleName()
public java.lang.String getModifiedSimpleName()
public int hashCode()
hashCode
in class TypeAdapter
public boolean hasArrays()
public boolean hasEntityFields()
public boolean hasInits()
public boolean hasLists()
public boolean hasCollections()
public boolean hasSets()
public boolean hasMaps()
public void include(Supertype supertype)
public java.util.Set<java.lang.String> getPropertyNames()
public java.util.Set<java.lang.String> getEscapedPropertyNames()
public Type getInnerType()
Copyright © 2007–2021 Querydsl. All rights reserved.