org.onebusaway.gtfs.impl
Class GenericMutableDaoWrapper
java.lang.Object
org.onebusaway.gtfs.impl.GenericMutableDaoWrapper
- All Implemented Interfaces:
- GenericDao, GenericMutableDao
public class GenericMutableDaoWrapper
- extends java.lang.Object
- implements 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_source
protected GenericMutableDao _source
GenericMutableDaoWrapper
public GenericMutableDaoWrapper(GenericMutableDao source)
clearAllEntitiesForType
public <T> void clearAllEntitiesForType(java.lang.Class<T> type)
- Specified by:
clearAllEntitiesForType in interface GenericMutableDao
close
public void close()
- Specified by:
close in interface GenericMutableDao
flush
public void flush()
- Specified by:
flush in interface GenericMutableDao
open
public void open()
- Specified by:
open in interface GenericMutableDao
removeEntity
public <K extends java.io.Serializable,T extends IdentityBean<K>> void removeEntity(T entity)
- Specified by:
removeEntity in interface GenericMutableDao
updateEntity
public void updateEntity(java.lang.Object entity)
- Specified by:
updateEntity in interface GenericMutableDao
saveEntity
public void saveEntity(java.lang.Object entity)
- Specified by:
saveEntity in interface GenericMutableDao
saveOrUpdateEntity
public void saveOrUpdateEntity(java.lang.Object entity)
- Specified by:
saveOrUpdateEntity in interface GenericMutableDao
getAllEntitiesForType
public <T> java.util.Collection<T> getAllEntitiesForType(java.lang.Class<T> type)
- Description copied from interface:
GenericDao
- Generic Methods
- 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
Copyright © 2011 OneBusAway. All Rights Reserved.