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

org.babyfish.jimmer.sql.loader.graphql.ReferenceLoader Maven / Gradle / Ivy

There is a newer version: 0.8.180
Show newest version
package org.babyfish.jimmer.sql.loader.graphql;

import org.babyfish.jimmer.lang.NewChain;
import org.babyfish.jimmer.sql.ast.Executable;

import java.sql.Connection;
import java.util.Collection;
import java.util.Map;

public interface ReferenceLoader {

    @NewChain
    ReferenceLoader forConnection(Connection con);

    default T load(S source) {
        return loadCommand(source).execute();
    }

    Executable loadCommand(S source);

    default Map batchLoad(Collection sources) {
        return batchLoadCommand(sources).execute();
    }

    Executable> batchLoadCommand(Collection sources);
}