com.mysema.query.codegen
Class EntityModel
java.lang.Object
com.mysema.query.codegen.TypeModelAdapter
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
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 |
EntityModel
public EntityModel(String prefix,
TypeModel typeModel)
EntityModel
public EntityModel(String prefix,
TypeModel typeModel,
Collection<String> superTypes)
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.