@java.lang.SuppressWarnings("rawtypes") public abstract class AbstractMappingContext extends java.lang.Object
Abstract implementation of the MappingContext interface.
Modifiers | Name | Description |
---|---|---|
protected org.springframework.core.convert.support.GenericConversionService |
conversionService |
|
protected java.util.Map<PersistentEntity, org.springframework.validation.Validator> |
entityValidators |
|
protected java.util.Collection<Listener> |
eventListeners |
|
protected java.util.Collection<PersistentEntity> |
persistentEntities |
|
protected java.util.Map<PersistentEntity, java.util.Map<java.lang.String, PersistentEntity>> |
persistentEntitiesByDiscriminator |
|
protected java.util.Map<java.lang.String, PersistentEntity> |
persistentEntitiesByName |
|
protected ProxyFactory |
proxyFactory |
Type | Name and description |
---|---|
void |
addEntityValidator(PersistentEntity entity, org.springframework.validation.Validator validator) |
PersistentEntity |
addExternalPersistentEntity(java.lang.Class javaClass) |
void |
addMappingContextListener(Listener listener) |
PersistentEntity |
addPersistentEntity(java.lang.Class javaClass, boolean override) Adds a PersistentEntity instance |
PersistentEntity |
addPersistentEntity(java.lang.Class javaClass) |
void |
addTypeConverter(org.springframework.core.convert.converter.Converter converter) |
PersistentEntity |
createEmbeddedEntity(java.lang.Class type) |
protected PersistentEntity |
createPersistentEntity(java.lang.Class javaClass) |
PersistentEntity |
getChildEntityByDiscriminator(PersistentEntity root, java.lang.String discriminator) |
org.springframework.core.convert.ConversionService |
getConversionService() |
org.springframework.core.convert.converter.ConverterRegistry |
getConverterRegistry() |
org.springframework.validation.Validator |
getEntityValidator(PersistentEntity entity) |
MappingFactory |
getMappingFactory() |
java.util.Collection<PersistentEntity> |
getPersistentEntities() |
PersistentEntity |
getPersistentEntity(java.lang.String name) |
ProxyFactory |
getProxyFactory() |
boolean |
isInInheritanceHierarchy(PersistentEntity entity) Returns true if the given entity is in an inheritance hierarchy |
boolean |
isPersistentEntity(java.lang.Class type) |
boolean |
isPersistentEntity(java.lang.Object value) |
void |
setProxyFactory(ProxyFactory factory) |
Methods inherited from class | Name |
---|---|
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() |
Adds a PersistentEntity instance
javaClass
- The Java class representing the entityoverride
- Whether to override an existing entityReturns true if the given entity is in an inheritance hierarchy
entity
- The entity