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

com.itranswarp.rdb.Select Maven / Gradle / Ivy

There is a newer version: 1.0.2
Show newest version
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);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy