All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.reinaldoarrosi.android.querybuilder.sqlite.from.TableFrom Maven / Gradle / Ivy

The newest version!
package com.reinaldoarrosi.android.querybuilder.sqlite.from;

import java.util.List;

import com.reinaldoarrosi.android.querybuilder.Utils;


public class TableFrom extends AliasableFrom {
	private String table;
	
	public TableFrom(String table) {
		this.table = table;
	}

	@Override
	public String build() {
		String ret = (!Utils.isNullOrWhiteSpace(table) ? table : "");

		if(!Utils.isNullOrWhiteSpace(alias))
			ret = ret + " AS " + alias;
		
		return ret;
	}

	@Override
	public List buildParameters() {
		return Utils.EMPTY_LIST;
	}
}