T - the type of the entity objectPK - the type of the primary key from the entity objectpublic class DefaultMergeStrategy<T extends de.alpharogroup.db.entity.BaseEntity<PK>,PK extends Serializable> extends Object implements MergeStrategy<T,PK>
DefaultMergeStrategy is a default implementation of the MergeStrategy.| Constructor and Description |
|---|
DefaultMergeStrategy(AbstractRepository<T,PK> repository)
Instantiates a new
DefaultMergeStrategy. |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
merge(List<T> objects)
Merges all new entities in the given list.
|
T |
merge(T entity)
Merges the given entity.
|
public DefaultMergeStrategy(AbstractRepository<T,PK> repository)
DefaultMergeStrategy.repository - the repositorypublic List<T> merge(List<T> objects)
merge in interface MergeStrategy<T extends de.alpharogroup.db.entity.BaseEntity<PK>,PK extends Serializable>objects - the list to savepublic T merge(T entity)
merge in interface MergeStrategy<T extends de.alpharogroup.db.entity.BaseEntity<PK>,PK extends Serializable>entity - the entityCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.