All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ebeanservice.docstore.api.support.DocStoreEmbeddedInvalidation Maven / Gradle / Ivy

There is a newer version: 15.8.1
Show newest version
package io.ebeanservice.docstore.api.support;

import io.ebeaninternal.server.core.PersistRequestBean;
import io.ebeanservice.docstore.api.DocStoreUpdates;

/**
 * Checks if a persist request means an embedded/nested object in another document needs updating.
 */
public class DocStoreEmbeddedInvalidation {

  protected final String queueId;

  protected final String path;

  public DocStoreEmbeddedInvalidation(String queueId, String path) {
    this.queueId = queueId;
    this.path = path;
  }

  public void embeddedInvalidate(PersistRequestBean request, DocStoreUpdates docStoreUpdates) {
    docStoreUpdates.addNested(queueId, path, request.getBeanId());
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy