Package grails.core
Interface GrailsDomainClass
-
- All Superinterfaces:
org.springframework.beans.factory.Aware,GrailsApplicationAware,GrailsClass
- All Known Implementing Classes:
DefaultGrailsDomainClass
@Deprecated public interface GrailsDomainClass extends GrailsClass
Deprecated.UsePersistentEntityinsteadRepresents a persistable Grails domain class.- Since:
- Jul 5, 2005
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringGORMDeprecated.The name of the default ORM implementation used to map the classstatic java.lang.StringORM_MAPPINGDeprecated.
-
Method Summary
All Methods Instance Methods Abstract 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.StringgetPropertyName()Deprecated.Returns the default property name of the GrailsClass.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 interface grails.core.support.GrailsApplicationAware
setGrailsApplication
-
Methods inherited from interface grails.core.GrailsClass
getApplication, getClazz, getFullName, getLogicalPropertyName, getMetaClass, getName, getNaturalName, getPackageName, getPluginName, getPropertyValue, getPropertyValue, getReferenceInstance, getShortName, hasProperty, isAbstract, newInstance
-
-
-
-
Field Detail
-
GORM
static final java.lang.String GORM
Deprecated.The name of the default ORM implementation used to map the class- See Also:
- Constant Field Values
-
ORM_MAPPING
static final java.lang.String ORM_MAPPING
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
isAutowire
boolean isAutowire()
Deprecated.- Returns:
- Whether to autowire
-
isOwningClass
boolean isOwningClass(java.lang.Class domainClass)
Deprecated.- Parameters:
domainClass-- Returns:
- true if the specifying domain class is on the owning side of a relationship
-
getPropertyName
java.lang.String getPropertyName()
Deprecated.Returns the default property name of the GrailsClass. For example the property name for a class called "User" would be "user"
- Specified by:
getPropertyNamein interfaceGrailsClass- Returns:
- The property name representation of the class name
-
getConstrainedProperties
java.util.Map getConstrainedProperties()
Deprecated.Returns a map of constraints applied to this domain class with the keys being the property name and the values being ConstrainedProperty instances- Returns:
- A map of constraints
-
getValidator
org.springframework.validation.Validator getValidator()
Deprecated.Retreives the validator for this domain class- Returns:
- A validator instance or null if none exists
-
setValidator
void setValidator(org.springframework.validation.Validator validator)
Deprecated.Sets the validator for this domain class- Parameters:
validator- The domain class validator to set
-
-