@Configuration public abstract class AbstractJdbcConfiguration extends Object
Constructor and Description |
---|
AbstractJdbcConfiguration() |
Modifier and Type | Method and Description |
---|---|
JdbcAggregateTemplate |
jdbcAggregateTemplate(ApplicationEventPublisher publisher,
RelationalMappingContext context,
JdbcConverter converter,
NamedParameterJdbcOperations operations)
Register a
JdbcAggregateTemplate as a bean for easy use in applications that need a lower level of
abstraction than the normal repository abstraction. |
JdbcConverter |
jdbcConverter(RelationalMappingContext mappingContext,
JdbcOperations operations)
Creates a
RelationalConverter using the configured jdbcMappingContext(Optional) . |
JdbcCustomConversions |
jdbcCustomConversions()
Register custom
Converter s in a JdbcCustomConversions object if required. |
JdbcMappingContext |
jdbcMappingContext(Optional<NamingStrategy> namingStrategy)
Register a
RelationalMappingContext and apply an optional NamingStrategy . |
@Bean public JdbcMappingContext jdbcMappingContext(Optional<NamingStrategy> namingStrategy)
RelationalMappingContext
and apply an optional NamingStrategy
.namingStrategy
- optional NamingStrategy
. Use NamingStrategy.INSTANCE
as fallback.@Bean public JdbcConverter jdbcConverter(RelationalMappingContext mappingContext, JdbcOperations operations)
RelationalConverter
using the configured jdbcMappingContext(Optional)
. Will get
jdbcCustomConversions()
applied.jdbcMappingContext(Optional)
,
jdbcCustomConversions()
@Bean public JdbcCustomConversions jdbcCustomConversions()
Converter
s in a JdbcCustomConversions
object if required. These
JdbcCustomConversions
will be registered with the
jdbcConverter(RelationalMappingContext, JdbcOperations)
. Returns an empty JdbcCustomConversions
instance by default.@Bean public JdbcAggregateTemplate jdbcAggregateTemplate(ApplicationEventPublisher publisher, RelationalMappingContext context, JdbcConverter converter, NamedParameterJdbcOperations operations)
JdbcAggregateTemplate
as a bean for easy use in applications that need a lower level of
abstraction than the normal repository abstraction.publisher
- for publishing events. Must not be null.context
- the mapping context to be used. Must not be null.converter
- the conversions used when reading and writing from/to the database. Must not be null.operations
- NamedParameterJdbcOperations
used for accessing the database. Must not be
null.JdbcAggregateTemplate
. Guaranteed to be not null.Copyright © 2017–2019 Pivotal Software, Inc.. All rights reserved.