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

br.com.objectos.way.orm.compiler.ColumnOrmPropertyBuilderPojo Maven / Gradle / Ivy

The newest version!
package br.com.objectos.way.orm.compiler;

import br.com.objectos.way.code.AnnotationInfo;
import br.com.objectos.way.code.SimpleTypeInfo;
import br.com.objectos.way.pojo.plugin.Property;
import br.com.objectos.way.schema.info.TableInfoAnnotationInfo;
import com.squareup.javapoet.ClassName;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.annotation.Generated;

@Generated({
    "br.com.objectos.way.pojo.compiler.PojoCompiler",
    "br.com.objectos.way.pojo.plugin.ListPlugin",
    "br.com.objectos.way.pojo.plugin.StandardBuilderPropertyAction"
})
final class ColumnOrmPropertyBuilderPojo implements ColumnOrmPropertyBuilder, ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderProperty, ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderReturnType, ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderTableInfo, ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderColumnAnnotationClassList, ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderColumnSeq, ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderColumnAnnotationInfo, ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderColumnClassName, ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderColumnSimpleName, ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderBindType, ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderGenerationType {
  private Property property;

  private ReturnType returnType;

  private TableInfoAnnotationInfo tableInfo;

  private List columnAnnotationClassList;

  private int columnSeq;

  private AnnotationInfo columnAnnotationInfo;

  private ClassName columnClassName;

  private String columnSimpleName;

  private BindType bindType;

  private GenerationType generationType;

  public ColumnOrmPropertyBuilderPojo() {
  }

  @Override
  public ColumnOrmProperty build() {
    return new ColumnOrmPropertyPojo(this);
  }

  @Override
  public ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderProperty property(Property property) {
    if (property == null) {
      throw new NullPointerException();
    }
    this.property = property;
    return this;
  }

  Property ___get___property() {
    return property;
  }

  @Override
  public ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderReturnType returnType(ReturnType returnType) {
    if (returnType == null) {
      throw new NullPointerException();
    }
    this.returnType = returnType;
    return this;
  }

  ReturnType ___get___returnType() {
    return returnType;
  }

  @Override
  public ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderTableInfo tableInfo(TableInfoAnnotationInfo tableInfo) {
    if (tableInfo == null) {
      throw new NullPointerException();
    }
    this.tableInfo = tableInfo;
    return this;
  }

  TableInfoAnnotationInfo ___get___tableInfo() {
    return tableInfo;
  }

  @Override
  public ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderColumnAnnotationClassList columnAnnotationClassList(List columnAnnotationClassList) {
    if (columnAnnotationClassList == null) {
      throw new NullPointerException();
    }
    this.columnAnnotationClassList = columnAnnotationClassList;
    return this;
  }

  List ___get___columnAnnotationClassList() {
    return columnAnnotationClassList;
  }

  @Override
  public ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderColumnAnnotationClassList columnAnnotationClassList(SimpleTypeInfo... elements) {
    if (elements == null) {
      throw new NullPointerException();
    }
    List columnAnnotationClassList = new ArrayList<>(elements.length);
    for (int i = 0; i < elements.length; i++) {
      SimpleTypeInfo e = elements[i];
      if (e == null) {
        throw new NullPointerException();
      }
      columnAnnotationClassList.add(e);
    }
    this.columnAnnotationClassList = Collections.unmodifiableList(columnAnnotationClassList);
    return this;
  }

  @Override
  public ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderColumnSeq columnSeq(int columnSeq) {
    this.columnSeq = columnSeq;
    return this;
  }

  int ___get___columnSeq() {
    return columnSeq;
  }

  @Override
  public ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderColumnAnnotationInfo columnAnnotationInfo(AnnotationInfo columnAnnotationInfo) {
    if (columnAnnotationInfo == null) {
      throw new NullPointerException();
    }
    this.columnAnnotationInfo = columnAnnotationInfo;
    return this;
  }

  AnnotationInfo ___get___columnAnnotationInfo() {
    return columnAnnotationInfo;
  }

  @Override
  public ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderColumnClassName columnClassName(ClassName columnClassName) {
    if (columnClassName == null) {
      throw new NullPointerException();
    }
    this.columnClassName = columnClassName;
    return this;
  }

  ClassName ___get___columnClassName() {
    return columnClassName;
  }

  @Override
  public ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderColumnSimpleName columnSimpleName(String columnSimpleName) {
    if (columnSimpleName == null) {
      throw new NullPointerException();
    }
    this.columnSimpleName = columnSimpleName;
    return this;
  }

  String ___get___columnSimpleName() {
    return columnSimpleName;
  }

  @Override
  public ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderBindType bindType(BindType bindType) {
    if (bindType == null) {
      throw new NullPointerException();
    }
    this.bindType = bindType;
    return this;
  }

  BindType ___get___bindType() {
    return bindType;
  }

  @Override
  public ColumnOrmPropertyBuilder.ColumnOrmPropertyBuilderGenerationType generationType(GenerationType generationType) {
    if (generationType == null) {
      throw new NullPointerException();
    }
    this.generationType = generationType;
    return this;
  }

  GenerationType ___get___generationType() {
    return generationType;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy