
io.ebeaninternal.server.persist.DeleteMode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ebean Show documentation
Show all versions of ebean Show documentation
composite of common runtime dependencies for all platforms
package io.ebeaninternal.server.persist;
import io.ebeaninternal.server.core.PersistRequest;
/**
* The delete mode of the persistence request. The mode is determined at the beginning of the request
* as being a Hard or Soft delete based and then the mode is used for that request and any cascading.
*/
public enum DeleteMode {
/**
* Soft/logical delete.
*/
SOFT(PersistRequest.Type.DELETE_SOFT, false),
/**
* Hard/permanent delete.
*/
HARD(PersistRequest.Type.DELETE_PERMANENT, true);
private final boolean hard;
private final PersistRequest.Type persistType;
DeleteMode(PersistRequest.Type persistType, boolean hard) {
this.persistType = persistType;
this.hard = hard;
}
public PersistRequest.Type persistType() {
return persistType;
}
public boolean isHard() {
return hard;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy