|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.codehaus.groovy.grails.commons.DefaultGrailsDomainClassProperty
public class DefaultGrailsDomainClassProperty extends java.lang.Object
Represents a property of a domain class and contains meta information about the properties relationships, naming conventions and type.
Constructor Summary | |
DefaultGrailsDomainClassProperty(GrailsDomainClass domainClass, java.beans.PropertyDescriptor descriptor)
Constructor. |
|
DefaultGrailsDomainClassProperty(GrailsDomainClass domainClass, java.beans.PropertyDescriptor descriptor, java.util.Map defaultConstraints)
Constructor. |
Method Summary | |
---|---|
boolean
|
equals(java.lang.Object o)
|
GrailsDomainClass
|
getComponent()
|
GrailsDomainClass
|
getDomainClass()
|
int
|
getFetchMode()
|
java.lang.String
|
getFieldName()
|
java.lang.String
|
getName()
|
java.lang.String
|
getNaturalName()
|
GrailsDomainClassProperty
|
getOtherSide()
|
GrailsDomainClass
|
getReferencedDomainClass()
|
java.lang.String
|
getReferencedPropertyName()
|
java.lang.Class
|
getReferencedPropertyType()
|
java.lang.Class
|
getType()
|
java.lang.String
|
getTypePropertyName()
|
boolean
|
isAssociation()
|
boolean
|
isBasicCollectionType()
|
boolean
|
isBidirectional()
|
boolean
|
isCircular()
|
boolean
|
isDerived()
|
boolean
|
isEmbedded()
|
boolean
|
isEnum()
|
boolean
|
isHasOne()
|
boolean
|
isIdentity()
|
boolean
|
isInherited()
|
boolean
|
isManyToMany()
|
boolean
|
isManyToOne()
|
boolean
|
isOneToMany()
|
boolean
|
isOneToOne()
|
boolean
|
isOptional()
|
boolean
|
isOwningSide()
|
boolean
|
isPersistent()
|
void
|
setBasicCollectionType(boolean b)
|
protected void
|
setBidirectional(boolean bidirectional)
|
void
|
setDerived(boolean derived)
|
void
|
setEmbedded(boolean isEmbedded)
|
protected void
|
setHasOne(boolean isHasOne)
|
void
|
setIdentity(boolean b)
|
protected void
|
setManyToMany(boolean manyToMany)
|
protected void
|
setManyToOne(boolean manyToOne)
|
protected void
|
setOneToMany(boolean oneToMany)
|
protected void
|
setOneToOne(boolean oneToOne)
|
void
|
setOtherSide(GrailsDomainClassProperty property)
|
void
|
setOwningSide(boolean b)
|
protected void
|
setPersistent(boolean persistent)
|
void
|
setReferencePropertyName(java.lang.String name)
|
void
|
setReferencedDomainClass(GrailsDomainClass referencedDomainClass)
|
protected void
|
setReferencedPropertyType(java.lang.Class referencedPropertyType)
|
java.lang.String
|
toString()
|
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(), java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
public DefaultGrailsDomainClassProperty(GrailsDomainClass domainClass, java.beans.PropertyDescriptor descriptor)
public DefaultGrailsDomainClassProperty(GrailsDomainClass domainClass, PropertyDescriptor descriptor, MapdefaultConstraints) { public DefaultGrailsDomainClassProperty(GrailsDomainClass domainClass, java.beans.PropertyDescriptor descriptor, java.util.Map defaultConstraints)
Method Detail |
---|
if (o instanceof GrailsDomainClassProperty) { public boolean equals(java.lang.Object o)
public GrailsDomainClass getComponent()
public GrailsDomainClass getDomainClass()
public int getFetchMode()
public java.lang.String getFieldName()
public java.lang.String getName()
public java.lang.String getNaturalName()
public GrailsDomainClassProperty getOtherSide()
public GrailsDomainClass getReferencedDomainClass()
public java.lang.String getReferencedPropertyName()
return getType(); public java.lang.Class getReferencedPropertyType()
* @see org.codehaus.groovy.grails.domain.GrailsDomainClassProperty#isPersistant() public java.lang.Class getType()
public java.lang.String getTypePropertyName()
public boolean isAssociation()
public boolean isBasicCollectionType()
public boolean isBidirectional()
} public boolean isCircular()
public boolean isDerived()
public boolean isEmbedded()
public boolean isEnum()
public boolean isHasOne()
public boolean isIdentity()
public boolean isInherited()
public boolean isManyToMany()
public boolean isManyToOne()
public boolean isOneToMany()
public boolean isOneToOne()
public boolean isOptional()
public boolean isOwningSide()
public boolean isPersistent()
public void setBasicCollectionType(boolean b)
protected void setBidirectional(boolean bidirectional)
public void setDerived(boolean derived)
public void setEmbedded(boolean isEmbedded)
protected void setHasOne(boolean isHasOne)
public void setIdentity(boolean b)
protected void setManyToMany(boolean manyToMany)
protected void setManyToOne(boolean manyToOne)
protected void setOneToMany(boolean oneToMany)
protected void setOneToOne(boolean oneToOne)
public void setOtherSide(GrailsDomainClassProperty property)
public void setOwningSide(boolean b)
protected void setPersistent(boolean persistent)
public void setReferencePropertyName(java.lang.String name)
public void setReferencedDomainClass(GrailsDomainClass referencedDomainClass)
protected void setReferencedPropertyType(java.lang.Class referencedPropertyType)
else if (isOneToMany()) { public java.lang.String toString()
Groovy Documentation