Uses of Interface
org.springframework.data.jdbc.core.convert.DataAccessStrategy
Package
Description
Core JDBC implementation.
JDBC-specific conversion classes.
-
Uses of DataAccessStrategy in org.springframework.data.jdbc.core
ModifierConstructorDescriptionJdbcAggregateTemplate
(ApplicationContext publisher, RelationalMappingContext context, JdbcConverter converter, DataAccessStrategy dataAccessStrategy) Creates a newJdbcAggregateTemplate
givenApplicationContext
,RelationalMappingContext
andDataAccessStrategy
.JdbcAggregateTemplate
(ApplicationEventPublisher publisher, RelationalMappingContext context, JdbcConverter converter, DataAccessStrategy dataAccessStrategy) Creates a newJdbcAggregateTemplate
givenApplicationEventPublisher
,RelationalMappingContext
andDataAccessStrategy
. -
Uses of DataAccessStrategy in org.springframework.data.jdbc.core.convert
Modifier and TypeClassDescriptionclass
Delegates each method to theDataAccessStrategy
s passed to the constructor in turn until the first that does not throw an exception.class
The defaultDataAccessStrategy
is to generate SQL statements based on metadata from the entity.class
Delegates all method calls to an instance set after construction.Modifier and TypeMethodDescriptionDataAccessStrategyFactory.create()
Creates a newDataAccessStrategy
.Modifier and TypeMethodDescriptionvoid
DelegatingDataAccessStrategy.setDelegate
(DataAccessStrategy delegate) Deprecated, for removal: This API element is subject to removal in a future version. -
Uses of DataAccessStrategy in org.springframework.data.jdbc.mybatis
Modifier and TypeMethodDescriptionstatic DataAccessStrategy
MyBatisDataAccessStrategy.createCombinedAccessStrategy
(RelationalMappingContext context, JdbcConverter converter, NamedParameterJdbcOperations operations, org.apache.ibatis.session.SqlSession sqlSession, NamespaceStrategy namespaceStrategy, Dialect dialect) Create aDataAccessStrategy
that first checks for queries defined by MyBatis and if it doesn't find one uses aDefaultDataAccessStrategy
static DataAccessStrategy
MyBatisDataAccessStrategy.createCombinedAccessStrategy
(RelationalMappingContext context, JdbcConverter converter, NamedParameterJdbcOperations operations, org.apache.ibatis.session.SqlSession sqlSession, Dialect dialect) Create aDataAccessStrategy
that first checks for queries defined by MyBatis and if it doesn't find one uses aDefaultDataAccessStrategy
-
Uses of DataAccessStrategy in org.springframework.data.jdbc.repository.config
Modifier and TypeMethodDescriptionAbstractJdbcConfiguration.dataAccessStrategyBean
(NamedParameterJdbcOperations operations, JdbcConverter jdbcConverter, JdbcMappingContext context, Dialect dialect) MyBatisJdbcConfiguration.dataAccessStrategyBean
(NamedParameterJdbcOperations operations, JdbcConverter jdbcConverter, JdbcMappingContext context, Dialect dialect) Modifier and TypeMethodDescriptionAbstractJdbcConfiguration.jdbcAggregateTemplate
(ApplicationContext applicationContext, JdbcMappingContext mappingContext, JdbcConverter converter, DataAccessStrategy dataAccessStrategy) Register aJdbcAggregateTemplate
as a bean for easy use in applications that need a lower level of abstraction than the normal repository abstraction. -
Uses of DataAccessStrategy in org.springframework.data.jdbc.repository.support
Modifier and TypeMethodDescriptionvoid
JdbcRepositoryFactoryBean.setDataAccessStrategy
(DataAccessStrategy dataAccessStrategy) ModifierConstructorDescriptionJdbcRepositoryFactory
(DataAccessStrategy dataAccessStrategy, RelationalMappingContext context, JdbcConverter converter, Dialect dialect, ApplicationEventPublisher publisher, NamedParameterJdbcOperations operations) Creates a newJdbcRepositoryFactory
for the givenDataAccessStrategy
,RelationalMappingContext
andApplicationEventPublisher
.
DelegatingDataAccessStrategy(DataAccessStrategy)
to avoid mutable state.