@SuppressWarnings("rawtypes") public abstract class AbstractMappingContext extends Object implements Initializable, MappingContext
Abstract implementation of the MappingContext interface.
| Modifiers | Name | Description |
|---|---|---|
static String |
CONFIGURATION_PREFIX |
|
static String |
GROOVY_PROXY_FACTORY_NAME |
|
static String |
JAVASIST_PROXY_FACTORY |
|
protected GenericConversionService |
conversionService |
|
protected Map<PersistentEntity, Validator> |
entityValidators |
|
protected Collection<Listener> |
eventListeners |
|
protected Collection<PersistentEntity> |
persistentEntities |
|
protected Map<PersistentEntity, Map<String, PersistentEntity>> |
persistentEntitiesByDiscriminator |
|
protected Map<String, PersistentEntity> |
persistentEntitiesByName |
|
protected Map<PersistentEntity, Collection<PersistentEntity>> |
persistentEntitiesByParent |
|
protected ProxyFactory |
proxyFactory |
|
protected ValidatorRegistry |
validatorRegistry |
| Constructor and description |
|---|
AbstractMappingContext() |
AbstractMappingContext(ConnectionSourceSettings settings) |
Adds a validator for an entity
entity - The PersistentEntity The entityvalidator - The validator The validatorAdds an external PersistentEntity instance, one that is not managed and persisted by this context
javaClass - The Java class representing the entityAdds a PersistentEntity instance
javaClass - The Java class representing the entityoverride - Whether to override an existing entityAdds a PersistentEntity instance
javaClass - The Java class representing the entityObtains a EntityReflector instance for the given entity
entity - The entityRetrieves a validator for an entity
entity - The entityReturns true if the given entity is in an inheritance hierarchy
entity - The entity