Package org.grails.core
Class DefaultGrailsDomainClass
- java.lang.Object
-
- org.grails.core.AbstractGrailsClass
-
- org.grails.core.DefaultGrailsDomainClass
-
- All Implemented Interfaces:
GrailsClass,GrailsDomainClass,GrailsApplicationAware,org.springframework.beans.factory.Aware
@Deprecated public class DefaultGrailsDomainClass extends AbstractGrailsClass implements GrailsDomainClass
Deprecated.Default implementation of theGrailsDomainClassinterface- Since:
- 0.1
-
-
Field Summary
-
Fields inherited from class org.grails.core.AbstractGrailsClass
grailsApplication
-
Fields inherited from interface grails.core.GrailsDomainClass
GORM, ORM_MAPPING
-
-
Constructor Summary
Constructors Constructor Description DefaultGrailsDomainClass(java.lang.Class<?> clazz)Deprecated.Constructor.DefaultGrailsDomainClass(java.lang.Class<?> clazz, org.grails.datastore.mapping.model.MappingContext mappingContext)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.util.MapgetConstrainedProperties()Deprecated.Returns a map of constraints applied to this domain class with the keys being the property name and the values being ConstrainedProperty instancesjava.lang.StringgetName()Deprecated.Returns the logical name of the class in the application without the trailing convention part if applicable and without the package name.java.lang.StringgetPropertyName()Deprecated.Returns the name of the class as a property name.org.springframework.validation.ValidatorgetValidator()Deprecated.Retreives the validator for this domain classbooleanisAutowire()Deprecated.booleanisOwningClass(java.lang.Class domainClass)Deprecated.voidsetValidator(org.springframework.validation.Validator validator)Deprecated.Sets the validator for this domain class-
Methods inherited from class org.grails.core.AbstractGrailsClass
getApplication, getClazz, getFullName, getLogicalPropertyName, getMetaClass, getMetaProperties, getNaturalName, getPackageName, getPluginName, getPropertyDescriptors, getPropertyOrStaticPropertyOrFieldValue, getPropertyType, getPropertyValue, getPropertyValue, getPropertyValueObject, getReferenceInstance, getShortName, getStaticPropertyValue, hasMetaMethod, hasMetaMethod, hasMetaProperty, hasProperty, isAbstract, isActionMethod, isReadableProperty, newInstance, setGrailsApplication, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface grails.core.support.GrailsApplicationAware
setGrailsApplication
-
Methods inherited from interface grails.core.GrailsClass
getApplication, getClazz, getFullName, getLogicalPropertyName, getMetaClass, getNaturalName, getPackageName, getPluginName, getPropertyValue, getPropertyValue, getReferenceInstance, getShortName, hasProperty, isAbstract, newInstance
-
-
-
-
Constructor Detail
-
DefaultGrailsDomainClass
public DefaultGrailsDomainClass(java.lang.Class<?> clazz, org.grails.datastore.mapping.model.MappingContext mappingContext)Deprecated.
-
DefaultGrailsDomainClass
public DefaultGrailsDomainClass(java.lang.Class<?> clazz)
Deprecated.Constructor.- Parameters:
clazz-
-
-
Method Detail
-
isAutowire
public boolean isAutowire()
Deprecated.- Specified by:
isAutowirein interfaceGrailsDomainClass- Returns:
- Whether to autowire
-
isOwningClass
public boolean isOwningClass(java.lang.Class domainClass)
Deprecated.- Specified by:
isOwningClassin interfaceGrailsDomainClass- Returns:
- true if the specifying domain class is on the owning side of a relationship
-
getName
public java.lang.String getName()
Deprecated.Description copied from interface:GrailsClassReturns the logical name of the class in the application without the trailing convention part if applicable and without the package name.- Specified by:
getNamein interfaceGrailsClass- Overrides:
getNamein classAbstractGrailsClass- Returns:
- The logical name
-
getPropertyName
public java.lang.String getPropertyName()
Deprecated.Description copied from interface:GrailsClassReturns the name of the class as a property name.- Specified by:
getPropertyNamein interfaceGrailsClass- Specified by:
getPropertyNamein interfaceGrailsDomainClass- Overrides:
getPropertyNamein classAbstractGrailsClass- Returns:
- The property name representation
-
getConstrainedProperties
public java.util.Map getConstrainedProperties()
Deprecated.Description copied from interface:GrailsDomainClassReturns a map of constraints applied to this domain class with the keys being the property name and the values being ConstrainedProperty instances- Specified by:
getConstrainedPropertiesin interfaceGrailsDomainClass- Returns:
- A map of constraints
-
getValidator
public org.springframework.validation.Validator getValidator()
Deprecated.Description copied from interface:GrailsDomainClassRetreives the validator for this domain class- Specified by:
getValidatorin interfaceGrailsDomainClass- Returns:
- A validator instance or null if none exists
-
setValidator
public void setValidator(org.springframework.validation.Validator validator)
Deprecated.Description copied from interface:GrailsDomainClassSets the validator for this domain class- Specified by:
setValidatorin interfaceGrailsDomainClass- Parameters:
validator- The domain class validator to set
-
-