|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD |
public interface GrailsDomainClassProperty
A property of a GrailsDomainClass instance.
Field Summary | |
---|---|
java.lang.String |
ALL_DATA_SOURCES
|
java.lang.String |
ATTACHED
|
java.lang.String |
BELONGS_TO
|
java.lang.String |
CLASS
|
java.lang.String |
CONSTRAINTS
|
java.lang.String |
DATE_CREATED
|
java.lang.String |
DEFAULT_DATA_SOURCE
|
java.lang.String |
DOMAIN_CLASS
|
java.lang.String |
EMBEDDED
|
java.lang.String |
ERRORS
|
java.lang.String |
EVANESCENT
|
int |
FETCH_EAGER
|
int |
FETCH_LAZY
|
java.lang.String |
FETCH_MODE
|
java.lang.String |
HAS_MANY
|
java.lang.String |
HAS_ONE
|
java.lang.String |
IDENTITY
|
java.lang.String |
LAST_UPDATED
|
java.lang.String |
MAPPED_BY
|
java.lang.String |
MAPPING
|
java.lang.String |
MAPPING_STRATEGY
|
java.lang.String |
META_CLASS
|
java.lang.String |
NAMED_QUERIES
|
java.lang.String |
RELATES_TO_MANY
|
java.lang.String |
SORT
|
java.lang.String |
TRANSIENT
|
java.lang.String |
VERSION
|
Method Summary | |
---|---|
GrailsDomainClass
|
getComponent()
If #isEmbedded returns true then this method can be called to obtain a reference to the embedded component, which implements the GrailsDomainClass interface. |
GrailsDomainClass
|
getDomainClass()
Returns the parent domain class of the property instance. |
int
|
getFetchMode()
Returns the configured fetch mode for the property |
java.lang.String
|
getFieldName()
Returns the domain field name for this property. |
java.lang.String
|
getName()
Returns the name of the property. |
java.lang.String
|
getNaturalName()
|
GrailsDomainClassProperty
|
getOtherSide()
Returns the other side of a bidirectional association |
GrailsDomainClass
|
getReferencedDomainClass()
Returns the GrailsDomainClass of a relationship property or null, if the property is not a relationship property. |
java.lang.String
|
getReferencedPropertyName()
Retrieves the name of property referenced by this property if it is an association and is known, otherwise null. |
java.lang.Class
|
getReferencedPropertyType()
Returns the referenced property type. |
java.lang.Class
|
getType()
Returns the type for the domain class |
java.lang.String
|
getTypePropertyName()
Returns the class type as a property name representation. |
boolean
|
isAssociation()
Returns true if this property is a relationship property. |
boolean
|
isBasicCollectionType()
Return whether this is a collection of basic types like String, Integer etc. |
boolean
|
isBidirectional()
Returns true if the property is a bi-directional relationship. |
boolean
|
isCircular()
Whether the relationship is cirucular. |
boolean
|
isDerived()
|
boolean
|
isEmbedded()
Returns true if this propert is an embedded component. |
boolean
|
isEnum()
Returns true if this properties type is an enum. |
boolean
|
isHasOne()
|
boolean
|
isIdentity()
Returns true of the property is an identifier. |
boolean
|
isInherited()
Whether the property is inherited from a super class. |
boolean
|
isManyToMany()
Returns true if the property is a many-to-many relationship. |
boolean
|
isManyToOne()
Returns true if the property is a many-to-one relationship. |
boolean
|
isOneToMany()
Returns true if the property is a one-to-many relationship. |
boolean
|
isOneToOne()
Returns true if the property is a one-to-one relationship. |
boolean
|
isOptional()
Returns false if the property is required. |
boolean
|
isOwningSide()
Whether this side of the association is the "owning" side. |
boolean
|
isPersistent()
Returns true if the domain class property is a persistent property. |
void
|
setDerived(boolean derived)
|
void
|
setOtherSide(GrailsDomainClassProperty referencedProperty)
Sets the other side of an associative property. |
void
|
setOwningSide(boolean b)
|
void
|
setReferencedDomainClass(GrailsDomainClass referencedGrailsDomainClass)
Sets the references domain class on the property. |
Field Detail |
---|
public java.lang.String ALL_DATA_SOURCES
public java.lang.String ATTACHED
public java.lang.String BELONGS_TO
public java.lang.String CLASS
public java.lang.String CONSTRAINTS
public java.lang.String DATE_CREATED
public java.lang.String DEFAULT_DATA_SOURCE
public java.lang.String DOMAIN_CLASS
public java.lang.String EMBEDDED
public java.lang.String ERRORS
public java.lang.String EVANESCENT
public int FETCH_EAGER
public int FETCH_LAZY
public java.lang.String FETCH_MODE
public java.lang.String HAS_MANY
public java.lang.String HAS_ONE
public java.lang.String IDENTITY
public java.lang.String LAST_UPDATED
public java.lang.String MAPPED_BY
public java.lang.String MAPPING
public java.lang.String MAPPING_STRATEGY
public java.lang.String META_CLASS
public java.lang.String NAMED_QUERIES
public java.lang.String RELATES_TO_MANY
public java.lang.String SORT
public java.lang.String TRANSIENT
public java.lang.String VERSION
Method Detail |
---|
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()
@SuppressWarnings("rawtypes") public java.lang.Class getReferencedPropertyType()
@SuppressWarnings("rawtypes") 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 setDerived(boolean derived)
public void setOtherSide(GrailsDomainClassProperty referencedProperty)
public void setOwningSide(boolean b)
public void setReferencedDomainClass(GrailsDomainClass referencedGrailsDomainClass)
Groovy Documentation