T - the type of the entity objectPK - the type of the primary key from the entity objectpublic class DefaultDeleteStrategy<T extends de.alpharogroup.db.entity.BaseEntity<PK>,PK extends Serializable> extends Object implements DeleteStrategy<T,PK>
DefaultDeleteStrategy is a default implementation of the
DeleteStrategy.| Constructor and Description |
|---|
DefaultDeleteStrategy(AbstractRepository<T,PK> repository)
Instantiates a new
DefaultDeleteStrategy. |
| Modifier and Type | Method and Description |
|---|---|
void |
delete(List<T> objects)
Delete all persistent entities in the given list.
|
void |
delete(PK id)
Deletes an entity of a given Id.
|
void |
delete(T entity)
Deletes the given entity from persistent storage in the database.
|
public DefaultDeleteStrategy(AbstractRepository<T,PK> repository)
DefaultDeleteStrategy.repository - the repositorypublic void delete(List<T> objects)
delete in interface DeleteStrategy<T extends de.alpharogroup.db.entity.BaseEntity<PK>,PK extends Serializable>objects - the list with the persistent entities to deletepublic void delete(PK id)
delete in interface DeleteStrategy<T extends de.alpharogroup.db.entity.BaseEntity<PK>,PK extends Serializable>id - the idpublic void delete(T entity)
delete in interface DeleteStrategy<T extends de.alpharogroup.db.entity.BaseEntity<PK>,PK extends Serializable>entity - the persistent entityCopyright © 2015–2018 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.