Package org.onebusaway.gtfs.impl
Class GtfsDaoImpl
java.lang.Object
org.onebusaway.gtfs.impl.GenericDaoImpl
org.onebusaway.gtfs.impl.GtfsDaoImpl
- All Implemented Interfaces:
GenericDao,GenericMutableDao,GtfsDao,GtfsMutableDao
- Direct Known Subclasses:
GtfsRelationalDaoImpl
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMetadata(String filename, String content) <T> voidclearAllEntitiesForType(Class<T> type) voidclose()getAgencyForId(String id) GtfsDaoInterfaceAgency MethodsAreaMethodsServiceCalendarDateMethodsServiceCalendarMethods<T> Collection<T> getAllEntitiesForType(Class<T> type) GenericMutableDaoInterfaceFareAttributeMethodsFareLegRuleMethodsFareMediumMethodsFareProductMethodsFareRuleMethodsFareTransferRuleMethodsFeedInfoMethodsFrequencyMethodsNetworkMethodsPathwayMethodsRiderCategoryMethodsRouteMethodsShapePointMethodsStopMethodsStopTimeMethodsTransferMethodsTranslationMethodsTripMethodsVehicleMethodsgetBlockForId(int id) getCalendarDateForId(int id) getCalendarForId(int id) <K,V> Map <K, V> getEntitiesByIdForEntityType(Class<K> keyType, Class<V> entityType) GenericMutableDaoInterface<T> TgetEntityForId(Class<T> type, Serializable id) getFareRuleForId(int id) getFrequencyForId(int id) getMetadata(String filename) getShapePointForId(int id) getStopTimeForId(int id) getTransferForId(int id) VehicleMethodsbooleanhasMetadata(String filename) booleanboolean<K extends Serializable,T extends IdentityBean<K>>
voidremoveEntity(T entity) voidsaveEntity(Object entity) voidsetPackShapePoints(boolean packShapePoints) voidsetPackStopTimes(boolean packStopTimes) Methods inherited from class org.onebusaway.gtfs.impl.GenericDaoImpl
clear, flush, getEntityClasses, open, saveOrUpdateEntity, setGenerateIds, updateEntityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.onebusaway.gtfs.services.GenericMutableDao
flush, open, saveOrUpdateEntity, updateEntityMethods inherited from interface org.onebusaway.gtfs.services.GtfsDao
hasFaresV1, hasFaresV2
-
Field Details
-
OPTIONAL_FILE_NAMES
-
-
Constructor Details
-
GtfsDaoImpl
public GtfsDaoImpl()
-
-
Method Details
-
isPackStopTimes
public boolean isPackStopTimes() -
setPackStopTimes
public void setPackStopTimes(boolean packStopTimes) -
isPackShapePoints
public boolean isPackShapePoints() -
setPackShapePoints
public void setPackShapePoints(boolean packShapePoints) -
getAgencyForId
GtfsDaoInterface- Specified by:
getAgencyForIdin interfaceGtfsDao
-
getAllAgencies
Description copied from interface:GtfsDaoAgency Methods- Specified by:
getAllAgenciesin interfaceGtfsDao
-
getAllBlocks
- Specified by:
getAllBlocksin interfaceGtfsDao
-
getAllCalendarDates
Description copied from interface:GtfsDaoServiceCalendarDateMethods- Specified by:
getAllCalendarDatesin interfaceGtfsDao
-
getAllCalendars
Description copied from interface:GtfsDaoServiceCalendarMethods- Specified by:
getAllCalendarsin interfaceGtfsDao
-
getAllFareAttributes
Description copied from interface:GtfsDaoFareAttributeMethods- Specified by:
getAllFareAttributesin interfaceGtfsDao
-
getAllFareRules
Description copied from interface:GtfsDaoFareRuleMethods- Specified by:
getAllFareRulesin interfaceGtfsDao
-
getAllFeedInfos
Description copied from interface:GtfsDaoFeedInfoMethods- Specified by:
getAllFeedInfosin interfaceGtfsDao
-
getAllFrequencies
Description copied from interface:GtfsDaoFrequencyMethods- Specified by:
getAllFrequenciesin interfaceGtfsDao
-
getAllRoutes
Description copied from interface:GtfsDaoRouteMethods- Specified by:
getAllRoutesin interfaceGtfsDao
-
getAllRouteStops
- Specified by:
getAllRouteStopsin interfaceGtfsDao
-
getAllRouteShapes
- Specified by:
getAllRouteShapesin interfaceGtfsDao
-
getAllShapePoints
Description copied from interface:GtfsDaoShapePointMethods- Specified by:
getAllShapePointsin interfaceGtfsDao
-
getAllStopTimes
Description copied from interface:GtfsDaoStopTimeMethods- Specified by:
getAllStopTimesin interfaceGtfsDao
-
getAllStops
Description copied from interface:GtfsDaoStopMethods- Specified by:
getAllStopsin interfaceGtfsDao
-
getAllTransfers
Description copied from interface:GtfsDaoTransferMethods- Specified by:
getAllTransfersin interfaceGtfsDao
-
getAllTrips
Description copied from interface:GtfsDaoTripMethods- Specified by:
getAllTripsin interfaceGtfsDao
-
getAllRiderships
- Specified by:
getAllRidershipsin interfaceGtfsDao
-
getAllVehicles
Description copied from interface:GtfsDaoVehicleMethods- Specified by:
getAllVehiclesin interfaceGtfsDao
-
getAllLevels
- Specified by:
getAllLevelsin interfaceGtfsDao
-
getBlockForId
- Specified by:
getBlockForIdin interfaceGtfsDao
-
getCalendarDateForId
- Specified by:
getCalendarDateForIdin interfaceGtfsDao
-
getCalendarForId
- Specified by:
getCalendarForIdin interfaceGtfsDao
-
getFareAttributeForId
- Specified by:
getFareAttributeForIdin interfaceGtfsDao
-
getAllFareLegRules
Description copied from interface:GtfsDaoFareLegRuleMethods- Specified by:
getAllFareLegRulesin interfaceGtfsDao
-
getAllFareProducts
Description copied from interface:GtfsDaoFareProductMethods- Specified by:
getAllFareProductsin interfaceGtfsDao
-
getFareProductForId
- Specified by:
getFareProductForIdin interfaceGtfsDao
-
getAllFareMedia
Description copied from interface:GtfsDaoFareMediumMethods- Specified by:
getAllFareMediain interfaceGtfsDao
-
getAllRiderCategories
Description copied from interface:GtfsDaoRiderCategoryMethods- Specified by:
getAllRiderCategoriesin interfaceGtfsDao
-
getFareRuleForId
- Specified by:
getFareRuleForIdin interfaceGtfsDao
-
getAllFareTransferRules
Description copied from interface:GtfsDaoFareTransferRuleMethods- Specified by:
getAllFareTransferRulesin interfaceGtfsDao
-
getFeedInfoForId
- Specified by:
getFeedInfoForIdin interfaceGtfsDao
-
getFrequencyForId
- Specified by:
getFrequencyForIdin interfaceGtfsDao
-
getAllPathways
Description copied from interface:GtfsDaoPathwayMethods- Specified by:
getAllPathwaysin interfaceGtfsDao
-
getPathwayForId
- Specified by:
getPathwayForIdin interfaceGtfsDao
-
getRouteForId
- Specified by:
getRouteForIdin interfaceGtfsDao
-
getShapePointForId
- Specified by:
getShapePointForIdin interfaceGtfsDao
-
getStopForId
- Specified by:
getStopForIdin interfaceGtfsDao
-
getStopTimeForId
- Specified by:
getStopTimeForIdin interfaceGtfsDao
-
getTransferForId
- Specified by:
getTransferForIdin interfaceGtfsDao
-
getTripForId
- Specified by:
getTripForIdin interfaceGtfsDao
-
getLevelForId
- Specified by:
getLevelForIdin interfaceGtfsDao
-
getVehicleForId
Description copied from interface:GtfsDaoVehicleMethods- Specified by:
getVehicleForIdin interfaceGtfsDao
-
getAllNetworks
Description copied from interface:GtfsDaoNetworkMethods- Specified by:
getAllNetworksin interfaceGtfsDao
-
getFacilityForId
-
getFacilityPropertiesForId
-
getFacilityPropertiesDefinitionsForId
-
getRouteNameExceptionForId
-
getDirectionNameExceptionForId
-
getAlternateStopNameExceptionForId
-
getAllDirectionEntries
- Specified by:
getAllDirectionEntriesin interfaceGtfsDao
-
getAllFacilities
-
getAllFacilityProperties
-
getAllFacilityPropertyDefinitions
-
getAllRouteNameExceptions
-
getAllDirectionNameExceptions
-
getAllAlternateStopNameExceptions
-
getAllWrongWayConcurrencies
- Specified by:
getAllWrongWayConcurrenciesin interfaceGtfsDao
-
getAllAreas
Description copied from interface:GtfsDaoAreaMethods- Specified by:
getAllAreasin interfaceGtfsDao
-
getAllLocationGroupElements
- Specified by:
getAllLocationGroupElementsin interfaceGtfsDao
-
getAllLocationGroups
- Specified by:
getAllLocationGroupsin interfaceGtfsDao
-
getAllStopAreaElements
- Specified by:
getAllStopAreaElementsin interfaceGtfsDao
-
getAllStopAreas
- Specified by:
getAllStopAreasin interfaceGtfsDao
-
getAllLocations
- Specified by:
getAllLocationsin interfaceGtfsDao
-
getAllBookingRules
- Specified by:
getAllBookingRulesin interfaceGtfsDao
-
getAllTranslations
Description copied from interface:GtfsDaoTranslationMethods- Specified by:
getAllTranslationsin interfaceGtfsDao
-
getEntitiesByIdForEntityType
GenericMutableDaoInterface- Overrides:
getEntitiesByIdForEntityTypein classGenericDaoImpl
-
getAllEntitiesForType
Description copied from class:GenericDaoImplGenericMutableDaoInterface- Specified by:
getAllEntitiesForTypein interfaceGenericDao- Overrides:
getAllEntitiesForTypein classGenericDaoImpl
-
getEntityForId
- Specified by:
getEntityForIdin interfaceGenericDao- Overrides:
getEntityForIdin classGenericDaoImpl
-
saveEntity
- Specified by:
saveEntityin interfaceGenericMutableDao- Overrides:
saveEntityin classGenericDaoImpl
-
clearAllEntitiesForType
- Specified by:
clearAllEntitiesForTypein interfaceGenericMutableDao- Overrides:
clearAllEntitiesForTypein classGenericDaoImpl
-
removeEntity
- Specified by:
removeEntityin interfaceGenericMutableDao- Overrides:
removeEntityin classGenericDaoImpl
-
close
public void close()- Specified by:
closein interfaceGenericMutableDao- Overrides:
closein classGenericDaoImpl
-
getOptionalMetadataFilenames
- Specified by:
getOptionalMetadataFilenamesin interfaceGtfsDao
-
hasMetadata
- Specified by:
hasMetadatain interfaceGtfsDao
-
getMetadata
- Specified by:
getMetadatain interfaceGtfsDao
-
addMetadata
- Specified by:
addMetadatain interfaceGtfsDao
-