Package org.onebusaway.gtfs.impl
Class GenericDaoImpl
java.lang.Object
org.onebusaway.gtfs.impl.GenericDaoImpl
- All Implemented Interfaces:
GenericDao,GenericMutableDao
- Direct Known Subclasses:
GtfsDaoImpl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclear()<T> voidclearAllEntitiesForType(Class<T> type) voidclose()voidflush()<T> Collection<T> getAllEntitiesForType(Class<T> type) GenericMutableDaoInterface<K,V> Map <K, V> getEntitiesByIdForEntityType(Class<K> keyType, Class<V> entityType) <T> TgetEntityForId(Class<T> type, Serializable id) voidopen()<K extends Serializable,T extends IdentityBean<K>>
voidremoveEntity(T entity) voidsaveEntity(Object entity) voidsaveOrUpdateEntity(Object entity) voidsetGenerateIds(boolean generateIds) voidupdateEntity(Object entity)
-
Constructor Details
-
GenericDaoImpl
public GenericDaoImpl()
-
-
Method Details
-
setGenerateIds
public void setGenerateIds(boolean generateIds) -
getEntityClasses
-
clear
public void clear() -
getEntitiesByIdForEntityType
-
getAllEntitiesForType
GenericMutableDaoInterface- Specified by:
getAllEntitiesForTypein interfaceGenericDao
-
getEntityForId
- Specified by:
getEntityForIdin interfaceGenericDao
-
saveEntity
- Specified by:
saveEntityin interfaceGenericMutableDao
-
updateEntity
- Specified by:
updateEntityin interfaceGenericMutableDao
-
saveOrUpdateEntity
- Specified by:
saveOrUpdateEntityin interfaceGenericMutableDao
-
clearAllEntitiesForType
- Specified by:
clearAllEntitiesForTypein interfaceGenericMutableDao
-
removeEntity
- Specified by:
removeEntityin interfaceGenericMutableDao
-
open
public void open()- Specified by:
openin interfaceGenericMutableDao
-
flush
public void flush()- Specified by:
flushin interfaceGenericMutableDao
-
close
public void close()- Specified by:
closein interfaceGenericMutableDao
-