Represents a persistable Grails domain class.
Modifiers | Name | Description |
---|---|---|
java.lang.String |
GORM |
The name of the default ORM implementation used to map the class |
java.lang.String |
ORM_MAPPING |
Type | Name and description |
---|---|
org.springframework.validation.Validator |
validator |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.Map |
getConstrainedProperties() Returns a map of constraints applied to this domain class with the keys being the property name and the values being ConstrainedProperty instances |
|
java.lang.String |
getPropertyName() |
|
org.springframework.validation.Validator |
getValidator() Retreives the validator for this domain class |
|
boolean |
isAutowire() @return Whether to autowire |
|
boolean |
isOwningClass(java.lang.Class domainClass) @param domainClass |
|
void |
setValidator(org.springframework.validation.Validator validator) Sets the validator for this domain class |
Methods inherited from class | Name |
---|---|
interface GrailsClass |
getApplication, getClazz, getFullName, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPluginName, getPropertyName, getPropertyValue, getPropertyValue, getReferenceInstance, getShortName, hasProperty, isAbstract, newInstance |
interface GrailsApplicationAware |
setGrailsApplication |
The name of the default ORM implementation used to map the class
Returns a map of constraints applied to this domain class with the keys being the property name and the values being ConstrainedProperty instances
Returns the default property name of the GrailsClass. For example the property name for a class called "User" would be "user"
Retreives the validator for this domain class
Sets the validator for this domain class
validator
- The domain class validator to set