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 |
appendLocalGenericName, appendLocalRawName, as, asArrayType, equals, getFullName, getLocalGenericName, getLocalRawName, getPackageName, getParameter, getParameterCount, getPrimitiveName, getSelfOrValueType, getSimpleName, getTypeModel, 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)
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.