org.fluentjdbc.DbJoinedSelectContext Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fluent-jdbc Show documentation
Show all versions of fluent-jdbc Show documentation
A Java library used to execute JDBC statements and build SQL
package org.fluentjdbc;
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import java.util.Collection;
import java.util.List;
import java.util.Optional;
public class DbJoinedSelectContext implements DbListableSelectContext {
private final DbContext dbContext;
private DatabaseJoinedQueryBuilder builder;
public DbJoinedSelectContext(DbTableAliasContext dbTableContext) {
dbContext = dbTableContext.getDbContext();
builder = new DatabaseJoinedQueryBuilder(dbTableContext.getTableAlias());
}
public DbJoinedSelectContext join(DatabaseColumnReference a, DatabaseColumnReference b) {
builder.join(a, b);
return this;
}
@Override
public int getCount() {
return builder.getCount(dbContext.getThreadConnection());
}
@Override
public
© 2015 - 2025 Weber Informatics LLC | Privacy Policy