Class ManagedAspectHandler

java.lang.Object
com.sap.cds.services.impl.persistence.ManagedAspectHandler
All Implemented Interfaces:
EventHandler

public class ManagedAspectHandler extends Object implements EventHandler
Event handler for the "managed" aspect.
  • Constructor Details

    • ManagedAspectHandler

      public ManagedAspectHandler()
  • Method Details

    • calculateManagedFields

      @HandlerOrder(11000) public void calculateManagedFields(EventContext context)
      Handler method that calculates the administrative data properties of entities with the "managed" aspect. Usually, these are the properties createdAt / createdBy and modifiedAt / modifiedBy, but it could be any property annotated with "@cds.on.insert" / "@cds.on.update" or "@odata.on.insert" / "@odata.on.update" annotations with matching values.
      Parameters:
      context - the event context