Class MyBatisNetworkAssociationDao

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.MyBatisNetworkAssociationDao
All Implemented Interfaces:
NetworkAssociationDao, org.springframework.beans.factory.InitializingBean

public class MyBatisNetworkAssociationDao extends BaseMyBatisDao implements NetworkAssociationDao
MyBatis implementation of NetworkAssociationDao.
  • Field Details

    • QUERY_FOR_CONFIRMATION_CODE

      public static final String QUERY_FOR_CONFIRMATION_CODE
      The query used by invalid input: '{@link #getNetworkAssociationForConfirmationKey(String, String).'
      See Also:
  • Constructor Details

    • MyBatisNetworkAssociationDao

      public MyBatisNetworkAssociationDao()
  • Method Details

    • getNetworkAssociationForConfirmationKey

      public net.solarnetwork.domain.NetworkAssociation getNetworkAssociationForConfirmationKey(String username, String confirmationCode)
      Description copied from interface: NetworkAssociationDao
      Get a network association for a confirmation code.

      The confirmation code would have been generated by SolarNet and passed to the user to confirm on their node.

      Specified by:
      getNetworkAssociationForConfirmationKey in interface NetworkAssociationDao
      Parameters:
      username - the username used when generating the confirmation code
      confirmationCode - the confirmation code
      Returns:
      the association, or null if none available