| 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Persister
A Persister is responsible for persisting and retrieving an object.
| Method Summary | |
|---|---|
 Query | 
createQuery()
Creates a query for the entity  | 
 void | 
delete(Iterable objects)
Deletes one or many objects  | 
 void | 
delete(Object obj)
Deletes a single object  | 
 Class | 
getType()
The type this persister persists  | 
 List<Serializable> | 
persist(Iterable objs)
Persists a number of objects at the same time and returns their keys in the order specified by the objs parameter  | 
 Serializable | 
persist(Object obj)
Persist an object using the given mapping context  | 
 Object | 
proxy(Serializable key)
Creates a proxy for the given key  | 
 Serializable | 
refresh(Object o)
Refreshes the given objects state  | 
 Object | 
retrieve(Serializable key)
Retrieves an object for the given context and Key  | 
 List<Object> | 
retrieveAll(Iterable<Serializable> keys)
Batch retrieve several objects in one go  | 
 List<Object> | 
retrieveAll(Serializable[] keys)
Batch retrieve several objects in one go  | 
| Method Detail | 
|---|
Class getType()
Serializable persist(Object obj)
obj - The object
List<Serializable> persist(Iterable objs)
objs - The objects
Object retrieve(Serializable key)
key - The key
Object proxy(Serializable key)
key - The key
void delete(Iterable objects)
objects - The objects to delete. Must all be of the same type or an exception will be thrown.List<Object> retrieveAll(Iterable<Serializable> keys)
keys - The keys
void delete(Object obj)
obj - The objectQuery createQuery()
List<Object> retrieveAll(Serializable[] keys)
keys - The keys
Serializable refresh(Object o)
o - The object to refresh
  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||