public class HibernateGtfsRelationalDaoImpl extends Object implements GtfsMutableRelationalDao
| Modifier and Type | Field and Description |
|---|---|
protected HibernateOperations |
_ops |
| Constructor and Description |
|---|
HibernateGtfsRelationalDaoImpl() |
HibernateGtfsRelationalDaoImpl(org.hibernate.SessionFactory sessionFactory) |
protected HibernateOperations _ops
public HibernateGtfsRelationalDaoImpl()
public HibernateGtfsRelationalDaoImpl(org.hibernate.SessionFactory sessionFactory)
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public org.hibernate.SessionFactory getSessionFactory()
public Object execute(HibernateOperation callback)
public <T> Collection<T> getAllEntitiesForType(Class<T> type)
getAllEntitiesForType in interface GenericDaopublic <T> T getEntityForId(Class<T> type, Serializable id)
getEntityForId in interface GenericDaopublic List<Agency> getAllAgencies()
getAllAgencies in interface GtfsDaopublic List<ServiceCalendar> getAllCalendars()
getAllCalendars in interface GtfsDaopublic List<ServiceCalendarDate> getAllCalendarDates()
getAllCalendarDates in interface GtfsDaopublic Collection<FareAttribute> getAllFareAttributes()
getAllFareAttributes in interface GtfsDaopublic Collection<FareRule> getAllFareRules()
getAllFareRules in interface GtfsDaopublic Collection<FeedInfo> getAllFeedInfos()
getAllFeedInfos in interface GtfsDaopublic Collection<Frequency> getAllFrequencies()
getAllFrequencies in interface GtfsDaopublic List<Route> getAllRoutes()
getAllRoutes in interface GtfsDaopublic List<Stop> getAllStops()
getAllStops in interface GtfsDaopublic List<Pathway> getAllPathways()
getAllPathways in interface GtfsDaopublic List<Trip> getAllTrips()
getAllTrips in interface GtfsDaopublic List<StopTime> getAllStopTimes()
getAllStopTimes in interface GtfsDaopublic Collection<ShapePoint> getAllShapePoints()
getAllShapePoints in interface GtfsDaopublic Collection<Transfer> getAllTransfers()
getAllTransfers in interface GtfsDaopublic Agency getAgencyForId(String id)
getAgencyForId in interface GtfsDaopublic FareAttribute getFareAttributeForId(AgencyAndId id)
getFareAttributeForId in interface GtfsDaopublic FareRule getFareRuleForId(int id)
getFareRuleForId in interface GtfsDaopublic FeedInfo getFeedInfoForId(int id)
getFeedInfoForId in interface GtfsDaopublic Frequency getFrequencyForId(int id)
getFrequencyForId in interface GtfsDaopublic Pathway getPathwayForId(AgencyAndId agencyAndId)
getPathwayForId in interface GtfsDaopublic Route getRouteForId(AgencyAndId id)
getRouteForId in interface GtfsDaopublic ServiceCalendar getCalendarForId(int id)
getCalendarForId in interface GtfsDaopublic ServiceCalendarDate getCalendarDateForId(int id)
getCalendarDateForId in interface GtfsDaopublic ShapePoint getShapePointForId(int id)
getShapePointForId in interface GtfsDaopublic Stop getStopForId(AgencyAndId agencyAndId)
getStopForId in interface GtfsDaopublic StopTime getStopTimeForId(int id)
getStopTimeForId in interface GtfsDaopublic Transfer getTransferForId(int id)
getTransferForId in interface GtfsDaopublic Trip getTripForId(AgencyAndId id)
getTripForId in interface GtfsDaopublic List<String> getTripAgencyIdsReferencingServiceId(AgencyAndId serviceId)
GtfsRelationalDao InterfacegetTripAgencyIdsReferencingServiceId in interface GtfsRelationalDaopublic List<Route> getRoutesForAgency(Agency agency)
getRoutesForAgency in interface GtfsRelationalDaopublic List<Stop> getStopsForStation(Stop station)
getStopsForStation in interface GtfsRelationalDaopublic List<Trip> getTripsForRoute(Route route)
getTripsForRoute in interface GtfsRelationalDaopublic List<Trip> getTripsForShapeId(AgencyAndId shapeId)
getTripsForShapeId in interface GtfsRelationalDaopublic List<Trip> getTripsForServiceId(AgencyAndId serviceId)
getTripsForServiceId in interface GtfsRelationalDaopublic List<Trip> getTripsForBlockId(AgencyAndId blockId)
getTripsForBlockId in interface GtfsRelationalDaopublic List<StopTime> getStopTimesForTrip(Trip trip)
getStopTimesForTrip in interface GtfsRelationalDaopublic List<StopTime> getStopTimesForStop(Stop stop)
getStopTimesForStop in interface GtfsRelationalDaopublic List<AgencyAndId> getAllShapeIds()
getAllShapeIds in interface GtfsRelationalDaopublic List<ShapePoint> getShapePointsForShapeId(AgencyAndId shapeId)
getShapePointsForShapeId in interface GtfsRelationalDaopublic List<Frequency> getFrequenciesForTrip(Trip trip)
getFrequenciesForTrip in interface GtfsRelationalDaopublic List<AgencyAndId> getAllServiceIds()
getAllServiceIds in interface GtfsRelationalDaopublic List<ServiceCalendarDate> getCalendarDatesForServiceId(AgencyAndId serviceId)
getCalendarDatesForServiceId in interface GtfsRelationalDaopublic ServiceCalendar getCalendarForServiceId(AgencyAndId serviceId)
getCalendarForServiceId in interface GtfsRelationalDaopublic List<FareRule> getFareRulesForFareAttribute(FareAttribute fareAttribute)
getFareRulesForFareAttribute in interface GtfsRelationalDaopublic void open()
open in interface GenericMutableDaopublic void close()
close in interface GenericMutableDaopublic void flush()
flush in interface GenericMutableDaopublic <K extends Serializable,T extends IdentityBean<K>> void removeEntity(T entity)
removeEntity in interface GenericMutableDaopublic void updateEntity(Object entity)
updateEntity in interface GenericMutableDaopublic void saveEntity(Object entity)
saveEntity in interface GenericMutableDaopublic void saveOrUpdateEntity(Object entity)
saveOrUpdateEntity in interface GenericMutableDaopublic <T> void clearAllEntitiesForType(Class<T> type)
clearAllEntitiesForType in interface GenericMutableDaoCopyright © 2013 OneBusAway. All Rights Reserved.