public class EntityType extends com.mysema.codegen.model.TypeAdapter implements Comparable<EntityType>
EntityType
represents a model of a query domain type with propertiesConstructor and Description |
---|
EntityType(com.mysema.codegen.model.Type type)
Create a new
EntityType instance for the given type |
EntityType(com.mysema.codegen.model.Type type,
com.google.common.base.Function<EntityType,String> variableNameFunction)
Create a new
EntityType instance for the given type |
EntityType(com.mysema.codegen.model.Type type,
Set<Supertype> superTypes)
Create a new
EntityType instance for the given type and superTypes |
Modifier and Type | Method and Description |
---|---|
void |
addAnnotation(Annotation annotation) |
void |
addConstructor(com.mysema.codegen.model.Constructor co) |
void |
addDelegate(Delegate delegate) |
void |
addProperty(Property field) |
void |
addSupertype(Supertype entityType) |
com.mysema.codegen.model.Type |
as(com.mysema.codegen.model.TypeCategory category) |
int |
compareTo(EntityType o) |
boolean |
equals(Object o) |
<T extends Annotation> |
getAnnotation(Class<T> type) |
Collection<Annotation> |
getAnnotations() |
com.mysema.codegen.model.TypeCategory |
getCategory() |
Set<com.mysema.codegen.model.Constructor> |
getConstructors() |
Map<Object,Object> |
getData() |
Set<Delegate> |
getDelegates() |
Set<String> |
getEscapedPropertyNames() |
com.mysema.codegen.model.Type |
getInnerType() |
String |
getModifiedSimpleName() |
com.mysema.codegen.model.TypeCategory |
getOriginalCategory() |
Set<Property> |
getProperties() |
Set<String> |
getPropertyNames() |
Supertype |
getSuperType() |
Set<Supertype> |
getSuperTypes() |
String |
getUncapSimpleName()
Deprecated.
|
boolean |
hasArrays() |
boolean |
hasCollections() |
boolean |
hasEntityFields() |
int |
hashCode() |
boolean |
hasInits() |
boolean |
hasLists() |
boolean |
hasMaps() |
boolean |
hasSets() |
void |
include(Supertype supertype) |
public EntityType(com.mysema.codegen.model.Type type)
EntityType
instance for the given typetype
- public EntityType(com.mysema.codegen.model.Type type, com.google.common.base.Function<EntityType,String> variableNameFunction)
EntityType
instance for the given typetype
- the type to be usedvariableNameFunction
- the variable name function to be usedpublic void addAnnotation(Annotation annotation)
public void addConstructor(com.mysema.codegen.model.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 Comparable<EntityType>
public boolean equals(Object o)
equals
in class com.mysema.codegen.model.TypeAdapter
public <T extends Annotation> T getAnnotation(Class<T> type)
public Collection<Annotation> getAnnotations()
public com.mysema.codegen.model.Type as(com.mysema.codegen.model.TypeCategory category)
as
in interface com.mysema.codegen.model.Type
as
in class com.mysema.codegen.model.TypeAdapter
public com.mysema.codegen.model.TypeCategory getCategory()
getCategory
in interface com.mysema.codegen.model.Type
getCategory
in class com.mysema.codegen.model.TypeAdapter
public Set<com.mysema.codegen.model.Constructor> getConstructors()
public com.mysema.codegen.model.TypeCategory getOriginalCategory()
@Deprecated public String getUncapSimpleName()
public String getModifiedSimpleName()
public int hashCode()
hashCode
in class com.mysema.codegen.model.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 com.mysema.codegen.model.Type getInnerType()
Copyright © 2007–2018 Querydsl. All rights reserved.