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

br.com.objectos.schema.ddl.PrimaryKeyDefBuilderPojo Maven / Gradle / Ivy

There is a newer version: 0.3.0
Show newest version
package br.com.objectos.schema.ddl;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.annotation.Generated;

@Generated({
    "br.com.objectos.pojo.compiler.PojoCompiler",
    "br.com.objectos.pojo.plugin.ListPlugin"
})
final class PrimaryKeyDefBuilderPojo implements PrimaryKeyDefBuilder, PrimaryKeyDefBuilder.PrimaryKeyDefBuilderColumnDefList {
  private List columnDefList;

  public PrimaryKeyDefBuilderPojo() {
  }

  @Override
  public PrimaryKeyDef build() {
    return new PrimaryKeyDefPojo(this);
  }

  @Override
  public PrimaryKeyDefBuilder.PrimaryKeyDefBuilderColumnDefList columnDefList(List columnDefList) {
    if (columnDefList == null) {
      throw new NullPointerException();
    }
    this.columnDefList = columnDefList;
    return this;
  }

  List ___get___columnDefList() {
    return columnDefList;
  }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy