Package | Description |
---|---|
org.springframework.data.jdbc.core | |
org.springframework.data.jdbc.mybatis | |
org.springframework.data.jdbc.repository.support |
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 |
---|
DefaultDataAccessStrategy(@NonNull SqlGeneratorSource sqlGeneratorSource,
@NonNull RelationalMappingContext context,
@NonNull RelationalConverter converter,
@NonNull NamedParameterJdbcOperations operations,
@NonNull DataAccessStrategy accessStrategy) |
EntityRowMapper(RelationalPersistentEntity<T> entity,
RelationalMappingContext context,
RelationalConverter converter,
DataAccessStrategy accessStrategy) |
JdbcAggregateTemplate(ApplicationEventPublisher publisher,
RelationalMappingContext context,
RelationalConverter converter,
DataAccessStrategy dataAccessStrategy)
Creates a new
JdbcAggregateTemplate given ApplicationEventPublisher ,
RelationalMappingContext and DataAccessStrategy . |
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,
RelationalConverter converter,
NamedParameterJdbcOperations operations,
org.apache.ibatis.session.SqlSession sqlSession)
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,
RelationalConverter converter,
NamedParameterJdbcOperations operations,
org.apache.ibatis.session.SqlSession sqlSession,
NamespaceStrategy namespaceStrategy)
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 |
---|---|
void |
JdbcRepositoryFactoryBean.setDataAccessStrategy(DataAccessStrategy dataAccessStrategy) |
Constructor and Description |
---|
JdbcRepositoryFactory(DataAccessStrategy dataAccessStrategy,
RelationalMappingContext context,
RelationalConverter converter,
ApplicationEventPublisher publisher,
NamedParameterJdbcOperations operations)
Creates a new
JdbcRepositoryFactory for the given DataAccessStrategy ,
RelationalMappingContext and ApplicationEventPublisher . |
Copyright © 2017–2018 Pivotal Software, Inc.. All rights reserved.