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

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

package br.com.objectos.way.sql;

import com.google.common.base.Optional;

@javax.annotation.Generated("br.com.objectos.way.auto.pojo.AutoPojoProcessor")
final class IntegerColumnInfoBuilderPojo
    implements 
    IntegerColumnInfoBuilder, 
    IntegerColumnInfoBuilder.IntegerColumnInfoBuilderTableName, 
    IntegerColumnInfoBuilder.IntegerColumnInfoBuilderName, 
    IntegerColumnInfoBuilder.IntegerColumnInfoBuilderDataType, 
    IntegerColumnInfoBuilder.IntegerColumnInfoBuilderNullable, 
    IntegerColumnInfoBuilder.IntegerColumnInfoBuilderDefaultValue, 
    IntegerColumnInfoBuilder.IntegerColumnInfoBuilderAutoIncrement { 

  private TableName tableName;
  private String name;
  private IntegerDataType dataType;
  private boolean nullable;
  private Optional defaultValue;
  private boolean autoIncrement;
  
  public IntegerColumnInfoBuilderPojo() {
  }
  
  @Override
  public IntegerColumnInfo build() {
    return new IntegerColumnInfoPojo(this);
  }

  @Override
  public IntegerColumnInfoBuilderTableName tableName(TableName tableName) {  
    if (tableName == null) {
      throw new NullPointerException();
    }
    this.tableName = tableName;
    return this;
  }
  
  @Override
  public IntegerColumnInfoBuilderName name(String name) {  
    if (name == null) {
      throw new NullPointerException();
    }
    this.name = name;
    return this;
  }
  
  @Override
  public IntegerColumnInfoBuilderDataType dataType(IntegerDataType dataType) {  
    if (dataType == null) {
      throw new NullPointerException();
    }
    this.dataType = dataType;
    return this;
  }
  
  @Override
  public IntegerColumnInfoBuilderNullable nullable(boolean nullable) {  
    this.nullable = nullable;
    return this;
  }
  
  @Override
  public IntegerColumnInfoBuilderDefaultValue defaultValue(Optional defaultValue) {  
    if (defaultValue == null) {
      throw new NullPointerException();
    }
    this.defaultValue = defaultValue;
    return this;
  }
  
  @Override
  public IntegerColumnInfoBuilderAutoIncrement autoIncrement(boolean autoIncrement) {  
    this.autoIncrement = autoIncrement;
    return this;
  }
  
  TableName tableName() {
    return tableName;
  }
  
  String name() {
    return name;
  }
  
  IntegerDataType dataType() {
    return dataType;
  }
  
  boolean nullable() {
    return nullable;
  }
  
  Optional defaultValue() {
    return defaultValue;
  }
  
  boolean autoIncrement() {
    return autoIncrement;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy