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

io.ebeaninternal.server.persist.DeleteIdRequest Maven / Gradle / Ivy

There is a newer version: 15.8.1
Show newest version
package io.ebeaninternal.server.persist;

import io.ebean.Database;
import io.ebean.Transaction;
import io.ebean.event.BeanDeleteIdRequest;
import io.ebeaninternal.api.SpiEbeanServer;

final class DeleteIdRequest implements BeanDeleteIdRequest {

  private final SpiEbeanServer server;
  private final Transaction transaction;
  private final Class beanType;
  private Object id;

  DeleteIdRequest(SpiEbeanServer server, Transaction transaction, Class beanType, Object id) {
    this.server = server;
    this.transaction = transaction;
    this.beanType = beanType;
    this.id = id;
  }

  void setId(Object id) {
    this.id = id;
  }

  @Override
  public Database database() {
    return server;
  }

  @Override
  public Transaction transaction() {
    return transaction;
  }

  @Override
  public Class beanType() {
    return beanType;
  }

  @Override
  public Object id() {
    return id;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy