Package org.onebusaway.gtfs.impl
Class GenericMutableDaoWrapper
java.lang.Object
org.onebusaway.gtfs.impl.GenericMutableDaoWrapper
- All Implemented Interfaces:
GenericDao,GenericMutableDao
Support class that provides an implementation of
GenericMutableDao
where all methods calls are passed to an underlying wrapped instance of
GenericMutableDao. Useful for when you want to selectively override
the behavior of individual GenericMutableDao methods of an existing
instance.- Author:
- bdferris
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<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 Details
-
_source
-
-
Constructor Details
-
GenericMutableDaoWrapper
-
-
Method Details
-
clearAllEntitiesForType
- 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
- Specified by:
removeEntityin interfaceGenericMutableDao
-
updateEntity
- Specified by:
updateEntityin interfaceGenericMutableDao
-
saveEntity
- Specified by:
saveEntityin interfaceGenericMutableDao
-
saveOrUpdateEntity
- Specified by:
saveOrUpdateEntityin interfaceGenericMutableDao
-
getAllEntitiesForType
Description copied from interface:GenericDaoGeneric Methods- Specified by:
getAllEntitiesForTypein interfaceGenericDao
-
getEntityForId
- Specified by:
getEntityForIdin interfaceGenericDao
-