org.babyfish.jimmer.sql.fetcher.RecursionStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jimmer-sql Show documentation
Show all versions of jimmer-sql Show documentation
A revolutionary ORM framework for both java and kotlin
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 +
'}';
}
}
}