Interface BasicPersistenceModuleExtensionHandler

All Superinterfaces:
ExtensionHandler
All Known Implementing Classes:
AbstractBasicPersistenceModuleExtensionHandler, DefaultBasicPersistenceModuleExtensionHandler

public interface BasicPersistenceModuleExtensionHandler extends ExtensionHandler
For internal usage. Allows extending API calls without subclassing the entity.
Author:
Jeff Fischer
  • Field Details

  • Method Details

    • rebalanceForUpdate

      ExtensionResultStatusType rebalanceForUpdate(BasicPersistenceModule basicPersistenceModule, PersistencePackage persistencePackage, Serializable instance, Map<String,FieldMetadata> mergedProperties, Object primaryKey, ExtensionResultHolder<Serializable> resultHolder)
      Handle reorder change requests from the admin for sortable basic collections
      Parameters:
      basicPersistenceModule - the persistence module responsible for handling basic collection persistence operations
      persistencePackage - the data representing the change
      instance - the persisted entity
      mergedProperties - descriptive data about the entity structure
      primaryKey - the primary key value for the persisted entity
      resultHolder - container for any relevant operation results
      Returns:
      the status of execution for this handler - informs the manager on how to proceed
    • rebalanceForAdd

      ExtensionResultStatusType rebalanceForAdd(BasicPersistenceModule basicPersistenceModule, PersistencePackage persistencePackage, Serializable instance, Map<String,FieldMetadata> mergedProperties, ExtensionResultHolder<Serializable> resultHolder)
      Handle additions of new members to a basic collection when the items are sortable
      Parameters:
      basicPersistenceModule - the persistence module responsible for handling basic collection persistence operations
      persistencePackage - the data representing the change
      instance - the persisted entity
      mergedProperties - descriptive data about the entity structure
      resultHolder - container for any relevant operation results
      Returns:
      the status of execution for this handler - informs the manager on how to proceed