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

io.odysz.transact.sql.parts.select.SelectList Maven / Gradle / Ivy

The newest version!
package io.odysz.transact.sql.parts.select;

import java.util.List;
import java.util.stream.Collectors;

import io.odysz.semantics.ISemantext;
import io.odysz.transact.sql.parts.AbsPart;

public class SelectList extends AbsPart {

	private List elems;

	public SelectList(List elemList) {
		elems = elemList;
	}


	@Override
	public String sql(ISemantext sctx) {
		return elems == null ? "*"
				: elems.stream().map(e -> e.sql(sctx)).collect(Collectors.joining(", "));
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy