com.reinaldoarrosi.android.querybuilder.sqlite.criteria.ExistsCriteria 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.criteria;
import java.util.List;
import com.reinaldoarrosi.android.querybuilder.Utils;
import com.reinaldoarrosi.android.querybuilder.sqlite.QueryBuilder;
public class ExistsCriteria extends Criteria {
private QueryBuilder subQuery;
public ExistsCriteria(QueryBuilder subQuery) {
this.subQuery = subQuery;
}
@Override
public String build() {
String ret = "EXISTS(";
if(subQuery != null)
ret = ret + subQuery.build();
ret = ret + ")";
return ret;
}
@Override
public List