Class R2dbcMappingContext
java.lang.Object
org.springframework.data.mapping.context.AbstractMappingContext<RelationalPersistentEntity<?>, RelationalPersistentProperty>
org.springframework.data.relational.core.mapping.RelationalMappingContext
org.springframework.data.r2dbc.mapping.R2dbcMappingContext
- All Implemented Interfaces:
Aware, BeanFactoryAware, InitializingBean, ApplicationContextAware, ApplicationEventPublisherAware, EnvironmentAware, MappingContext<RelationalPersistentEntity<?>, RelationalPersistentProperty>
R2DBC-specific extension to
RelationalMappingContext
.- Author:
- Mark Paluch, Jens Schauder
-
Constructor Summary
ConstructorsConstructorDescriptionCreate a newR2dbcMappingContext
.R2dbcMappingContext
(NamingStrategy namingStrategy) Create a newR2dbcMappingContext
using the givenNamingStrategy
. -
Method Summary
Modifier and TypeMethodDescriptionstatic R2dbcMappingContext
Create a newR2dbcMappingContext
usingplain identifiers
.static R2dbcMappingContext
forPlainIdentifiers
(NamingStrategy namingStrategy) static R2dbcMappingContext
Create a newR2dbcMappingContext
usingquoted identifiers
(default behavior).static R2dbcMappingContext
forQuotedIdentifiers
(NamingStrategy namingStrategy) Create a newR2dbcMappingContext
usingquoted identifiers
(default behavior) and the givenNamingStrategy
.protected boolean
Methods inherited from class RelationalMappingContext
applyDefaults, createPersistentEntity, createPersistentProperty, getAggregatePath, getAggregatePath, getNamingStrategy, getPersistentEntity, isForceQuote, isSingleQueryLoadingEnabled, setApplicationContext, setEnvironment, setForceQuote, setSingleQueryLoadingEnabled, setSqlIdentifierSanitizer
Methods inherited from class AbstractMappingContext
addPersistentEntity, addPersistentEntity, afterPropertiesSet, doFindPersistentPropertyPaths, findPersistentPropertyPaths, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationEventPublisher, setBeanFactory, setInitialEntitySet, setManagedTypes, setSimpleTypeHolder, setStrict, shouldCreateProperties
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface MappingContext
getRequiredPersistentEntity, getRequiredPersistentEntity, getRequiredPersistentEntity
-
Constructor Details
-
R2dbcMappingContext
public R2dbcMappingContext()Create a newR2dbcMappingContext
. -
R2dbcMappingContext
Create a newR2dbcMappingContext
using the givenNamingStrategy
.- Parameters:
namingStrategy
- must not be null.
-
-
Method Details
-
forPlainIdentifiers
Create a newR2dbcMappingContext
usingplain identifiers
. Plainidentifiers
(i.e. table and column names) are typically not case-sensitive (case-sensitivity can be still enforced by specific database configurations).- Returns:
- a new
R2dbcMappingContext
using plain identifiers. - Since:
- 4.0
-
forPlainIdentifiers
Create a newR2dbcMappingContext
usingplain identifiers
and the givenNamingStrategy
. Plainidentifiers
(i.e. table and column names) are typically not case-sensitive (case-sensitivity can be still enforced by specific database configurations).- Parameters:
namingStrategy
- must not be null.- Returns:
- a new
R2dbcMappingContext
using plain identifiers. - Since:
- 4.0
-
forQuotedIdentifiers
Create a newR2dbcMappingContext
usingquoted identifiers
(default behavior). Quotedidentifiers
(i.e. table and column names) are typically case-sensitive.- Returns:
- a new
R2dbcMappingContext
using quoted identifiers. - Since:
- 4.0
-
forQuotedIdentifiers
Create a newR2dbcMappingContext
usingquoted identifiers
(default behavior) and the givenNamingStrategy
. Quotedidentifiers
(i.e. table and column names) are typically case-sensitive.- Parameters:
namingStrategy
- must not be null.- Returns:
- a new
R2dbcMappingContext
using quoted identifiers. - Since:
- 4.0
-
shouldCreatePersistentEntityFor
- Overrides:
shouldCreatePersistentEntityFor
in classAbstractMappingContext<RelationalPersistentEntity<?>, RelationalPersistentProperty>
-