Class PersistenceOperation

  • Direct Known Subclasses:
    JpaPersistOperation, JpaUpdateOperation

    public abstract class PersistenceOperation
    extends Object
    A persistence operation. It defines the CRUD operations performed into a datasource.
    Author:
    mmoquillon
    • Constructor Detail

      • PersistenceOperation

        public PersistenceOperation()
    • Method Detail

      • applyTechnicalDataTo

        protected abstract void applyTechnicalDataTo​(Entity<?,​?> entity)
        Applies to the specified entity a computation consisting to set its technical data before being serialized to a datasource.
        Parameters:
        entity - an entity.
      • setManuallyTechnicalDataFor

        protected abstract void setManuallyTechnicalDataFor​(Entity<?,​?> entity,
                                                            User user,
                                                            Date date)
        Sets manually the specified technical data of the specified entity.
        Parameters:
        entity - the entity.
        user - the user for which the persistence operation will be performed.
        date - the date at which the persistence operation will be considered as performed.
      • clear

        protected abstract void clear​(Entity<?,​?> entity)
        Clears the specified entity for the current persistence operation. Any technical data manually set will be lost.
        Parameters:
        entity - the entity.