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

br.com.objectos.way.sql.MaybeSqlBuilderPojo Maven / Gradle / Ivy

The newest version!
package br.com.objectos.way.sql;

import com.google.common.base.Optional;
import java.util.List;

@javax.annotation.Generated("br.com.objectos.way.auto.pojo.AutoPojoProcessor")
final class MaybeSqlBuilderPojo
    implements 
    MaybeSqlBuilder, 
    MaybeSqlBuilder.MaybeSqlBuilderSelectableList, 
    MaybeSqlBuilder.MaybeSqlBuilderTableReference, 
    MaybeSqlBuilder.MaybeSqlBuilderWhereCondition, 
    MaybeSqlBuilder.MaybeSqlBuilderGroupByInfo, 
    MaybeSqlBuilder.MaybeSqlBuilderHavingCondition, 
    MaybeSqlBuilder.MaybeSqlBuilderOrderByInfo { 

  private List selectableList;
  private TableReference tableReference;
  private Optional whereCondition;
  private Optional groupByInfo;
  private Optional havingCondition;
  private Optional orderByInfo;
  
  public MaybeSqlBuilderPojo() {
  }
  
  @Override
  public MaybeSql build() {
    return new MaybeSqlPojo(this);
  }

  @Override
  public MaybeSqlBuilderSelectableList selectableList(List selectableList) {  
    if (selectableList == null) {
      throw new NullPointerException();
    }
    this.selectableList = selectableList;
    return this;
  }
  
  @Override
  public MaybeSqlBuilderTableReference tableReference(TableReference tableReference) {  
    if (tableReference == null) {
      throw new NullPointerException();
    }
    this.tableReference = tableReference;
    return this;
  }
  
  @Override
  public MaybeSqlBuilderWhereCondition whereCondition(Optional whereCondition) {  
    if (whereCondition == null) {
      throw new NullPointerException();
    }
    this.whereCondition = whereCondition;
    return this;
  }
  
  @Override
  public MaybeSqlBuilderGroupByInfo groupByInfo(Optional groupByInfo) {  
    if (groupByInfo == null) {
      throw new NullPointerException();
    }
    this.groupByInfo = groupByInfo;
    return this;
  }
  
  @Override
  public MaybeSqlBuilderHavingCondition havingCondition(Optional havingCondition) {  
    if (havingCondition == null) {
      throw new NullPointerException();
    }
    this.havingCondition = havingCondition;
    return this;
  }
  
  @Override
  public MaybeSqlBuilderOrderByInfo orderByInfo(Optional orderByInfo) {  
    if (orderByInfo == null) {
      throw new NullPointerException();
    }
    this.orderByInfo = orderByInfo;
    return this;
  }
  
  List selectableList() {
    return selectableList;
  }
  
  TableReference tableReference() {
    return tableReference;
  }
  
  Optional whereCondition() {
    return whereCondition;
  }
  
  Optional groupByInfo() {
    return groupByInfo;
  }
  
  Optional havingCondition() {
    return havingCondition;
  }
  
  Optional orderByInfo() {
    return orderByInfo;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy