Class R2dbcMappingContext

All Implemented Interfaces:
Aware, BeanFactoryAware, InitializingBean, ApplicationContextAware, ApplicationEventPublisherAware, EnvironmentAware, MappingContext<RelationalPersistentEntity<?>, RelationalPersistentProperty>

public class R2dbcMappingContext extends RelationalMappingContext
R2DBC-specific extension to RelationalMappingContext.
Author:
Mark Paluch, Jens Schauder
  • Constructor Details

  • 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(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(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<RelationalPersistentEntity<?>, RelationalPersistentProperty>