public interface GenericDao
Entity instances.| Modifier and Type | Method and Description |
|---|---|
<E extends Entity<K>,K> |
delete(E entity,
Class<E> clazz)
Deletes the given entity of the given class.
|
<E extends Entity<K>,K> |
delete(K id,
Class<E> clazz)
Deletes the entity with the given id of the given class.
|
<E extends Entity<K>,K> |
find(K id,
Class<E> clazz)
Finds the entity with the given id of the given class.
|
<E extends Entity<K>,K> |
findAll(Class<E> clazz)
Finds all entities of the given class.
|
<E extends Entity<K>,K> |
getCount(Class<E> clazz)
Counts the entities of the given class.
|
<E extends Entity<K>,K> |
load(K id,
Class<E> clazz)
Loads the entity with the given id of the given class or throws an Exception if it was not
found.
|
<E extends Entity<K>,K> |
save(E entity)
Saves the given entity.
|
<E extends Entity<K>,K> E save(E entity)
<E extends Entity<K>,K> void delete(E entity, Class<E> clazz)
<E extends Entity<K>,K> void delete(K id, Class<E> clazz)
<E extends Entity<K>,K> E find(K id, Class<E> clazz)
<E extends Entity<K>,K> List<E> findAll(Class<E> clazz)
<E extends Entity<K>,K> E load(K id, Class<E> clazz)
Copyright © 2014 dontdrinkandroot. All rights reserved.