Class JpaUpdateOperation
- java.lang.Object
-
- org.silverpeas.core.persistence.datasource.PersistenceOperation
-
- org.silverpeas.core.persistence.datasource.model.jpa.JpaUpdateOperation
-
@UpdateOperation @Technical @JPA @Bean public class JpaUpdateOperation extends PersistenceOperation
- Author:
- mmoquillon
-
-
Constructor Summary
Constructors Constructor Description JpaUpdateOperation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
applyTechnicalDataTo(Entity<?,?> entity)
Applying information of the context to the given entity on a update operation.void
clear(Entity<?,?> entity)
Clears the specified entity for the current persistence operation.void
setManuallyTechnicalDataFor(Entity<?,?> entity, User updater, Date updateDate)
Sets manually the specified technical data of the specified entity.
-
-
-
Method Detail
-
applyTechnicalDataTo
protected void applyTechnicalDataTo(Entity<?,?> entity)
Applying information of the context to the given entity on a update operation.- Specified by:
applyTechnicalDataTo
in classPersistenceOperation
- Parameters:
entity
- an entity.
-
setManuallyTechnicalDataFor
public void setManuallyTechnicalDataFor(Entity<?,?> entity, User updater, Date updateDate)
Description copied from class:PersistenceOperation
Sets manually the specified technical data of the specified entity.- Specified by:
setManuallyTechnicalDataFor
in classPersistenceOperation
- Parameters:
entity
- the entity.updater
- the user for which the persistence operation will be performed.updateDate
- the date at which the persistence operation will be considered as performed.
-
clear
public void clear(Entity<?,?> entity)
Description copied from class:PersistenceOperation
Clears the specified entity for the current persistence operation. Any technical data manually set will be lost.- Specified by:
clear
in classPersistenceOperation
- Parameters:
entity
- the entity.
-
-