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

org.babyfish.jimmer.sql.cache.chain.SimpleBinder Maven / Gradle / Ivy

There is a newer version: 0.9.19
Show newest version
package org.babyfish.jimmer.sql.cache.chain;

import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.SortedMap;

public interface SimpleBinder extends Binder {

    Map getAll(Collection keys);

    void setAll(Map map);

    void deleteAll(Collection keys, Object reason);

    interface Parameterized extends SimpleBinder {

        default Map getAll(Collection keys) {
            return getAll(keys, Collections.emptySortedMap());
        }

        default void setAll(Map map) {
            setAll(map, Collections.emptySortedMap());
        }

        Map getAll(
                Collection keys,
                SortedMap parameterMap
        );

        void setAll(
                Map map,
                SortedMap parameterMap
        );
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy