com.mysema.query.codegen
Class Property

java.lang.Object
  extended by com.mysema.query.codegen.Property
All Implemented Interfaces:
Comparable<Property>

@Immutable
public final class Property
extends Object
implements Comparable<Property>

Property represents a property in a query domain type.

Author:
tiwe

Constructor Summary
Property(EntityType declaringType, String name, String escapedName, com.mysema.codegen.model.Type type, String[] inits, boolean inherited)
           
Property(EntityType declaringType, String name, com.mysema.codegen.model.Type type)
           
Property(EntityType declaringType, String name, com.mysema.codegen.model.Type type, String[] inits)
           
Property(EntityType declaringType, String name, com.mysema.codegen.model.Type type, String[] inits, boolean inherited)
           
 
Method Summary
 void addAnnotation(Annotation annotation)
           
 int compareTo(Property o)
           
 Property createCopy(EntityType targetModel)
           
 boolean equals(Object o)
           
<T extends Annotation>
T
getAnnotation(Class<T> type)
           
 Collection<Annotation> getAnnotations()
           
 EntityType getDeclaringType()
           
 String getEscapedName()
           
 String[] getInits()
           
 String getName()
           
 com.mysema.codegen.model.Type getParameter(int i)
           
 com.mysema.codegen.model.Type getType()
           
 int hashCode()
           
 boolean isInherited()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property

public Property(EntityType declaringType,
                String name,
                com.mysema.codegen.model.Type type)

Property

public Property(EntityType declaringType,
                String name,
                com.mysema.codegen.model.Type type,
                String[] inits)

Property

public Property(EntityType declaringType,
                String name,
                com.mysema.codegen.model.Type type,
                String[] inits,
                boolean inherited)

Property

public Property(EntityType declaringType,
                String name,
                String escapedName,
                com.mysema.codegen.model.Type type,
                String[] inits,
                boolean inherited)
Method Detail

addAnnotation

public void addAnnotation(Annotation annotation)

compareTo

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

createCopy

public Property createCopy(EntityType targetModel)

getAnnotation

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

getAnnotations

public Collection<Annotation> getAnnotations()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

getDeclaringType

public EntityType getDeclaringType()

getEscapedName

public String getEscapedName()

getInits

public String[] getInits()

getName

public String getName()

getParameter

public com.mysema.codegen.model.Type getParameter(int i)

getType

public com.mysema.codegen.model.Type getType()

isInherited

public boolean isInherited()

toString

public String toString()
Overrides:
toString in class Object


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