public interface GenericDao<T,PK extends Serializable>
| Modifier and Type | Method and Description |
|---|---|
PK |
create(T newInstance)
Persist the newInstance object into database
|
void |
delete(T persistentObject)
Remove an object from persistent storage in the database
|
T |
get(PK id)
Retrieve an object that was previously persisted to the database using
the indicated id as primary key
|
List<T> |
query(String name,
Map<String,Object> properties)
Execute the named query, passing the params
|
void |
setQueryMap(Map<String,String> queryMap)
Set the query map
|
void |
update(T transientObject)
Save changes made to a persistent object.
|
T get(PK id)
void update(T transientObject)
void delete(T persistentObject)
Copyright © 2009-2015. All Rights Reserved.