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

public class MyBatisVersionedMessageDao extends BaseMyBatisDao implements VersionedMessageDao
MyBatis implementation of VersionedMessageDao.
Since:
2.6
  • Constructor Details

    • MyBatisVersionedMessageDao

      public MyBatisVersionedMessageDao()
  • Method Details

    • findMessages

      public Properties findMessages(Instant version, String[] bundleNames, String locale)
      Description copied from interface: VersionedMessageDao
      Get all available messages for a specific version.

      Note that if any messages are resolved, the VersionedMessageDao.VERSION_KEY value will be populated with the overall version of the returned messages.

      Specified by:
      findMessages in interface VersionedMessageDao
      Parameters:
      version - the maximum version to get messages for
      bundleNames - the message bundle names to get
      locale - the desired locale
      Returns:
      the resolved messages