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 addConstructor(ConstructorModel co)
           
 void addProperty(PropertyModel field)
           
 int compareTo(EntityModel o)
           
 Collection<ConstructorModel> getConstructors()
           
 String getLocalGenericName()
           
 String getLocalRawName()
           
 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, getCategory, 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)

addProperty

public void addProperty(PropertyModel field)

compareTo

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

getConstructors

public Collection<ConstructorModel> getConstructors()

getLocalGenericName

public String getLocalGenericName()

getLocalRawName

public String getLocalRawName()

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

hasLists

public boolean hasLists()

hasMaps

public boolean hasMaps()

include

public void include(EntityModel clazz)

setSuperModel

public void setSuperModel(EntityModel superModel)


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