Class R2dbcMappingContext

java.lang.Object
org.springframework.data.mapping.context.AbstractMappingContext<org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>, org.springframework.data.relational.core.mapping.RelationalPersistentProperty>
org.springframework.data.relational.core.mapping.RelationalMappingContext
org.springframework.data.r2dbc.mapping.R2dbcMappingContext
All Implemented Interfaces:
Aware, BeanFactoryAware, InitializingBean, ApplicationContextAware, ApplicationEventPublisherAware, EnvironmentAware, MappingContext<org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>, org.springframework.data.relational.core.mapping.RelationalPersistentProperty>

public class R2dbcMappingContext extends org.springframework.data.relational.core.mapping.RelationalMappingContext
R2DBC-specific extension to RelationalMappingContext.
Author:
Mark Paluch, Jens Schauder
  • Constructor Details

    • R2dbcMappingContext

      public R2dbcMappingContext()
      Create a new R2dbcMappingContext.
    • R2dbcMappingContext

      public R2dbcMappingContext(org.springframework.data.relational.core.mapping.NamingStrategy namingStrategy)
      Create a new R2dbcMappingContext using the given NamingStrategy.
      Parameters:
      namingStrategy - must not be null.
  • Method Details

    • forPlainIdentifiers

      public static R2dbcMappingContext forPlainIdentifiers()
      Create a new R2dbcMappingContext using plain identifiers. Plain identifiers (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

      public static R2dbcMappingContext forPlainIdentifiers(org.springframework.data.relational.core.mapping.NamingStrategy namingStrategy)
      Create a new R2dbcMappingContext using plain identifiers and the given NamingStrategy. Plain identifiers (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

      public static R2dbcMappingContext forQuotedIdentifiers()
      Create a new R2dbcMappingContext using quoted identifiers (default behavior). Quoted identifiers (i.e. table and column names) are typically case-sensitive.
      Returns:
      a new R2dbcMappingContext using quoted identifiers.
      Since:
      4.0
    • forQuotedIdentifiers

      public static R2dbcMappingContext forQuotedIdentifiers(org.springframework.data.relational.core.mapping.NamingStrategy namingStrategy)
      Create a new R2dbcMappingContext using quoted identifiers (default behavior) and the given NamingStrategy. Quoted identifiers (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

      protected boolean shouldCreatePersistentEntityFor(org.springframework.data.core.TypeInformation<?> type)
      Overrides:
      shouldCreatePersistentEntityFor in class AbstractMappingContext<org.springframework.data.relational.core.mapping.RelationalPersistentEntity<?>, org.springframework.data.relational.core.mapping.RelationalPersistentProperty>