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 class EntityType
extends com.mysema.codegen.model.TypeAdapter
implements Comparable<EntityType>

EntityType represents a model of a query domain type with properties

Author:
tiwe

Field Summary
 
Fields inherited from class com.mysema.codegen.model.TypeAdapter
type
 
Constructor Summary
EntityType(com.mysema.codegen.model.Type type)
           
EntityType(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 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()
           
 com.mysema.codegen.model.TypeCategory getOriginalCategory()
           
 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, getFullName, getGenericName, getGenericName, getPackageName, 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(com.mysema.codegen.model.Type type)

EntityType

public EntityType(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)

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()

getOriginalCategory

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

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-2011 Mysema Ltd. All Rights Reserved.