| Package | Description |
|---|---|
| net.dontdrinkandroot.persistence.dao | |
| net.dontdrinkandroot.persistence.entity |
| Modifier and Type | Interface and Description |
|---|---|
interface |
TypedDao<E extends Entity<K>,K>
Contract of a Data Access Object that manages a specific
Entity class. |
class |
TypedJpaDao<E extends Entity<I>,I>
Base implementation of a
TypedDao that uses a JPA EntityManager. |
| Modifier and Type | Method and Description |
|---|---|
<E extends Entity<K>,K> |
GenericJpaDao.delete(E entity,
Class<E> clazz) |
<E extends Entity<K>,K> |
GenericDao.delete(E entity,
Class<E> clazz)
Deletes the given entity of the given class.
|
<E extends Entity<K>,K> |
GenericJpaDao.delete(K id,
Class<E> clazz) |
<E extends Entity<K>,K> |
GenericDao.delete(K id,
Class<E> clazz)
Deletes the entity with the given id of the given class.
|
<E extends Entity<K>,K> |
GenericJpaDao.find(K id,
Class<E> clazz) |
<E extends Entity<K>,K> |
GenericDao.find(K id,
Class<E> clazz)
Finds the entity with the given id of the given class.
|
<E extends Entity<K>,K> |
GenericJpaDao.findAll(Class<E> clazz) |
<E extends Entity<K>,K> |
GenericDao.findAll(Class<E> clazz)
Finds all entities of the given class.
|
<E extends Entity<K>,K> |
GenericJpaDao.getCount(Class<E> clazz) |
<E extends Entity<K>,K> |
GenericDao.getCount(Class<E> clazz)
Counts the entities of the given class.
|
<E extends Entity<K>,K> |
GenericJpaDao.load(K id,
Class<E> clazz) |
<E extends Entity<K>,K> |
GenericDao.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> |
GenericJpaDao.save(E entity) |
<E extends Entity<K>,K> |
GenericDao.save(E entity)
Saves the given entity.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractEntity<K>
Represents an entity with a primary key.
|
class |
AbstractGeneratedIdEntity<K>
AbstractEntity that has a primary key which is automatically generated. |
class |
AbstractIdEntity<K>
AbstractEntity that has a primary key which needs to be assigned manually. |
class |
GeneratedLongIdEntity |
class |
LongIdEntity |
Copyright © 2014 dontdrinkandroot. All rights reserved.