com.mysema.query.codegen
Class Property

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

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

Property represents a property in a query domain type.

Version:
$Id$
Author:
tiwe

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

Constructor Detail

Property

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

Property

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

Property

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

Property

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

addAnnotation

public void addAnnotation(java.lang.annotation.Annotation annotation)

compareTo

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

createCopy

public Property createCopy(EntityType targetModel)

getAnnotation

public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> type)

getAnnotations

public java.util.Collection<java.lang.annotation.Annotation> getAnnotations()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

getDeclaringType

public EntityType getDeclaringType()

getEscapedName

public java.lang.String getEscapedName()

getInits

public java.lang.String[] getInits()

getName

public java.lang.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 java.lang.String toString()
Overrides:
toString in class java.lang.Object


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