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 addMethod(Method method)
           
 void addProperty(Property field)
           
 void addSupertype(Supertype entityType)
           
 int compareTo(EntityType o)
           
 Set<Annotation> getAnnotations()
           
 TypeCategory getCategory()
           
 Set<Constructor> getConstructors()
           
 String getLocalGenericName()
           
 String getLocalRawName()
           
 Set<Method> getMethods()
           
 TypeCategory getOriginalCategory()
           
 String getPrefix()
           
 Set<Property> getProperties()
           
 Supertype getSuperType()
           
 Collection<Supertype> getSuperTypes()
           
 String getUncapSimpleName()
           
 boolean hasEntityFields()
           
 boolean hasLists()
           
 boolean hasMaps()
           
 void include(Supertype supertype)
           
 
Methods inherited from class com.mysema.query.codegen.TypeAdapter
appendLocalGenericName, appendLocalRawName, as, asArrayType, equals, getFullName, getLocalGenericName, getLocalRawName, getPackageName, getParameter, getParameterCount, getPrimitiveName, getSelfOrValueType, getSimpleName, getType, hashCode, 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)

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>

getAnnotations

public Set<Annotation> getAnnotations()

getCategory

public TypeCategory getCategory()
Specified by:
getCategory in interface Type
Overrides:
getCategory in class TypeAdapter
Returns:

getConstructors

public Set<Constructor> getConstructors()

getLocalGenericName

public String getLocalGenericName()

getLocalRawName

public String getLocalRawName()

getMethods

public Set<Method> getMethods()

getOriginalCategory

public TypeCategory getOriginalCategory()

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
Returns:

hasLists

public boolean hasLists()

hasMaps

public boolean hasMaps()

include

public void include(Supertype supertype)


Copyright © 2007-2010 Mysema Ltd. All Rights Reserved.