com.jporm.rx.query.find.SelectQueryBuilderImpl Maven / Gradle / Ivy
The newest version!
package com.jporm.rx.query.find;
import com.jporm.rx.session.SqlExecutor;
import com.jporm.sql.SqlDsl;
import com.jporm.sql.query.select.Select;
public class SelectQueryBuilderImpl implements SelectQueryBuilder {
private final String[] selectFields;
private final SqlExecutor sqlExecutor;
private final SqlDsl sqlDsl;
/**
*
* @param selectFields
* @param serviceCatalog
* @param sqlExecutor
* @param sqlFactory
* @param dbType
*/
public SelectQueryBuilderImpl(final String[] selectFields, final SqlExecutor sqlExecutor, final SqlDsl sqlDsl) {
this.selectFields = selectFields;
this.sqlExecutor = sqlExecutor;
this.sqlDsl = sqlDsl;
}
@Override
public CustomResultFindQuery from(String table, String alias) {
Select select = sqlDsl.select(selectFields).from(table, alias);
return new CustomResultFindQueryImpl<>(select, sqlExecutor);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy