Package org.onebusaway.gtfs.impl
Class GenericMutableDaoWrapper
- java.lang.Object
-
- org.onebusaway.gtfs.impl.GenericMutableDaoWrapper
-
- All Implemented Interfaces:
GenericDao,GenericMutableDao
public class GenericMutableDaoWrapper extends Object implements GenericMutableDao
Support class that provides an implementation ofGenericMutableDaowhere all methods calls are passed to an underlying wrapped instance ofGenericMutableDao. Useful for when you want to selectively override the behavior of individualGenericMutableDaomethods of an existing instance.- Author:
- bdferris
-
-
Field Summary
Fields Modifier and Type Field Description protected GenericMutableDao_source
-
Constructor Summary
Constructors Constructor Description GenericMutableDaoWrapper(GenericMutableDao source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> voidclearAllEntitiesForType(Class<T> type)voidclose()voidflush()<T> Collection<T>getAllEntitiesForType(Class<T> type)Generic Methods<T> TgetEntityForId(Class<T> type, Serializable id)voidopen()<K extends Serializable,T extends IdentityBean<K>>
voidremoveEntity(T entity)voidsaveEntity(Object entity)voidsaveOrUpdateEntity(Object entity)voidupdateEntity(Object entity)
-
-
-
Field Detail
-
_source
protected GenericMutableDao _source
-
-
Constructor Detail
-
GenericMutableDaoWrapper
public GenericMutableDaoWrapper(GenericMutableDao source)
-
-
Method Detail
-
clearAllEntitiesForType
public <T> void clearAllEntitiesForType(Class<T> type)
- Specified by:
clearAllEntitiesForTypein interfaceGenericMutableDao
-
close
public void close()
- Specified by:
closein interfaceGenericMutableDao
-
flush
public void flush()
- Specified by:
flushin interfaceGenericMutableDao
-
open
public void open()
- Specified by:
openin interfaceGenericMutableDao
-
removeEntity
public <K extends Serializable,T extends IdentityBean<K>> void removeEntity(T entity)
- Specified by:
removeEntityin interfaceGenericMutableDao
-
updateEntity
public void updateEntity(Object entity)
- Specified by:
updateEntityin interfaceGenericMutableDao
-
saveEntity
public void saveEntity(Object entity)
- Specified by:
saveEntityin interfaceGenericMutableDao
-
saveOrUpdateEntity
public void saveOrUpdateEntity(Object entity)
- Specified by:
saveOrUpdateEntityin interfaceGenericMutableDao
-
getAllEntitiesForType
public <T> Collection<T> getAllEntitiesForType(Class<T> type)
Description copied from interface:GenericDaoGeneric Methods- Specified by:
getAllEntitiesForTypein interfaceGenericDao
-
getEntityForId
public <T> T getEntityForId(Class<T> type, Serializable id)
- Specified by:
getEntityForIdin interfaceGenericDao
-
-