com.mysema.query.codegen
Class EntityModel

java.lang.Object
  extended by com.mysema.query.codegen.TypeModelAdapter
      extended by com.mysema.query.codegen.EntityModel
All Implemented Interfaces:
TypeModel, Comparable<EntityModel>

public final class EntityModel
extends TypeModelAdapter
implements Comparable<EntityModel>

EntityModel represents a model of a query domain type with properties

Version:
$Id$
Author:
tiwe

Field Summary
 
Fields inherited from class com.mysema.query.codegen.TypeModelAdapter
typeModel
 
Constructor Summary
EntityModel(String prefix, TypeModel typeModel)
           
EntityModel(String prefix, TypeModel typeModel, Collection<String> superTypes)
           
 
Method Summary
 void addAnnotation(Annotation annotation)
           
 void addConstructor(ConstructorModel co)
           
 void addMethod(MethodModel method)
           
 void addProperty(PropertyModel field)
           
 int compareTo(EntityModel o)
           
 Set<Annotation> getAnnotations()
           
 TypeCategory getCategory()
           
 Set<ConstructorModel> getConstructors()
           
 String getLocalGenericName()
           
 String getLocalRawName()
           
 Set<MethodModel> getMethods()
           
 TypeCategory getOriginalCategory()
           
 String getPrefix()
           
 Set<PropertyModel> getProperties()
           
 EntityModel getSuperModel()
           
 Collection<String> getSuperTypes()
           
 String getUncapSimpleName()
           
 boolean hasEntityFields()
           
 boolean hasLists()
           
 boolean hasMaps()
           
 void include(EntityModel clazz)
           
 void setSuperModel(EntityModel superModel)
           
 
Methods inherited from class com.mysema.query.codegen.TypeModelAdapter
as, equals, getFullName, getLocalGenericName, getLocalGenericName, getLocalRawName, getLocalRawName, getPackageName, getParameter, getParameterCount, getPrimitiveName, getSelfOrValueType, getSimpleName, hashCode, isFinal, isPrimitive, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EntityModel

public EntityModel(String prefix,
                   TypeModel typeModel)

EntityModel

public EntityModel(String prefix,
                   TypeModel typeModel,
                   Collection<String> superTypes)
Method Detail

addConstructor

public void addConstructor(ConstructorModel co)

addAnnotation

public void addAnnotation(Annotation annotation)

addMethod

public void addMethod(MethodModel method)

addProperty

public void addProperty(PropertyModel field)

compareTo

public int compareTo(EntityModel o)
Specified by:
compareTo in interface Comparable<EntityModel>

getCategory

public TypeCategory getCategory()
Specified by:
getCategory in interface TypeModel
Overrides:
getCategory in class TypeModelAdapter
Returns:

getConstructors

public Set<ConstructorModel> getConstructors()

getLocalGenericName

public String getLocalGenericName()

getLocalRawName

public String getLocalRawName()

getMethods

public Set<MethodModel> getMethods()

getOriginalCategory

public TypeCategory getOriginalCategory()

getPrefix

public String getPrefix()

getProperties

public Set<PropertyModel> getProperties()

getSuperModel

@Nullable
public EntityModel getSuperModel()

getSuperTypes

public Collection<String> getSuperTypes()

getUncapSimpleName

public String getUncapSimpleName()

hasEntityFields

public boolean hasEntityFields()
Specified by:
hasEntityFields in interface TypeModel
Overrides:
hasEntityFields in class TypeModelAdapter
Returns:

hasLists

public boolean hasLists()

hasMaps

public boolean hasMaps()

getAnnotations

public Set<Annotation> getAnnotations()

include

public void include(EntityModel clazz)

setSuperModel

public void setSuperModel(EntityModel superModel)


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