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 newR2dbcMappingContextusing the givenNamingStrategy. -
Method Summary
Modifier and TypeMethodDescriptionstatic R2dbcMappingContextCreate a newR2dbcMappingContextusingplain identifiers.static R2dbcMappingContextforPlainIdentifiers(NamingStrategy namingStrategy) static R2dbcMappingContextCreate a newR2dbcMappingContextusingquoted identifiers(default behavior).static R2dbcMappingContextforQuotedIdentifiers(NamingStrategy namingStrategy) Create a newR2dbcMappingContextusingquoted identifiers(default behavior) and the givenNamingStrategy.protected booleanshouldCreatePersistentEntityFor(org.springframework.data.core.TypeInformation<?> type) Methods inherited from class RelationalMappingContext
applyDefaults, createPersistentEntity, createPersistentProperty, getAggregatePath, getAggregatePath, getNamingStrategy, getPersistentEntity, isForceQuote, isSingleQueryLoadingEnabled, setApplicationContext, setEnvironment, setForceQuote, setSingleQueryLoadingEnabled, setSqlIdentifierSanitizerMethods inherited from class AbstractMappingContext
addPersistentEntity, addPersistentEntity, afterPropertiesSet, doFindPersistentPropertyPaths, findPersistentPropertyPaths, getManagedTypes, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, getPersistentPropertyPath, getPersistentPropertyPath, hasPersistentEntityFor, initialize, setApplicationEventPublisher, setBeanFactory, setInitialEntitySet, setManagedTypes, setSimpleTypeHolder, setStrict, shouldCreatePropertiesMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface MappingContext
getRequiredPersistentEntity, getRequiredPersistentEntity, getRequiredPersistentEntity
-
Constructor Details
-
R2dbcMappingContext
public R2dbcMappingContext()Create a newR2dbcMappingContext. -
R2dbcMappingContext
Create a newR2dbcMappingContextusing the givenNamingStrategy.- Parameters:
namingStrategy- must not be null.
-
-
Method Details
-
forPlainIdentifiers
Create a newR2dbcMappingContextusingplain 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
R2dbcMappingContextusing plain identifiers. - Since:
- 4.0
-
forPlainIdentifiers
Create a newR2dbcMappingContextusingplain identifiersand 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
R2dbcMappingContextusing plain identifiers. - Since:
- 4.0
-
forQuotedIdentifiers
Create a newR2dbcMappingContextusingquoted identifiers(default behavior). Quotedidentifiers(i.e. table and column names) are typically case-sensitive.- Returns:
- a new
R2dbcMappingContextusing quoted identifiers. - Since:
- 4.0
-
forQuotedIdentifiers
Create a newR2dbcMappingContextusingquoted 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
R2dbcMappingContextusing quoted identifiers. - Since:
- 4.0
-
shouldCreatePersistentEntityFor
protected boolean shouldCreatePersistentEntityFor(org.springframework.data.core.TypeInformation<?> type) - Overrides:
shouldCreatePersistentEntityForin classAbstractMappingContext<RelationalPersistentEntity<?>, RelationalPersistentProperty>
-