T - the type of the entity objectPK - the type of the primary key from the entity objectpublic interface SaveOrUpdateStrategy<T extends BaseEntity<PK>,PK extends Serializable> extends Serializable
SaveOrUpdateStrategy can interact if entities are saved or updated.| Modifier and Type | Method and Description |
|---|---|
List<PK> |
save(List<T> objects)
Save all new objects in the given list.
|
PK |
save(T object)
Persist the given object into database.
|
void |
saveOrUpdate(List<T> objects)
Save or update all transient objects in the given list.
|
void |
saveOrUpdate(T object)
Save or update the given persistent object.
|
void |
update(List<T> objects)
Update all transient objects in the given list.
|
void |
update(T object)
Update changes made to the given object.
|
List<PK> save(List<T> objects)
objects - the list to savePK save(T object)
object - the new instance to save.void saveOrUpdate(List<T> objects)
objects - the transient objectsvoid saveOrUpdate(T object)
object - the transient object to save or update.void update(List<T> objects)
objects - the transient objects to update.void update(T object)
object - the transient object to update.Copyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.