public class MeasurementDaoImpl extends AbstractDao<Measurement> implements MeasurementDao
Constructor and Description |
---|
MeasurementDaoImpl(SessionFactory sessionFactory,
CriteriaQueryRepository criteriaQueryRepository) |
Modifier and Type | Method and Description |
---|---|
java.util.List<Measurement> |
findAllMeasurementsByMaxDate(java.lang.String strategyName,
java.time.ZonedDateTime maxDateTime)
Finds all Measurements before the specified Date
|
java.util.List<Measurement> |
findAllMeasurementsByMinDate(java.lang.String strategyName,
java.time.ZonedDateTime minDateTime)
Finds all Measurements after the specified Date
|
java.util.List<Measurement> |
findMeasurementByDate(java.lang.String strategyName,
java.lang.String name,
java.time.ZonedDateTime dateTime)
Finds a Measurement of the specified Date with the specified name
|
java.util.List<Measurement> |
findMeasurementsByMaxDate(int limit,
java.lang.String strategyName,
java.lang.String name,
java.time.ZonedDateTime maxDateTime)
Does the same thing as
MeasurementDao.findMeasurementsByMaxDate(String, String, ZonedDateTime) with an
additional argument called limit . |
java.util.List<Measurement> |
findMeasurementsByMaxDate(java.lang.String strategyName,
java.lang.String name,
java.time.ZonedDateTime maxDateTime)
Finds all Measurements before the specified Date with the specified name
|
java.util.List<Measurement> |
findMeasurementsByMinDate(int limit,
java.lang.String strategyName,
java.lang.String name,
java.time.ZonedDateTime minDateTime)
Does the same thing as
MeasurementDao.findMeasurementsByMinDate(String, String, ZonedDateTime) with an
additional argument called limit . |
java.util.List<Measurement> |
findMeasurementsByMinDate(java.lang.String strategyName,
java.lang.String name,
java.time.ZonedDateTime minDateTime)
Finds all Measurements after the specified Date with the specified name
|
convertId, convertIds, convertToList, convertToSet, delete, deleteAll, deleteById, find, find, find, find, find, find, find, find, find, find, find, find, find, find, find, findAsSet, findAsSet, findAsSet, findAsSet, findAsSet, findAsSet, findAsSetCaching, findAsSetCaching, findAsSetCaching, findAsSetCaching, findAsSetCaching, findAsSetCaching, findAsSetCaching, findCaching, findCaching, findCaching, findCaching, findCaching, findCaching, findCaching, findCaching, findCaching, findCaching, findCaching, findCaching, findCaching, findCaching, findObjects, findObjects, findObjects, findObjects, findObjects, findObjects, findObjects, findObjects, findObjectsCaching, findObjectsCaching, findObjectsCaching, findObjectsCaching, findObjectsCaching, findObjectsCaching, findObjectsCaching, findUnique, findUnique, findUnique, findUnique, findUnique, findUnique, findUnique, findUniqueCaching, findUniqueCaching, findUniqueCaching, findUniqueCaching, findUniqueCaching, findUniqueCaching, findUniqueCaching, findUniqueCaching, findUniqueCaching, findUniqueCaching, findUniqueObject, findUniqueObject, findUniqueObject, findUniqueObject, findUniqueSQL, findUniqueSQL, findUniqueSQL, findUniqueSQL, findUniqueSQL, findUniqueSQL, flush, get, get, getCurrentSession, getEntityClass, getLocked, load, load, loadAll, loadAll, loadLocked, lock, lock, merge, persist, prepareQuery, prepareQuery, prepareQuery, prepareQuery, prepareQuery, prepareQuery, prepareQuery, prepareQuery, prepareQuery, prepareSQLQuery, prepareSQLQuery, prepareSQLQuery, prepareSQLQuery, prepareSQLQuery, prepareSQLQuery, save, saveAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, deleteAll, deleteById, flush, merge, persist, save, saveAll
get, getLocked, load, loadAll, loadLocked, lock
public MeasurementDaoImpl(SessionFactory sessionFactory, CriteriaQueryRepository criteriaQueryRepository)
public java.util.List<Measurement> findMeasurementByDate(java.lang.String strategyName, java.lang.String name, java.time.ZonedDateTime dateTime)
MeasurementDao
findMeasurementByDate
in interface MeasurementDao
strategyName
- The strategy namename
- The name of the MeasurementdateTime
- The dateTimepublic java.util.List<Measurement> findMeasurementsByMaxDate(java.lang.String strategyName, java.lang.String name, java.time.ZonedDateTime maxDateTime)
MeasurementDao
findMeasurementsByMaxDate
in interface MeasurementDao
strategyName
- The strategy namename
- The name of the MeasurementmaxDateTime
- The maximum date timepublic java.util.List<Measurement> findMeasurementsByMaxDate(int limit, java.lang.String strategyName, java.lang.String name, java.time.ZonedDateTime maxDateTime)
MeasurementDao
MeasurementDao.findMeasurementsByMaxDate(String, String, ZonedDateTime)
with an
additional argument called limit
. The limit
argument allows you to specify the page number when you are paging the results.findMeasurementsByMaxDate
in interface MeasurementDao
limit
- The maximum number of Measurements to returnstrategyName
- The strategy namename
- The name of the MeasurementmaxDateTime
- the maximum dateTimepublic java.util.List<Measurement> findAllMeasurementsByMaxDate(java.lang.String strategyName, java.time.ZonedDateTime maxDateTime)
MeasurementDao
findAllMeasurementsByMaxDate
in interface MeasurementDao
strategyName
- The strategy namemaxDateTime
- The maximum dateTimepublic java.util.List<Measurement> findMeasurementsByMinDate(java.lang.String strategyName, java.lang.String name, java.time.ZonedDateTime minDateTime)
MeasurementDao
findMeasurementsByMinDate
in interface MeasurementDao
strategyName
- The strategy namename
- The name of the MeasurementminDateTime
- The minimum dateTimepublic java.util.List<Measurement> findMeasurementsByMinDate(int limit, java.lang.String strategyName, java.lang.String name, java.time.ZonedDateTime minDateTime)
MeasurementDao
MeasurementDao.findMeasurementsByMinDate(String, String, ZonedDateTime)
with an
additional argument called limit
. The limit
argument allows you to specify the page number when you are paging the results.findMeasurementsByMinDate
in interface MeasurementDao
limit
- The maximum number of Measurements to returnstrategyName
- The strategy namename
- The name of the MeasurementminDateTime
- The minimum dateTimepublic java.util.List<Measurement> findAllMeasurementsByMinDate(java.lang.String strategyName, java.time.ZonedDateTime minDateTime)
MeasurementDao
findAllMeasurementsByMinDate
in interface MeasurementDao
strategyName
- The strategy nameminDateTime
- The minimum dateTime