com.reinaldoarrosi.android.querybuilder.sqlite.from.SubQueryFrom Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of query-builder Show documentation
Show all versions of query-builder Show documentation
Fluent Android library to build SQLite select statements
The newest version!
package com.reinaldoarrosi.android.querybuilder.sqlite.from;
import java.util.List;
import com.reinaldoarrosi.android.querybuilder.Utils;
import com.reinaldoarrosi.android.querybuilder.sqlite.QueryBuilder;
public class SubQueryFrom extends AliasableFrom {
private QueryBuilder subQuery;
public SubQueryFrom(QueryBuilder subQuery) {
this.subQuery = subQuery;
}
@Override
public String build() {
String ret = (subQuery != null ? "(" + subQuery.build() + ")" : "");
if(!Utils.isNullOrWhiteSpace(alias))
ret = ret + " AS " + alias;
return ret;
}
@Override
public List