public class HibernateMappingContext extends org.grails.datastore.mapping.model.AbstractMappingContext
A Mapping context for Hibernate
Fields inherited from class | Fields |
---|---|
class org.grails.datastore.mapping.model.AbstractMappingContext |
GROOVY_PROXY_FACTORY_NAME, JAVASIST_PROXY_FACTORY, CONFIGURATION_PREFIX |
Constructor and description |
---|
HibernateMappingContext(HibernateConnectionSourceSettings settings, java.lang.Object contextObject, java.lang.Class persistentClasses) Construct a HibernateMappingContext for the given arguments |
HibernateMappingContext(HibernateConnectionSourceSettings settings, java.lang.Class persistentClasses) |
HibernateMappingContext() |
Type Params | Return Type | Name and description |
---|---|---|
|
public org.grails.datastore.mapping.model.PersistentEntity |
createEmbeddedEntity(java.lang.Class type) |
|
protected org.grails.datastore.mapping.model.PersistentEntity |
createPersistentEntity(java.lang.Class javaClass) |
|
protected org.grails.datastore.mapping.model.PersistentEntity |
createPersistentEntity(java.lang.Class javaClass, boolean external) |
|
public org.grails.datastore.mapping.model.MappingFactory |
getMappingFactory() |
|
public org.grails.datastore.mapping.model.MappingConfigurationStrategy |
getMappingSyntaxStrategy() |
|
public org.grails.datastore.mapping.model.PersistentEntity |
getPersistentEntity(java.lang.String name) |
|
public static boolean |
isDomainClass(java.lang.Class clazz) |
|
protected boolean |
isValidMappingStrategy(java.lang.Class javaClass, java.lang.Object mappingStrategy) |
|
public void |
setDefaultConstraints(groovy.lang.Closure defaultConstraints) Sets the default constraints to be used |
|
protected boolean |
supportsCustomType(java.lang.Class<?> propertyType) |
Methods inherited from class | Name |
---|---|
class org.grails.datastore.mapping.model.AbstractMappingContext |
org.grails.datastore.mapping.model.AbstractMappingContext#isInitialized(), org.grails.datastore.mapping.model.AbstractMappingContext#getConversionService(), org.grails.datastore.mapping.model.AbstractMappingContext#getValidatorRegistry(), org.grails.datastore.mapping.model.AbstractMappingContext#addTypeConverter(org.springframework.core.convert.converter.Converter), org.grails.datastore.mapping.model.AbstractMappingContext#getConverterRegistry(), org.grails.datastore.mapping.model.AbstractMappingContext#getEntityValidator(org.grails.datastore.mapping.model.PersistentEntity), org.grails.datastore.mapping.model.AbstractMappingContext#getMappingFactory(), org.grails.datastore.mapping.model.AbstractMappingContext#isPersistentEntity(java.lang.Object), org.grails.datastore.mapping.model.AbstractMappingContext#isPersistentEntity(java.lang.Class), org.grails.datastore.mapping.model.AbstractMappingContext#setProxyFactory(org.grails.datastore.mapping.proxy.ProxyFactory), org.grails.datastore.mapping.model.AbstractMappingContext#addMappingContextListener(org.grails.datastore.mapping.model.MappingContext$Listener), org.grails.datastore.mapping.model.AbstractMappingContext#createEmbeddedEntity(java.lang.Class), org.grails.datastore.mapping.model.AbstractMappingContext#getEntityReflector(org.grails.datastore.mapping.model.PersistentEntity), org.grails.datastore.mapping.model.AbstractMappingContext#createEntityAccess(org.grails.datastore.mapping.model.PersistentEntity, java.lang.Object), org.grails.datastore.mapping.model.AbstractMappingContext#setCanInitializeEntities(boolean), org.grails.datastore.mapping.model.AbstractMappingContext#getPersistentEntities(), org.grails.datastore.mapping.model.AbstractMappingContext#isInInheritanceHierarchy(org.grails.datastore.mapping.model.PersistentEntity), org.grails.datastore.mapping.model.AbstractMappingContext#getChildEntityByDiscriminator(org.grails.datastore.mapping.model.PersistentEntity, java.lang.String), org.grails.datastore.mapping.model.AbstractMappingContext#getChildEntities(org.grails.datastore.mapping.model.PersistentEntity), org.grails.datastore.mapping.model.AbstractMappingContext#getDirectChildEntities(org.grails.datastore.mapping.model.PersistentEntity), org.grails.datastore.mapping.model.AbstractMappingContext#addPersistentEntities([Ljava.lang.Class;), org.grails.datastore.mapping.model.AbstractMappingContext#addExternalPersistentEntity(java.lang.Class), org.grails.datastore.mapping.model.AbstractMappingContext#addEntityValidator(org.grails.datastore.mapping.model.PersistentEntity, org.springframework.validation.Validator), org.grails.datastore.mapping.model.AbstractMappingContext#setValidatorRegistry(org.grails.datastore.mapping.validation.ValidatorRegistry), org.grails.datastore.mapping.model.AbstractMappingContext#getMultiTenancyMode(), org.grails.datastore.mapping.model.AbstractMappingContext#addPersistentEntity(java.lang.Class, boolean), org.grails.datastore.mapping.model.AbstractMappingContext#addPersistentEntity(java.lang.Class), org.grails.datastore.mapping.model.AbstractMappingContext#getProxyHandler(), org.grails.datastore.mapping.model.AbstractMappingContext#getPersistentEntity(java.lang.String), org.grails.datastore.mapping.model.AbstractMappingContext#getProxyFactory(), org.grails.datastore.mapping.model.AbstractMappingContext#initialize(), org.grails.datastore.mapping.model.AbstractMappingContext#configure(org.springframework.core.env.PropertyResolver), org.grails.datastore.mapping.model.AbstractMappingContext#wait(long, int), org.grails.datastore.mapping.model.AbstractMappingContext#wait(), org.grails.datastore.mapping.model.AbstractMappingContext#wait(long), org.grails.datastore.mapping.model.AbstractMappingContext#equals(java.lang.Object), org.grails.datastore.mapping.model.AbstractMappingContext#toString(), org.grails.datastore.mapping.model.AbstractMappingContext#hashCode(), org.grails.datastore.mapping.model.AbstractMappingContext#getClass(), org.grails.datastore.mapping.model.AbstractMappingContext#notify(), org.grails.datastore.mapping.model.AbstractMappingContext#notifyAll(), org.grails.datastore.mapping.model.AbstractMappingContext#getMappingSyntaxStrategy() |
Construct a HibernateMappingContext for the given arguments
settings
- The HibernateConnectionSourceSettings settingscontextObject
- The context object (for example a Spring ApplicationContext)persistentClasses
- The persistent classesSets the default constraints to be used
defaultConstraints
- The default constraints