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 final class EntityType
- extends com.mysema.codegen.model.TypeAdapter
- implements Comparable<EntityType>
EntityType represents a model of a query domain type with properties
- Version:
- $Id$
- Author:
- tiwe
Methods inherited from class com.mysema.codegen.model.TypeAdapter |
as, asArrayType, getGenericName, getGenericName, getParameters, getPrimitiveName, getRawName, getSimpleName, getType, isFinal, isPrimitive, toString |
EntityType
public EntityType(String prefix,
com.mysema.codegen.model.Type type)
EntityType
public EntityType(String prefix,
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)
addMethod
public void addMethod(Method method)
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()
getFullName
public String getFullName()
- Specified by:
getFullName
in interface com.mysema.codegen.model.Type
- Overrides:
getFullName
in class com.mysema.codegen.model.TypeAdapter
getGenericName
public String getGenericName(boolean asArgType,
com.mysema.codegen.model.Type type)
getLocalGenericName
public String getLocalGenericName()
getLocalRawName
public String getLocalRawName()
getMethods
public Set<Method> getMethods()
getOriginalCategory
public com.mysema.codegen.model.TypeCategory getOriginalCategory()
getPackageName
public String getPackageName()
- Specified by:
getPackageName
in interface com.mysema.codegen.model.Type
- Overrides:
getPackageName
in class com.mysema.codegen.model.TypeAdapter
getPrefix
public String getPrefix()
getProperties
public Set<Property> getProperties()
getRawName
public String getRawName(com.mysema.codegen.model.Type type)
getSuperType
@Nullable
public Supertype getSuperType()
getSuperTypes
public Collection<Supertype> getSuperTypes()
getUncapSimpleName
public String getUncapSimpleName()
hasEntityFields
public boolean hasEntityFields()
hashCode
public int hashCode()
- Overrides:
hashCode
in class com.mysema.codegen.model.TypeAdapter
hasLists
public boolean hasLists()
hasMaps
public boolean hasMaps()
include
public void include(Supertype supertype)
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.