Package io.higson.runtime.dao.parameter
Class ParameterJdbcDao
java.lang.Object
io.higson.runtime.dao.BaseDao
io.higson.runtime.dao.parameter.ParameterJdbcDao
- All Implemented Interfaces:
ParameterDao
- Author:
- przemek hertel
-
Field Summary
Fields inherited from class io.higson.runtime.dao.BaseDao
connectionInterceptor, dataSource, DEFAULT_FETCH_SIZE, defaultJdbcTemplate -
Constructor Summary
ConstructorsConstructorDescriptionParameterJdbcDao(DataSource dataSource, ConnectionInterceptor connectionInterceptor) ParameterJdbcDao(DataSource dataSource, ConnectionInterceptor connectionInterceptor, MpDecodingStrategy decodingStrategy, ExtSqlExecutor extSqlExecutor) -
Method Summary
Modifier and TypeMethodDescriptionvoidfindEntries(int pid, String[][] inputLevels) getAllLastUpdates(boolean developerMode) getHeader(int pid) getMaxLastUpdate(boolean developerMode) getNamesByRegionsInProfiles(Map<String, List<String>> profileToRegions) getParameter(String code, String ver, int sid) getParameter(String code, String ver, int sid, int mid) Fetches parameter with: - metadata (parameter head, in levels, out levels) - matrix (cacheable parameters) where parameter is described by uid = code[@ver][:sid][%mid]Methods inherited from class io.higson.runtime.dao.BaseDao
getOne, getOne, jdbcTemplate, jdbcTemplate, setDefaultFetchSizeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.higson.runtime.dao.parameter.ParameterDao
setInterceptor
-
Constructor Details
-
ParameterJdbcDao
public ParameterJdbcDao(DataSource dataSource, ConnectionInterceptor connectionInterceptor, MpDecodingStrategy decodingStrategy, ExtSqlExecutor extSqlExecutor) -
ParameterJdbcDao
-
-
Method Details
-
getParameter
- Specified by:
getParameterin interfaceParameterDao
-
getParameter
Fetches parameter with: - metadata (parameter head, in levels, out levels) - matrix (cacheable parameters) where parameter is described by uid = code[@ver][:sid][%mid]- Specified by:
getParameterin interfaceParameterDao- Parameters:
code- parameter's codever- optional version codesid- optional session idmid- optional matrix id- Returns:
- mp parameter
-
fetchAiModel
- Specified by:
fetchAiModelin interfaceParameterDao
-
findEntries
- Specified by:
findEntriesin interfaceParameterDao
-
getMaxLastUpdate
- Specified by:
getMaxLastUpdatein interfaceParameterDao
-
getMaxLastUpdate
- Specified by:
getMaxLastUpdatein interfaceParameterDao
-
getAllLastUpdates
- Specified by:
getAllLastUpdatesin interfaceParameterDao
-
getNamesByRegionsInProfiles
- Specified by:
getNamesByRegionsInProfilesin interfaceParameterDao
-
getAllHeads
- Specified by:
getAllHeadsin interfaceParameterDao
-
getHeader
- Specified by:
getHeaderin interfaceParameterDao
-