com.mysema.query.codegen
Class EntityType

java.lang.Object
  extended by com.mysema.query.codegen.TypeAdapter
      extended by 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

Constructor Summary
EntityType(String prefix, Type type)
           
EntityType(String prefix, Type type, Set<Supertype> superTypes)
           
 
Method Summary
 void addAnnotation(Annotation annotation)
           
 void addConstructor(Constructor co)
           
 void addDelegate(Delegate delegate)
           
 void addMethod(Method method)
           
 void addProperty(Property field)
           
 void addSupertype(Supertype entityType)
           
 int compareTo(EntityType o)
           
 boolean equals(Object o)
           
<T extends Annotation>
T
getAnnotation(Class<T> type)
           
 Collection<Annotation> getAnnotations()
           
 TypeCategory getCategory()
           
 Set<Constructor> getConstructors()
           
 Map<Object,Object> getData()
           
 Set<Delegate> getDelegates()
           
 String getFullName()
           
 String getLocalGenericName()
           
 String getLocalRawName()
           
 Set<Method> getMethods()
           
 TypeCategory getOriginalCategory()
           
 String getPackageName()
           
 String getPrefix()
           
 Set<Property> getProperties()
           
 Supertype getSuperType()
           
 Collection<Supertype> getSuperTypes()
           
 String getUncapSimpleName()
           
 boolean hasEntityFields()
           
 int hashCode()
           
 boolean hasLists()
           
 boolean hasMaps()
           
 void include(Supertype supertype)
           
 
Methods inherited from class com.mysema.query.codegen.TypeAdapter
appendLocalGenericName, appendLocalRawName, as, asArrayType, getLocalGenericName, getLocalRawName, getParameter, getParameterCount, getPrimitiveName, getSelfOrValueType, getSimpleName, getType, isFinal, isPrimitive, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityType

public EntityType(String prefix,
                  Type type)

EntityType

public EntityType(String prefix,
                  Type type,
                  Set<Supertype> superTypes)
Method Detail

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.