Avoid throws Exception where possible - Phase III
This commit is contained in:
committed by
Artem Bilan
parent
b138ab80f8
commit
78199dca9b
@@ -56,6 +56,10 @@ import org.springframework.util.Assert;
|
||||
*/
|
||||
public class StoredProcExecutor implements BeanFactoryAware, InitializingBean {
|
||||
|
||||
private static final int DEFAULT_CACHE_SIZE = 10;
|
||||
|
||||
private static final float LOAD_FACTOR = 0.75f;
|
||||
|
||||
private final DataSource dataSource;
|
||||
|
||||
private Map<String, RowMapper<?>> returningResultSetRowMappers = new HashMap<>(0);
|
||||
@@ -64,7 +68,7 @@ public class StoredProcExecutor implements BeanFactoryAware, InitializingBean {
|
||||
|
||||
private BeanFactory beanFactory;
|
||||
|
||||
private int jdbcCallOperationsCacheSize = 10;
|
||||
private int jdbcCallOperationsCacheSize = DEFAULT_CACHE_SIZE;
|
||||
|
||||
private Map<String, SimpleJdbcCallOperations> jdbcCallOperationsMap;
|
||||
|
||||
@@ -185,7 +189,7 @@ public class StoredProcExecutor implements BeanFactoryAware, InitializingBean {
|
||||
}
|
||||
|
||||
private Map<String, SimpleJdbcCallOperations> buildJdbcCallOperationsMap() {
|
||||
return new LinkedHashMap<String, SimpleJdbcCallOperations>(this.jdbcCallOperationsCacheSize + 1, 0.75f,
|
||||
return new LinkedHashMap<String, SimpleJdbcCallOperations>(this.jdbcCallOperationsCacheSize + 1, LOAD_FACTOR,
|
||||
true) {
|
||||
|
||||
private static final long serialVersionUID = 3801124242820219131L;
|
||||
|
||||
Reference in New Issue
Block a user