io.ebeaninternal.server.transaction.DeleteByIdMap Maven / Gradle / Ivy
package io.ebeaninternal.server.transaction;
import io.ebeaninternal.server.cache.CacheChangeSet;
import io.ebeaninternal.server.core.PersistRequest;
import io.ebeaninternal.server.deploy.BeanDescriptor;
import java.util.Collection;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
/**
* Beans deleted by Id used for updating L2 Cache.
*/
public final class DeleteByIdMap {
private final Map beanMap = new LinkedHashMap<>();
@Override
public String toString() {
return "DeleteById " + beanMap.values();
}
public void notifyCache(CacheChangeSet changeSet) {
for (BeanPersistIds deleteIds : beanMap.values()) {
BeanDescriptor> d = deleteIds.getBeanDescriptor();
List
© 2015 - 2024 Weber Informatics LLC | Privacy Policy