Package io.higson.runtime.dao
Class BaseDao
java.lang.Object
io.higson.runtime.dao.BaseDao
- Direct Known Subclasses:
DevModeJdbcDao,DomainCacheJdbcDao,ExternalStorageDao,FunctionJdbcDao,ParameterJdbcDao,SessionJdbcDao,VersionJdbcDao
Created by psikora on 2017-01-17.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ConnectionInterceptorprotected final DataSourceprotected static final intprotected MiniJdbcTemplate -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedBaseDao(DataSource dataSource, ConnectionInterceptor connectionInterceptor) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> TgetOne(MiniJdbcTemplate jdbcTemplate, String sql, RowMapper<T> mapper) protected <T> TgetOne(MiniJdbcTemplate jdbcTemplate, String sql, RowMapper<T> mapper, Object... args) protected MiniJdbcTemplateprotected MiniJdbcTemplatejdbcTemplate(int fetchSize) protected voidsetDefaultFetchSize(int defaultFetchSize)
-
Field Details
-
DEFAULT_FETCH_SIZE
protected static final int DEFAULT_FETCH_SIZE- See Also:
-
dataSource
-
connectionInterceptor
-
defaultJdbcTemplate
-
-
Constructor Details
-
BaseDao
-
-
Method Details
-
setDefaultFetchSize
protected void setDefaultFetchSize(int defaultFetchSize) -
jdbcTemplate
-
jdbcTemplate
-
getOne
-
getOne
protected <T> T getOne(MiniJdbcTemplate jdbcTemplate, String sql, RowMapper<T> mapper, Object... args)
-