com.kenshoo.pl.entity.internal.fetch.ToEdgesOf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of persistence-layer Show documentation
Show all versions of persistence-layer Show documentation
A Java persistence layer based on JOOQ for high performance and business flow support.
package com.kenshoo.pl.entity.internal.fetch;
import com.kenshoo.jooq.DataTable;
import org.jooq.ForeignKey;
import org.jooq.Record;
import java.util.function.Function;
public class ToEdgesOf implements Function, TreeEdge> {
private final TreeNode node;
public ToEdgesOf(TreeNode node) {
this.node = node;
}
@Override
public TreeEdge apply(ForeignKey foreignKey) {
return new TreeEdge(node, (DataTable) foreignKey.getTable());
}
}