org.onebusaway.gtfs.impl
Class GenericDaoImpl
java.lang.Object
org.onebusaway.gtfs.impl.GenericDaoImpl
- All Implemented Interfaces:
- GenericDao, GenericMutableDao
- Direct Known Subclasses:
- GtfsDaoImpl
public class GenericDaoImpl
- extends java.lang.Object
- implements GenericMutableDao
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericDaoImpl
public GenericDaoImpl()
setGenerateIds
public void setGenerateIds(boolean generateIds)
getEntityClasses
public java.util.Set<java.lang.Class<?>> getEntityClasses()
getEntitiesByIdForEntityType
public <K,V> java.util.Map<K,V> getEntitiesByIdForEntityType(java.lang.Class<K> keyType,
java.lang.Class<V> entityType)
getAllEntitiesForType
public <T> java.util.Collection<T> getAllEntitiesForType(java.lang.Class<T> type)
GenericMutableDao Interface
- Specified by:
getAllEntitiesForType in interface GenericDao
getEntityForId
public <T> T getEntityForId(java.lang.Class<T> type,
java.io.Serializable id)
- Specified by:
getEntityForId in interface GenericDao
saveEntity
public void saveEntity(java.lang.Object entity)
- Specified by:
saveEntity in interface GenericMutableDao
updateEntity
public void updateEntity(java.lang.Object entity)
- Specified by:
updateEntity in interface GenericMutableDao
saveOrUpdateEntity
public void saveOrUpdateEntity(java.lang.Object entity)
- Specified by:
saveOrUpdateEntity in interface GenericMutableDao
clearAllEntitiesForType
public <T> void clearAllEntitiesForType(java.lang.Class<T> type)
- Specified by:
clearAllEntitiesForType in interface GenericMutableDao
removeEntity
public <K extends java.io.Serializable,T extends IdentityBean<K>> void removeEntity(T entity)
- Specified by:
removeEntity in interface GenericMutableDao
open
public void open()
- Specified by:
open in interface GenericMutableDao
flush
public void flush()
- Specified by:
flush in interface GenericMutableDao
close
public void close()
- Specified by:
close in interface GenericMutableDao
Copyright © 2010 OneBusAway. All Rights Reserved.