public class JdbcPersistence extends Object
Utility class related to JDBC persistence.
Constructor and Description |
---|
JdbcPersistence(DataSource dataSource,
SqlMappingContext sqlMappingContext,
String tablePrefix) |
Modifier and Type | Method and Description |
---|---|
void |
batchUpdate(String mappingId,
Map<String,?> context,
CloseableBatchPreparedStatementSetter batchSetter) |
String |
findSqlMapping(String mappingId) |
long |
queryForLongWithPredicates(String mappingId,
RenderedSql sqlPredicates) |
<T> List<T> |
queryForObjects(String mappingId,
Map<String,?> context,
org.springframework.jdbc.core.RowMapper<T> rowMapper) |
<T> List<T> |
queryForObjectsWithPredicates(String mappingId,
Map<String,Object> context,
RenderedSql sqlPredicates,
org.springframework.jdbc.core.RowMapper<T> rowMapper) |
<T> List<T> |
queryForObjectsWithPredicatesAndSorting(String mappingIdWithoutPaging,
String mappingIdWithPaging,
Map<String,Object> context,
RenderedSql sqlPredicates,
RenderedSql sqlSorting,
Integer offset,
Integer limit,
org.springframework.jdbc.core.RowMapper<T> rowMapper) |
void |
updateWithParameterBean(String mappingId,
Object parameterBean) |
int |
updateWithParameterMap(String mappingId,
Map<String,?> context) |
void |
updateWithParameterObject(String mappingId,
Object parameterValue) |
public JdbcPersistence(DataSource dataSource, SqlMappingContext sqlMappingContext, String tablePrefix)
public void updateWithParameterObject(String mappingId, Object parameterValue)
public void batchUpdate(String mappingId, Map<String,?> context, CloseableBatchPreparedStatementSetter batchSetter)
public <T> List<T> queryForObjects(String mappingId, Map<String,?> context, org.springframework.jdbc.core.RowMapper<T> rowMapper)
public long queryForLongWithPredicates(String mappingId, RenderedSql sqlPredicates)
public <T> List<T> queryForObjectsWithPredicates(String mappingId, Map<String,Object> context, RenderedSql sqlPredicates, org.springframework.jdbc.core.RowMapper<T> rowMapper)
public <T> List<T> queryForObjectsWithPredicatesAndSorting(String mappingIdWithoutPaging, String mappingIdWithPaging, Map<String,Object> context, RenderedSql sqlPredicates, RenderedSql sqlSorting, Integer offset, Integer limit, org.springframework.jdbc.core.RowMapper<T> rowMapper)
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.