org.onebusaway.transit_data_federation.impl.realtime
@Component @ManagedResource(value="org.onebusaway.transit_data_federation.impl.realtime:name=BlockLocationRecordDaoImpl") public class BlockLocationRecordDaoImpl extends Object implements BlockLocationRecordDao
BlockLocationRecordDao
that manages
persisting BlockLocationRecord
records to a Hibernate-managed
data-store.BlockLocationRecordDao
,
BlockLocationRecord
Constructor and Description |
---|
BlockLocationRecordDaoImpl() |
Modifier and Type | Method and Description |
---|---|
List<BlockLocationRecord> |
getBlockLocationRecords(org.onebusaway.gtfs.model.AgencyAndId blockId,
org.onebusaway.gtfs.model.AgencyAndId tripId,
org.onebusaway.gtfs.model.AgencyAndId vehicleId,
long serviceDate,
long fromTime,
long toTime,
int recordLimit)
The mega-query method.
|
List<BlockLocationRecord> |
getBlockLocationRecordsForBlockServiceDateAndTimeRange(org.onebusaway.gtfs.model.AgencyAndId blockId,
long serviceDate,
long fromTime,
long toTime) |
List<BlockLocationRecord> |
getBlockLocationRecordsForVehicleAndTimeRange(org.onebusaway.gtfs.model.AgencyAndId vehicleId,
long fromTime,
long toTime) |
int |
getSavedRecordCount() |
void |
saveBlockLocationRecord(BlockLocationRecord record)
BlockLocationRecordDao Interface |
void |
saveBlockLocationRecords(List<BlockLocationRecord> records) |
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
@ManagedAttribute public int getSavedRecordCount()
public void saveBlockLocationRecord(BlockLocationRecord record)
BlockLocationRecordDao
InterfacesaveBlockLocationRecord
in interface BlockLocationRecordDao
public void saveBlockLocationRecords(List<BlockLocationRecord> records)
saveBlockLocationRecords
in interface BlockLocationRecordDao
public List<BlockLocationRecord> getBlockLocationRecordsForBlockServiceDateAndTimeRange(org.onebusaway.gtfs.model.AgencyAndId blockId, long serviceDate, long fromTime, long toTime)
getBlockLocationRecordsForBlockServiceDateAndTimeRange
in interface BlockLocationRecordDao
serviceDate
- the service date (Unix-time) on which the block trip operatedfromTime
- Unix-timetoTime
- Unix-timepublic List<BlockLocationRecord> getBlockLocationRecordsForVehicleAndTimeRange(org.onebusaway.gtfs.model.AgencyAndId vehicleId, long fromTime, long toTime)
getBlockLocationRecordsForVehicleAndTimeRange
in interface BlockLocationRecordDao
public List<BlockLocationRecord> getBlockLocationRecords(org.onebusaway.gtfs.model.AgencyAndId blockId, org.onebusaway.gtfs.model.AgencyAndId tripId, org.onebusaway.gtfs.model.AgencyAndId vehicleId, long serviceDate, long fromTime, long toTime, int recordLimit)
BlockLocationRecordDao
getBlockLocationRecords
in interface BlockLocationRecordDao
recordLimit
- TODOCopyright © 2014 OneBusAway. All Rights Reserved.