Class MyBatisSolarNodeDao
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.support.BaseMyBatisGenericDao<SolarNode,Long>
net.solarnetwork.central.dao.mybatis.support.BaseMyBatisFilterableDao<SolarNode,SolarNodeFilterMatch,SolarNodeFilter,Long>
net.solarnetwork.central.dao.mybatis.MyBatisSolarNodeDao
- All Implemented Interfaces:
FilterableDao<SolarNodeFilterMatch,,Long, SolarNodeFilter> GenericDao<SolarNode,,Long> SolarNodeDao,org.springframework.beans.factory.InitializingBean
public class MyBatisSolarNodeDao
extends BaseMyBatisFilterableDao<SolarNode,SolarNodeFilterMatch,SolarNodeFilter,Long>
implements SolarNodeDao
MyBatis implementation of
SolarNodeDao.-
Field Summary
FieldsFields inherited from class net.solarnetwork.central.dao.mybatis.support.BaseMyBatisFilterableDao
FILTER_PROPERTYFields inherited from class net.solarnetwork.central.dao.mybatis.support.BaseMyBatisGenericDao
BEAN_OBJECT_PROPERTY, CHILD_DELETE, CHILD_INSERT, CHILD_UPDATE, DATE_PROPERTY, DELETE_OBJECT, ERROR_CODE_INVALID_QUERY, ID_PROPERTY, INDEX_PROPERTY, INSERT_OBJECT, QUERY_FOR_ALL, QUERY_FOR_ID, RELATION_DELETE, RELATION_INSERT, RELATION_LIST_QUERY_FOR_PARENT, RELATION_OBJ_QUERY_FOR_PARENT, RELATION_UPDATE, SORT_DESCRIPTORS_PROPERTY, UPDATE_OBJECTFields inherited from class net.solarnetwork.central.dao.mybatis.support.BaseMyBatisDao
FIRST_ROW, logFields inherited from class org.springframework.dao.support.DaoSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindFiltered(SolarNodeFilter filter, List<net.solarnetwork.domain.SortDescriptor> sortDescriptors, Integer offset, Integer max) API for querying for a filtered set of results from all possible results.Get an unused node ID value.Persist the domainObject object into database, creating or updating as appropriate.Methods inherited from class net.solarnetwork.central.dao.mybatis.support.BaseMyBatisFilterableDao
executeFilterCountQuery, getFilteredQuery, postProcessFilterPropertiesMethods inherited from class net.solarnetwork.central.dao.mybatis.support.BaseMyBatisGenericDao
delete, execute, get, getAll, getChildDelete, getChildInsert, getChildUpdate, getDelete, getDomainClass, getInsert, getMemberDomainKey, getMessageSource, getObjectType, getPrimaryKeyType, getQueryForAll, getQueryForId, getRelationDelete, getRelationInsert, getRelationObjectQueryForParent, getRelationQueryForParent, getRelationUpdate, getUpdate, handleAssignedPrimaryKeyStore, handleChildRelation, handleInsert, handleRelation, handleRelation, handleUpdate, mapSqlMapException, preprocessInsert, setChildDelete, setChildInsert, setChildUpdate, setDelete, setInsert, setMessageSource, setQueryForAll, setQueryForId, setRelationDelete, setRelationInsert, setRelationObjectQueryForParent, setRelationQueryForParent, setRelationUpdate, setUpdate, spaceAppendMethods 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, initDaoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.solarnetwork.central.dao.GenericDao
delete, get, getAll, getObjectType
-
Field Details
-
QUERY_FOR_NEXT_NODE_ID
The query name used forgetUnusedNodeId().- See Also:
-
-
Constructor Details
-
MyBatisSolarNodeDao
public MyBatisSolarNodeDao()Default constructor.
-
-
Method Details
-
getUnusedNodeId
Description copied from interface:SolarNodeDaoGet an unused node ID value.Once an ID has been returned by this method, that ID will never be returned again.
- Specified by:
getUnusedNodeIdin interfaceSolarNodeDao- Returns:
- an unused node ID
-
store
Description copied from interface:GenericDaoPersist the domainObject object into database, creating or updating as appropriate.- Specified by:
storein interfaceGenericDao<SolarNode,Long> - Overrides:
storein classBaseMyBatisGenericDao<SolarNode,Long> - Parameters:
datum- the domain object so store- Returns:
- the primary key of the stored object
-
findFiltered
public FilterResults<SolarNodeFilterMatch> findFiltered(SolarNodeFilter filter, List<net.solarnetwork.domain.SortDescriptor> sortDescriptors, Integer offset, Integer max) Description copied from interface:FilterableDaoAPI for querying for a filtered set of results from all possible results.- Specified by:
findFilteredin interfaceFilterableDao<SolarNodeFilterMatch,Long, SolarNodeFilter> - Overrides:
findFilteredin classBaseMyBatisFilterableDao<SolarNode,SolarNodeFilterMatch, SolarNodeFilter, Long> - Parameters:
filter- the query filtersortDescriptors- the optional sort descriptorsoffset- an optional result offsetmax- an optional maximum number of returned results- Returns:
- the results, never null
-