public class GenericMutableDaoWrapper extends Object implements GenericMutableDao
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.| Modifier and Type | Field and Description |
|---|---|
protected GenericMutableDao |
_source |
| Constructor and Description |
|---|
GenericMutableDaoWrapper(GenericMutableDao source) |
| Modifier and Type | Method and Description |
|---|---|
<T> void |
clearAllEntitiesForType(Class<T> type) |
void |
close() |
void |
flush() |
<T> Collection<T> |
getAllEntitiesForType(Class<T> type)
Generic Methods
|
<T> T |
getEntityForId(Class<T> type,
Serializable id) |
void |
open() |
<K extends Serializable,T extends IdentityBean<K>> |
removeEntity(T entity) |
void |
saveEntity(Object entity) |
void |
saveOrUpdateEntity(Object entity) |
void |
updateEntity(Object entity) |
protected GenericMutableDao _source
public GenericMutableDaoWrapper(GenericMutableDao source)
public <T> void clearAllEntitiesForType(Class<T> type)
clearAllEntitiesForType in interface GenericMutableDaopublic void close()
close in interface GenericMutableDaopublic void flush()
flush in interface GenericMutableDaopublic void open()
open in interface GenericMutableDaopublic <K extends Serializable,T extends IdentityBean<K>> void removeEntity(T entity)
removeEntity in interface GenericMutableDaopublic void updateEntity(Object entity)
updateEntity in interface GenericMutableDaopublic void saveEntity(Object entity)
saveEntity in interface GenericMutableDaopublic void saveOrUpdateEntity(Object entity)
saveOrUpdateEntity in interface GenericMutableDaopublic <T> Collection<T> getAllEntitiesForType(Class<T> type)
GenericDaogetAllEntitiesForType in interface GenericDaopublic <T> T getEntityForId(Class<T> type, Serializable id)
getEntityForId in interface GenericDaoCopyright © 2015 OneBusAway. All Rights Reserved.