com.mysema.query.codegen
Class EntityType
java.lang.Object
com.mysema.query.codegen.TypeAdapter
com.mysema.query.codegen.EntityType
- All Implemented Interfaces:
- Type, Comparable<EntityType>
public final class EntityType
- extends 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.query.codegen.TypeAdapter |
appendLocalGenericName, appendLocalRawName, as, asArrayType, getLocalGenericName, getLocalRawName, getParameter, getParameterCount, getPrimitiveName, getSelfOrValueType, getSimpleName, getType, isFinal, isPrimitive, toString |
EntityType
public EntityType(String prefix,
Type type)
EntityType
public EntityType(String prefix,
Type type,
Set<Supertype> superTypes)
addAnnotation
public void addAnnotation(Annotation annotation)
addConstructor
public void addConstructor(Constructor co)
addMethod
public void addMethod(Method method)
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>
getAnnotation
public <T extends Annotation> T getAnnotation(Class<T> type)
getAnnotations
public Collection<Annotation> getAnnotations()
getCategory
public TypeCategory getCategory()
- Specified by:
getCategory
in interface Type
- Overrides:
getCategory
in class TypeAdapter
getConstructors
public Set<Constructor> getConstructors()
getLocalGenericName
public String getLocalGenericName()
getLocalRawName
public String getLocalRawName()
getMethods
public Set<Method> getMethods()
getDelegates
public Set<Delegate> getDelegates()
getOriginalCategory
public TypeCategory getOriginalCategory()
getPackageName
public String getPackageName()
- Specified by:
getPackageName
in interface Type
- Overrides:
getPackageName
in class TypeAdapter
getFullName
public String getFullName()
- Specified by:
getFullName
in interface Type
- Overrides:
getFullName
in class TypeAdapter
getPrefix
public String getPrefix()
getProperties
public Set<Property> getProperties()
getSuperType
@Nullable
public Supertype getSuperType()
getSuperTypes
public Collection<Supertype> getSuperTypes()
getUncapSimpleName
public String getUncapSimpleName()
hasEntityFields
public boolean hasEntityFields()
- Specified by:
hasEntityFields
in interface Type
- Overrides:
hasEntityFields
in class TypeAdapter
hasLists
public boolean hasLists()
hasMaps
public boolean hasMaps()
getData
public Map<Object,Object> getData()
include
public void include(Supertype supertype)
equals
public boolean equals(Object o)
- Overrides:
equals
in class TypeAdapter
hashCode
public int hashCode()
- Overrides:
hashCode
in class TypeAdapter
Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.