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
MyBatis implementation of
NetworkAssociationDao.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe query used by invalid input: '{@link #getNetworkAssociationForConfirmationKey(String, String).'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
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.solarnetwork.domain.NetworkAssociationgetNetworkAssociationForConfirmationKey(String username, String confirmationCode) Get a network association for a confirmation code.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
-
Field Details
-
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:NetworkAssociationDaoGet 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:
getNetworkAssociationForConfirmationKeyin interfaceNetworkAssociationDao- Parameters:
username- the username used when generating the confirmation codeconfirmationCode- the confirmation code- Returns:
- the association, or null if none available
-