org.onebusaway.gtfs.impl
Class HibernateGtfsRelationalDaoImpl
java.lang.Object
org.onebusaway.gtfs.impl.HibernateGtfsRelationalDaoImpl
- All Implemented Interfaces:
- GenericDao, GenericMutableDao, GtfsDao, GtfsMutableDao, GtfsMutableRelationalDao, GtfsRelationalDao
public class HibernateGtfsRelationalDaoImpl
- extends Object
- implements GtfsMutableRelationalDao
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_ops
protected HibernateOperations _ops
HibernateGtfsRelationalDaoImpl
public HibernateGtfsRelationalDaoImpl()
HibernateGtfsRelationalDaoImpl
public HibernateGtfsRelationalDaoImpl(org.hibernate.SessionFactory sessionFactory)
setSessionFactory
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
getSessionFactory
public org.hibernate.SessionFactory getSessionFactory()
execute
public Object execute(HibernateOperation callback)
getAllEntitiesForType
public <T> Collection<T> getAllEntitiesForType(Class<T> type)
- Specified by:
getAllEntitiesForType in interface GenericDao
getEntityForId
public <T> T getEntityForId(Class<T> type,
Serializable id)
- Specified by:
getEntityForId in interface GenericDao
getAllAgencies
public List<Agency> getAllAgencies()
- Specified by:
getAllAgencies in interface GtfsDao
getAllCalendars
public List<ServiceCalendar> getAllCalendars()
- Specified by:
getAllCalendars in interface GtfsDao
getAllCalendarDates
public List<ServiceCalendarDate> getAllCalendarDates()
- Specified by:
getAllCalendarDates in interface GtfsDao
getAllFareAttributes
public Collection<FareAttribute> getAllFareAttributes()
- Specified by:
getAllFareAttributes in interface GtfsDao
getAllFareRules
public Collection<FareRule> getAllFareRules()
- Specified by:
getAllFareRules in interface GtfsDao
getAllFrequencies
public Collection<Frequency> getAllFrequencies()
- Specified by:
getAllFrequencies in interface GtfsDao
getAllRoutes
public List<Route> getAllRoutes()
- Specified by:
getAllRoutes in interface GtfsDao
getAllStops
public List<Stop> getAllStops()
- Specified by:
getAllStops in interface GtfsDao
getAllPathways
public List<Pathway> getAllPathways()
- Specified by:
getAllPathways in interface GtfsDao
getAllTrips
public List<Trip> getAllTrips()
- Specified by:
getAllTrips in interface GtfsDao
getAllStopTimes
public List<StopTime> getAllStopTimes()
- Specified by:
getAllStopTimes in interface GtfsDao
getAllShapePoints
public Collection<ShapePoint> getAllShapePoints()
- Specified by:
getAllShapePoints in interface GtfsDao
getAllTransfers
public Collection<Transfer> getAllTransfers()
- Specified by:
getAllTransfers in interface GtfsDao
getAgencyForId
public Agency getAgencyForId(String id)
- Specified by:
getAgencyForId in interface GtfsDao
getFareAttributeForId
public FareAttribute getFareAttributeForId(AgencyAndId id)
- Specified by:
getFareAttributeForId in interface GtfsDao
getFareRuleForId
public FareRule getFareRuleForId(int id)
- Specified by:
getFareRuleForId in interface GtfsDao
getFrequencyForId
public Frequency getFrequencyForId(int id)
- Specified by:
getFrequencyForId in interface GtfsDao
getPathwayForId
public Pathway getPathwayForId(AgencyAndId agencyAndId)
- Specified by:
getPathwayForId in interface GtfsDao
getRouteForId
public Route getRouteForId(AgencyAndId id)
- Specified by:
getRouteForId in interface GtfsDao
getCalendarForId
public ServiceCalendar getCalendarForId(int id)
- Specified by:
getCalendarForId in interface GtfsDao
getCalendarDateForId
public ServiceCalendarDate getCalendarDateForId(int id)
- Specified by:
getCalendarDateForId in interface GtfsDao
getShapePointForId
public ShapePoint getShapePointForId(int id)
- Specified by:
getShapePointForId in interface GtfsDao
getStopForId
public Stop getStopForId(AgencyAndId agencyAndId)
- Specified by:
getStopForId in interface GtfsDao
getStopTimeForId
public StopTime getStopTimeForId(int id)
- Specified by:
getStopTimeForId in interface GtfsDao
getTransferForId
public Transfer getTransferForId(int id)
- Specified by:
getTransferForId in interface GtfsDao
getTripForId
public Trip getTripForId(AgencyAndId id)
- Specified by:
getTripForId in interface GtfsDao
getTripAgencyIdsReferencingServiceId
public List<String> getTripAgencyIdsReferencingServiceId(AgencyAndId serviceId)
GtfsRelationalDao Interface
- Specified by:
getTripAgencyIdsReferencingServiceId in interface GtfsRelationalDao
getRoutesForAgency
public List<Route> getRoutesForAgency(Agency agency)
- Specified by:
getRoutesForAgency in interface GtfsRelationalDao
getTripsForRoute
public List<Trip> getTripsForRoute(Route route)
- Specified by:
getTripsForRoute in interface GtfsRelationalDao
getTripsForBlockId
public List<Trip> getTripsForBlockId(AgencyAndId blockId)
- Specified by:
getTripsForBlockId in interface GtfsRelationalDao
getStopTimesForTrip
public List<StopTime> getStopTimesForTrip(Trip trip)
- Specified by:
getStopTimesForTrip in interface GtfsRelationalDao
getStopTimesForStop
public List<StopTime> getStopTimesForStop(Stop stop)
- Specified by:
getStopTimesForStop in interface GtfsRelationalDao
getShapePointsForShapeId
public List<ShapePoint> getShapePointsForShapeId(AgencyAndId shapeId)
- Specified by:
getShapePointsForShapeId in interface GtfsRelationalDao
getFrequenciesForTrip
public List<Frequency> getFrequenciesForTrip(Trip trip)
- Specified by:
getFrequenciesForTrip in interface GtfsRelationalDao
getCalendarDatesForServiceId
public List<ServiceCalendarDate> getCalendarDatesForServiceId(AgencyAndId serviceId)
- Specified by:
getCalendarDatesForServiceId in interface GtfsRelationalDao
getCalendarForServiceId
public ServiceCalendar getCalendarForServiceId(AgencyAndId serviceId)
- Specified by:
getCalendarForServiceId in interface GtfsRelationalDao
open
public void open()
- Mutable Methods
- Specified by:
open in interface GenericMutableDao
close
public void close()
- Specified by:
close in interface GenericMutableDao
flush
public void flush()
- Specified by:
flush in interface GenericMutableDao
removeEntity
public <K extends Serializable,T extends IdentityBean<K>> void removeEntity(T entity)
- Specified by:
removeEntity in interface GenericMutableDao
updateEntity
public void updateEntity(Object entity)
- Specified by:
updateEntity in interface GenericMutableDao
saveEntity
public void saveEntity(Object entity)
- Specified by:
saveEntity in interface GenericMutableDao
saveOrUpdateEntity
public void saveOrUpdateEntity(Object entity)
- Specified by:
saveOrUpdateEntity in interface GenericMutableDao
clearAllEntitiesForType
public <T> void clearAllEntitiesForType(Class<T> type)
- Specified by:
clearAllEntitiesForType in interface GenericMutableDao
Copyright © 2011 OneBusAway. All Rights Reserved.