Abstract GORM implementation that uses the GORM MappingConfigurationBuilder to configure entity mappings.
Modifiers | Name | Description |
---|---|---|
protected groovy.lang.Closure |
defaultConstraints |
|
protected java.util.Map<PersistentEntity, R> |
entityToMapping |
|
protected java.util.Map<PersistentEntity, java.util.Map<java.lang.String, T>> |
entityToPropertyMap |
Fields inherited from class | Fields |
---|---|
class MappingFactory |
IDENTITY_PROPERTY, SIMPLE_TYPES |
Type | Name and description |
---|---|
protected MappingConfigurationBuilder |
createConfigurationBuilder(PersistentEntity entity, R family) |
IdentityMapping |
createIdentityMapping(ClassMapping classMapping) |
R |
createMappedForm(PersistentEntity entity) |
T |
createMappedForm(PersistentProperty mpp) |
protected void |
evaluateWithContext(MappingConfigurationBuilder builder, groovy.lang.Closure value) |
protected java.lang.Class<R> |
getEntityMappedFormType() |
protected IdentityMapping |
getIdentityMappedForm(ClassMapping classMapping, T property) |
protected java.lang.Class<T> |
getPropertyMappedFormType() |
void |
setContextObject(java.lang.Object contextObject) @param contextObject Context object to be passed to mapping blocks |
void |
setDefaultConstraints(groovy.lang.Closure defaultConstraints) |
void |
setDefaultMapping(groovy.lang.Closure defaultMapping) |
Methods inherited from class | Name |
---|---|
class MappingFactory |
allowArbitraryCustomTypes, associationtoString, createBasicCollection, createBasicCollection, createCustom, createDefaultIdentityMapping, createEmbedded, createEmbeddedCollection, createIdentity, createIdentityMapping, createManyToMany, createManyToOne, createMappedForm, createMappedForm, createOneToMany, createOneToOne, createPropertyMapping, createSimple, findCustomType, isCustomType, isSimpleType, isSimpleType, registerCustomType |
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
contextObject
- Context object to be passed to mapping blocks