Class RelationalMappingContext
java.lang.Object
org.springframework.data.mapping.context.AbstractMappingContext<RelationalPersistentEntity<?>,RelationalPersistentProperty>
org.springframework.data.relational.core.mapping.RelationalMappingContext
- All Implemented Interfaces:
Aware
,InitializingBean
,ApplicationContextAware
,ApplicationEventPublisherAware
,MappingContext<RelationalPersistentEntity<?>,
RelationalPersistentProperty>
- Direct Known Subclasses:
JdbcMappingContext
public class RelationalMappingContext
extends AbstractMappingContext<RelationalPersistentEntity<?>,RelationalPersistentProperty>
MappingContext
implementation.- Author:
- Jens Schauder, Greg Turnquist, Kazuki Shimizu, Oliver Gierke, Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newRelationalMappingContext
.RelationalMappingContext
(NamingStrategy namingStrategy) Creates a newRelationalMappingContext
using the givenNamingStrategy
. -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> RelationalPersistentEntity<T>
createPersistentEntity
(TypeInformation<T> typeInformation) protected RelationalPersistentProperty
createPersistentProperty
(Property property, RelationalPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) boolean
Return whether quoting should be enabled for all table and column names.void
setForceQuote
(boolean forceQuote) Enable/disable quoting for all tables and column names.Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext
addPersistentEntity, addPersistentEntity, afterPropertiesSet, doFindPersistentPropertyPaths, findPersistentPropertyPaths, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationContext, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrict, shouldCreatePersistentEntityFor
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.data.mapping.context.MappingContext
getRequiredPersistentEntity, getRequiredPersistentEntity, getRequiredPersistentEntity
-
Constructor Details
-
RelationalMappingContext
public RelationalMappingContext()Creates a newRelationalMappingContext
. -
RelationalMappingContext
Creates a newRelationalMappingContext
using the givenNamingStrategy
.- Parameters:
namingStrategy
- must not be null.
-
-
Method Details
-
isForceQuote
public boolean isForceQuote()Return whether quoting should be enabled for all table and column names. Quoting is enabled by default.- Returns:
- Since:
- 2.0
-
setForceQuote
public void setForceQuote(boolean forceQuote) Enable/disable quoting for all tables and column names.- Parameters:
forceQuote
-
-
createPersistentEntity
protected <T> RelationalPersistentEntity<T> createPersistentEntity(TypeInformation<T> typeInformation) - Specified by:
createPersistentEntity
in classAbstractMappingContext<RelationalPersistentEntity<?>,
RelationalPersistentProperty>
-
createPersistentProperty
protected RelationalPersistentProperty createPersistentProperty(Property property, RelationalPersistentEntity<?> owner, SimpleTypeHolder simpleTypeHolder) - Specified by:
createPersistentProperty
in classAbstractMappingContext<RelationalPersistentEntity<?>,
RelationalPersistentProperty>
-
getNamingStrategy
-