Class MyBatisVersionedMessageDao
java.lang.Object
org.springframework.dao.support.DaoSupport
org.mybatis.spring.support.SqlSessionDaoSupport
net.solarnetwork.central.dao.mybatis.support.BaseMyBatisDao
net.solarnetwork.central.dao.mybatis.MyBatisVersionedMessageDao
- All Implemented Interfaces:
VersionedMessageDao,org.springframework.beans.factory.InitializingBean
MyBatis implementation of
VersionedMessageDao.- Since:
- 2.6
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumQuery name enumeration.Nested classes/interfaces inherited from interface net.solarnetwork.central.dao.VersionedMessageDao
VersionedMessageDao.VersionedMessages -
Field Summary
Fields inherited from class net.solarnetwork.central.dao.mybatis.support.BaseMyBatisDao
FILTER_PROPERTY, FIRST_ROW, log, SORT_DESCRIPTORS_PROPERTYFields inherited from class org.springframework.dao.support.DaoSupport
loggerFields inherited from interface net.solarnetwork.central.dao.VersionedMessageDao
VERSION_KEY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindMessages(Instant version, String[] bundleNames, String locale) Get all available messages for a specific version.Methods inherited from class net.solarnetwork.central.dao.mybatis.support.BaseMyBatisDao
executeCountQuery, selectFiltered, selectFiltered, selectFiltered, selectFiltered, selectFirst, selectList, selectLong, setSqlSessionFactoryMethods inherited from class org.mybatis.spring.support.SqlSessionDaoSupport
checkDaoConfig, createSqlSessionTemplate, getSqlSession, getSqlSessionFactory, getSqlSessionTemplate, setSqlSessionTemplateMethods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
-
Constructor Details
-
MyBatisVersionedMessageDao
public MyBatisVersionedMessageDao()
-
-
Method Details
-
findMessages
Description copied from interface:VersionedMessageDaoGet all available messages for a specific version.Note that if any messages are resolved, the
VersionedMessageDao.VERSION_KEYvalue will be populated with the overall version of the returned messages.- Specified by:
findMessagesin interfaceVersionedMessageDao- Parameters:
version- the maximum version to get messages forbundleNames- the message bundle names to getlocale- the desired locale- Returns:
- the resolved messages
-