Constructor and Description |
---|
SensorDaoImpl(com.j256.ormlite.support.ConnectionSource connectionSource) |
countOf, countOf, countOf, create, createOrUpdate, delete, delete, delete, deleteById, deleteByIds, get, getAll, getAll, getAllData, getById, getDao, getQueryResponse, getTableInfo, hasTable, updateBulk, updateBulk, updateId, updatePurgeCondition
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countOf, countOf, countOf, create, createOrUpdate, delete, delete, delete, deleteById, deleteByIds, get, getAll, getAllData, getById, getTableInfo, updateBulk, updateBulk, updateId
public SensorDaoImpl(com.j256.ormlite.support.ConnectionSource connectionSource) throws SQLException
SQLException
public void createOrUpdate(Integer gatewayId, String nodeEui, Sensor sensor)
createOrUpdate
in interface SensorDao
public void createOrUpdate(Integer nodeId, Sensor sensor)
createOrUpdate
in interface SensorDao
public void delete(Sensor sensor)
public void update(Sensor sensor)
public List<Sensor> getAllByNodeId(Integer nodeId)
getAllByNodeId
in interface SensorDao
public List<Sensor> getAllByNodeIds(List<Integer> nodeIds)
getAllByNodeIds
in interface SensorDao
public List<Integer> getSensorIds(String nodeEui, Integer gatewayId)
getSensorIds
in interface SensorDao
public List<Sensor> getAllByIds(List<Integer> ids)
getAllByIds
in interface SensorDao
public QueryResponse getAll(Query query)
public List<Integer> getSensorIdsByNodeIds(List<Integer> ids)
getSensorIdsByNodeIds
in interface SensorDao
public List<Sensor> getAllByRoomId(Integer roomId)
getAllByRoomId
in interface SensorDao
public Sensor getByRoomId(String sensorName, Integer roomId)
getByRoomId
in interface SensorDao
Copyright © 2015–2019. All rights reserved.