Package | Description |
---|---|
org.springframework.data.jdbc.core |
Core JDBC implementation.
|
org.springframework.data.jdbc.core.convert |
JDBC-specific conversion classes.
|
org.springframework.data.jdbc.mybatis | |
org.springframework.data.jdbc.repository.config | |
org.springframework.data.jdbc.repository.support |
Constructor and Description |
---|
JdbcAggregateTemplate(ApplicationContext publisher,
RelationalMappingContext context,
JdbcConverter converter,
DataAccessStrategy dataAccessStrategy)
Creates a new
JdbcAggregateTemplate given ApplicationContext , RelationalMappingContext and
DataAccessStrategy . |
JdbcAggregateTemplate(ApplicationEventPublisher publisher,
RelationalMappingContext context,
JdbcConverter converter,
DataAccessStrategy dataAccessStrategy)
Creates a new
JdbcAggregateTemplate given ApplicationEventPublisher ,
RelationalMappingContext and DataAccessStrategy . |
Modifier and Type | Class and Description |
---|---|
class |
CascadingDataAccessStrategy
Delegates each methods to the
DataAccessStrategy s passed to the constructor in turn until the first that does
not throw an exception. |
class |
DefaultDataAccessStrategy
The default
DataAccessStrategy is to generate SQL statements based on meta data from the entity. |
class |
DelegatingDataAccessStrategy
Delegates all method calls to an instance set after construction.
|
Modifier and Type | Method and Description |
---|---|
void |
DelegatingDataAccessStrategy.setDelegate(DataAccessStrategy delegate)
Must be called exactly once before calling any of the other methods.
|
Constructor and Description |
---|
CascadingDataAccessStrategy(List<DataAccessStrategy> strategies) |
Modifier and Type | Class and Description |
---|---|
class |
MyBatisDataAccessStrategy
DataAccessStrategy implementation based on MyBatis. |
Modifier and Type | Method and Description |
---|---|
static DataAccessStrategy |
MyBatisDataAccessStrategy.createCombinedAccessStrategy(RelationalMappingContext context,
JdbcConverter converter,
NamedParameterJdbcOperations operations,
org.apache.ibatis.session.SqlSession sqlSession,
Dialect dialect)
Create a
DataAccessStrategy that first checks for queries defined by MyBatis and if it doesn't find one
uses a DefaultDataAccessStrategy |
static DataAccessStrategy |
MyBatisDataAccessStrategy.createCombinedAccessStrategy(RelationalMappingContext context,
JdbcConverter converter,
NamedParameterJdbcOperations operations,
org.apache.ibatis.session.SqlSession sqlSession,
NamespaceStrategy namespaceStrategy,
Dialect dialect)
Create a
DataAccessStrategy that first checks for queries defined by MyBatis and if it doesn't find one
uses a DefaultDataAccessStrategy |
Modifier and Type | Method and Description |
---|---|
DataAccessStrategy |
MyBatisJdbcConfiguration.dataAccessStrategyBean(NamedParameterJdbcOperations operations,
JdbcConverter jdbcConverter,
JdbcMappingContext context,
Dialect dialect) |
DataAccessStrategy |
AbstractJdbcConfiguration.dataAccessStrategyBean(NamedParameterJdbcOperations operations,
JdbcConverter jdbcConverter,
JdbcMappingContext context,
Dialect dialect)
|
Modifier and Type | Method and Description |
---|---|
JdbcAggregateTemplate |
AbstractJdbcConfiguration.jdbcAggregateTemplate(ApplicationContext applicationContext,
JdbcMappingContext mappingContext,
JdbcConverter converter,
DataAccessStrategy dataAccessStrategy)
Register a
JdbcAggregateTemplate as a bean for easy use in applications that need a lower level of
abstraction than the normal repository abstraction. |
Modifier and Type | Method and Description |
---|---|
void |
JdbcRepositoryFactoryBean.setDataAccessStrategy(DataAccessStrategy dataAccessStrategy) |
Constructor and Description |
---|
JdbcRepositoryFactory(DataAccessStrategy dataAccessStrategy,
RelationalMappingContext context,
JdbcConverter converter,
Dialect dialect,
ApplicationEventPublisher publisher,
NamedParameterJdbcOperations operations)
Creates a new
JdbcRepositoryFactory for the given DataAccessStrategy ,
RelationalMappingContext and ApplicationEventPublisher . |
Copyright © 2017–2020 Pivotal Software, Inc.. All rights reserved.