com.mysema.query.codegen
Class EntityType

java.lang.Object
  extended by com.mysema.codegen.model.TypeAdapter
      extended by com.mysema.query.codegen.EntityType
All Implemented Interfaces:
com.mysema.codegen.model.Type, Comparable<EntityType>

public final class EntityType
extends com.mysema.codegen.model.TypeAdapter
implements Comparable<EntityType>

EntityType represents a model of a query domain type with properties

Version:
$Id$
Author:
tiwe

Constructor Summary
EntityType(String prefix, com.mysema.codegen.model.Type type)
           
EntityType(String prefix, com.mysema.codegen.model.Type type, Set<Supertype> superTypes)
           
 
Method Summary
 void addAnnotation(Annotation annotation)
           
 void addConstructor(com.mysema.codegen.model.Constructor co)
           
 void addDelegate(Delegate delegate)
           
 void addMethod(Method method)
           
 void addProperty(Property field)
           
 void addSupertype(Supertype entityType)
           
 int compareTo(EntityType o)
           
 boolean equals(Object o)
           
<T extends Annotation>
T
getAnnotation(Class<T> type)
           
 Collection<Annotation> getAnnotations()
           
 com.mysema.codegen.model.TypeCategory getCategory()
           
 Set<com.mysema.codegen.model.Constructor> getConstructors()
           
 Map<Object,Object> getData()
           
 Set<Delegate> getDelegates()
           
 Set<String> getEscapedPropertyNames()
           
 String getFullName()
           
 Set<Method> getMethods()
           
 com.mysema.codegen.model.TypeCategory getOriginalCategory()
           
 String getPackageName()
           
 String getPrefix()
           
 Set<Property> getProperties()
           
 Set<String> getPropertyNames()
           
 Supertype getSuperType()
           
 Collection<Supertype> getSuperTypes()
           
 String getUncapSimpleName()
           
 boolean hasEntityFields()
           
 int hashCode()
           
 boolean hasLists()
           
 boolean hasMaps()
           
 void include(Supertype supertype)
           
 
Methods inherited from class com.mysema.codegen.model.TypeAdapter
as, asArrayType, getComponentType, getGenericName, getGenericName, getParameters, getPrimitiveName, getRawName, getSimpleName, getType, 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,
                  com.mysema.codegen.model.Type type)

EntityType

public EntityType(String prefix,
                  com.mysema.codegen.model.Type type,
                  Set<Supertype> superTypes)
Method Detail

addAnnotation

public void addAnnotation(Annotation annotation)

addConstructor

public void addConstructor(com.mysema.codegen.model.Constructor co)

addDelegate

public void addDelegate(Delegate delegate)

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>

equals

public boolean equals(Object o)
Overrides:
equals in class com.mysema.codegen.model.TypeAdapter

getAnnotation

public <T extends Annotation> T getAnnotation(Class<T> type)

getAnnotations

public Collection<Annotation> getAnnotations()

getCategory

public com.mysema.codegen.model.TypeCategory getCategory()
Specified by:
getCategory in interface com.mysema.codegen.model.Type
Overrides:
getCategory in class com.mysema.codegen.model.TypeAdapter

getConstructors

public Set<com.mysema.codegen.model.Constructor> getConstructors()

getData

public Map<Object,Object> getData()

getDelegates

public Set<Delegate> getDelegates()

getFullName

public String getFullName()
Specified by:
getFullName in interface com.mysema.codegen.model.Type
Overrides:
getFullName in class com.mysema.codegen.model.TypeAdapter

getMethods

public Set<Method> getMethods()

getOriginalCategory

public com.mysema.codegen.model.TypeCategory getOriginalCategory()

getPackageName

public String getPackageName()
Specified by:
getPackageName in interface com.mysema.codegen.model.Type
Overrides:
getPackageName in class com.mysema.codegen.model.TypeAdapter

getPrefix

public String getPrefix()

getProperties

public Set<Property> getProperties()

getSuperType

@Nullable
public Supertype getSuperType()

getSuperTypes

public Collection<Supertype> getSuperTypes()

getUncapSimpleName

public String getUncapSimpleName()

hashCode

public int hashCode()
Overrides:
hashCode in class com.mysema.codegen.model.TypeAdapter

hasEntityFields

public boolean hasEntityFields()

hasLists

public boolean hasLists()

hasMaps

public boolean hasMaps()

include

public void include(Supertype supertype)

getPropertyNames

public Set<String> getPropertyNames()

getEscapedPropertyNames

public Set<String> getEscapedPropertyNames()


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