com.kenshoo.pl.entity.internal.VirtualEntityFieldDbAdapter2 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;
import com.kenshoo.jooq.DataTable;
import com.kenshoo.pl.entity.EntityFieldDbAdapter;
import org.jooq.Record;
import org.jooq.TableField;
import java.util.Iterator;
import java.util.function.BiFunction;
import java.util.stream.Stream;
public class VirtualEntityFieldDbAdapter2 implements EntityFieldDbAdapter {
private final EntityFieldDbAdapter adapter1;
private final EntityFieldDbAdapter adapter2;
private final BiFunction combiningFunction;
public VirtualEntityFieldDbAdapter2(EntityFieldDbAdapter adapter1, EntityFieldDbAdapter adapter2, BiFunction combiningFunction) {
this.combiningFunction = combiningFunction;
this.adapter1 = adapter1;
this.adapter2 = adapter2;
}
@Override
public DataTable getTable() {
return adapter1.getTable();
}
@Override
public Stream> getTableFields() {
return Stream.of(adapter1, adapter2).flatMap(EntityFieldDbAdapter::getTableFields);
}
@Override
public Stream
© 2015 - 2025 Weber Informatics LLC | Privacy Policy