Package 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 Object implements GenericMutableDao
-
-
Constructor Summary
Constructors Constructor Description GenericDaoImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()<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)Set<Class<?>>getEntityClasses()<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)
-
-
-
Method Detail
-
setGenerateIds
public void setGenerateIds(boolean generateIds)
-
clear
public void clear()
-
getEntitiesByIdForEntityType
public <K,V> Map<K,V> getEntitiesByIdForEntityType(Class<K> keyType, Class<V> entityType)
-
getAllEntitiesForType
public <T> Collection<T> getAllEntitiesForType(Class<T> type)
GenericMutableDaoInterface- Specified by:
getAllEntitiesForTypein interfaceGenericDao
-
getEntityForId
public <T> T getEntityForId(Class<T> type, Serializable id)
- Specified by:
getEntityForIdin interfaceGenericDao
-
saveEntity
public void saveEntity(Object entity)
- Specified by:
saveEntityin interfaceGenericMutableDao
-
updateEntity
public void updateEntity(Object entity)
- Specified by:
updateEntityin interfaceGenericMutableDao
-
saveOrUpdateEntity
public void saveOrUpdateEntity(Object entity)
- Specified by:
saveOrUpdateEntityin interfaceGenericMutableDao
-
clearAllEntitiesForType
public <T> void clearAllEntitiesForType(Class<T> type)
- Specified by:
clearAllEntitiesForTypein interfaceGenericMutableDao
-
removeEntity
public <K extends Serializable,T extends IdentityBean<K>> void removeEntity(T entity)
- 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
-
-