A property of a GrailsDomainClass instance.
Modifiers | Name | Description |
---|---|---|
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 |
DIRTY |
|
java.lang.String |
DIRTY_PROPERTY_NAMES |
|
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 |
Type Params | Return Type | Name and description |
---|---|---|
|
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 |
isExplicitSaveUpdateCascade() Check whether this property is set up to receive save-update cascading via the Mapping DSL rather than using 'belongsTo'. |
|
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 |
setExplicitSaveUpdateCascade(boolean explicitSaveUpdateCascade) Sets whether the domain class property is explicitly set up to receive save and update cascades via a means other than 'belongsTo'. |
|
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. |
If #isEmbedded returns true then this method can be called to obtain a reference to the embedded component, which implements the GrailsDomainClass interface.
Returns the parent domain class of the property instance.
Returns the configured fetch mode for the property
Returns the domain field name for this property.
Returns the name of the property.
Returns the other side of a bidirectional association
Returns the GrailsDomainClass of a relationship property or null, if the property is not a relationship property.
Retrieves the name of property referenced by this property if it is an association and is known, otherwise null.
Returns the referenced property type. This differs from getType() in that in the case of an Association it will return the type of the elements contained within the Collection, otherwise it will delegate to getType();
Returns the type for the domain class
Returns the class type as a property name representation.
Returns true if this property is a relationship property.
Return whether this is a collection of basic types like String, Integer etc.
Returns true if the property is a bi-directional relationship.
Whether the relationship is cirucular.
Returns true if this propert is an embedded component.
Returns true if this properties type is an enum.
Check whether this property is set up to receive save-update cascading via the Mapping DSL rather than using 'belongsTo'.
Returns true of the property is an identifier.
Whether the property is inherited from a super class.
Returns true if the property is a many-to-many relationship.
Returns true if the property is a many-to-one relationship.
Returns true if the property is a one-to-many relationship.
Returns true if the property is a one-to-one relationship.
Returns false if the property is required.
Whether this side of the association is the "owning" side.
Returns true if the domain class property is a persistent property.
Sets whether the domain class property is explicitly set up to receive save and update cascades via a means other than 'belongsTo'. Specifically, the cascades will have been set up via the Mapping DSL.
explicitSaveUpdateCascade
- Whether this property is explicity defined, via
the mapping DSL, to receive save and update cascades.Sets the other side of an associative property.
Sets the references domain class on the property.