T - The type of the entity.PK - The type of the primary key of the entity.public interface Dao<T,PK>
| Modifier and Type | Method and Description |
|---|---|
T |
create(T entity)
Creates (persists) the given entity in the data store.
|
List<T> |
getAll()
Retrieves a list of all the entities of the given type in the data
store.
|
T |
refresh(T entity)
Refreshes the given entity instance with latest information from the
data store.
|
T |
remove(T entity)
Removes the given entity from the data store.
|
T |
retrieve(PK uniqueId)
Retrieves the entity referred to by the unique identifier from the data
store.
|
T |
update(T entity)
Updates the data store using the given entity.
|
T create(T entity)
entity - The entity to create (persist).T retrieve(PK uniqueId)
uniqueId - The unique identifier for the entity to retrieve.T update(T entity)
entity - The entity to use for updates to the data store.T remove(T entity)
entity - The entity to remove from the data store.T refresh(T entity)
entity - The entity to refresh from the data store.Copyright © 2012–2016 Emory University. All rights reserved.