com.mysema.query.codegen
Class EntityType
java.lang.Object
com.mysema.codegen.model.TypeAdapter
com.mysema.query.codegen.EntityType
- All Implemented Interfaces:
- com.mysema.codegen.model.Type, Comparable<EntityType>
public class EntityType
- extends com.mysema.codegen.model.TypeAdapter
- implements Comparable<EntityType>
EntityType represents a model of a query domain type with properties
- Author:
- tiwe
Fields inherited from class com.mysema.codegen.model.TypeAdapter |
type |
Methods inherited from class com.mysema.codegen.model.TypeAdapter |
as, asArrayType, getComponentType, getFullName, getGenericName, getGenericName, getJavaClass, getPackageName, getParameters, getRawName, getSimpleName, getType, isFinal, isPrimitive, toString |
EntityType
public EntityType(com.mysema.codegen.model.Type type)
EntityType
public EntityType(com.mysema.codegen.model.Type type,
Set<Supertype> superTypes)
addAnnotation
public void addAnnotation(Annotation annotation)
addConstructor
public void addConstructor(com.mysema.codegen.model.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 com.mysema.codegen.model.TypeAdapter
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> type)
getAnnotations
public Collection<Annotation> getAnnotations()
getCategory
public com.mysema.codegen.model.TypeCategory getCategory()
- Specified by:
getCategory
in interface com.mysema.codegen.model.Type
- Overrides:
getCategory
in class com.mysema.codegen.model.TypeAdapter
getConstructors
public Set<com.mysema.codegen.model.Constructor> getConstructors()
getData
public Map<Object,Object> getData()
getDelegates
public Set<Delegate> getDelegates()
getOriginalCategory
public com.mysema.codegen.model.TypeCategory getOriginalCategory()
getProperties
public Set<Property> getProperties()
getSuperType
@Nullable
public Supertype getSuperType()
getSuperTypes
public Set<Supertype> getSuperTypes()
getUncapSimpleName
public String getUncapSimpleName()
hashCode
public int hashCode()
- Overrides:
hashCode
in class com.mysema.codegen.model.TypeAdapter
hasArrays
public boolean hasArrays()
hasEntityFields
public boolean hasEntityFields()
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 com.mysema.codegen.model.Type getInnerType()
Copyright © 2007-2012 Mysema Ltd. All Rights Reserved.