com.reinaldoarrosi.android.querybuilder.sqlite.projection.ConstantProjection 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.projection;
import java.util.ArrayList;
import java.util.List;
import com.reinaldoarrosi.android.querybuilder.Utils;
public class ConstantProjection extends Projection {
private Object constant;
public ConstantProjection(Object constant) {
this.constant = constant;
}
@Override
public String build() {
if(constant != null)
return "?";
else
return "NULL";
}
@Override
public List