com.itranswarp.rdb.Select Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rdb Show documentation
Show all versions of rdb Show documentation
Fast, lightweight and DSL-driven library for RDBMS.
package com.itranswarp.rdb;
import java.util.Arrays;
public class Select {
final SelectInfo selectInfo;
Select(SelectInfo selectInfo, String[] fields) {
selectInfo.fields = (fields.length == 0 || (fields.length==1 && fields[0].equals("*"))) ? null : Arrays.asList(fields);
this.selectInfo = selectInfo;
}
public SelectFrom from(String table) {
return new SelectFrom(this.selectInfo, table);
}
public SelectFromT from(Class beanClass) {
return new SelectFromT(this.selectInfo, beanClass);
}
}