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

io.github.ashwithpoojary98.clausses.fromclausses.AdHocTableFromClause Maven / Gradle / Ivy

The newest version!
package io.github.ashwithpoojary98.clausses.fromclausses;

import io.github.ashwithpoojary98.clausses.AbstractClause;
import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class AdHocTableFromClause extends AbstractFrom {

    private List columns;

    private List values;

    public AdHocTableFromClause(){
    }
    public AdHocTableFromClause(String alias, List columns, List values) {
        this.alias = alias;
        this.columns = columns;
        this.values = values;
    }

    @Override
    public AbstractClause copy() {
        AdHocTableFromClause adHocTableFromClause=new AdHocTableFromClause();
        adHocTableFromClause.setEngine(this.getEngine());
        adHocTableFromClause.setComponent(this.getComponent());
        adHocTableFromClause.setAlias(this.getAlias());
        adHocTableFromClause.setColumns(this.getColumns());
        adHocTableFromClause.setValues(this.getValues());
        return adHocTableFromClause;
    }
}