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

org.babyfish.jimmer.sql.fetcher.RecursionStrategy Maven / Gradle / Ivy

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

import org.jetbrains.annotations.NotNull;

public interface RecursionStrategy {

    boolean isRecursive(Args args);

    class Args {

        private final E entity;

        private final int depth;

        public Args(E entity, int depth) {
            this.entity = entity;
            this.depth = depth;
        }

        @NotNull
        public E getEntity() {
            return entity;
        }

        public int getDepth() {
            return depth;
        }

        @Override
        public String toString() {
            return "Args{" +
                    "entity=" + entity +
                    ", depth=" + depth +
                    '}';
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy