public class GenericDaoImpl extends Object implements GenericMutableDao
| Constructor and Description |
|---|
GenericDaoImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
<T> void |
clearAllEntitiesForType(Class<T> type) |
void |
close() |
void |
flush() |
<T> Collection<T> |
getAllEntitiesForType(Class<T> type)
GenericMutableDao Interface |
<K,V> Map<K,V> |
getEntitiesByIdForEntityType(Class<K> keyType,
Class<V> entityType) |
Set<Class<?>> |
getEntityClasses() |
<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 |
setGenerateIds(boolean generateIds) |
void |
updateEntity(Object entity) |
public void setGenerateIds(boolean generateIds)
public void clear()
public <K,V> Map<K,V> getEntitiesByIdForEntityType(Class<K> keyType, Class<V> entityType)
public <T> Collection<T> getAllEntitiesForType(Class<T> type)
GenericMutableDao InterfacegetAllEntitiesForType in interface GenericDaopublic <T> T getEntityForId(Class<T> type, Serializable id)
getEntityForId in interface GenericDaopublic void saveEntity(Object entity)
saveEntity in interface GenericMutableDaopublic void updateEntity(Object entity)
updateEntity in interface GenericMutableDaopublic void saveOrUpdateEntity(Object entity)
saveOrUpdateEntity in interface GenericMutableDaopublic <T> void clearAllEntitiesForType(Class<T> type)
clearAllEntitiesForType in interface GenericMutableDaopublic <K extends Serializable,T extends IdentityBean<K>> void removeEntity(T entity)
removeEntity in interface GenericMutableDaopublic void open()
open in interface GenericMutableDaopublic void flush()
flush in interface GenericMutableDaopublic void close()
close in interface GenericMutableDaoCopyright © 2013 OneBusAway. All Rights Reserved.