br.com.objectos.schema.info.ForeignKeyInfoBuilderPojo Maven / Gradle / Ivy
package br.com.objectos.schema.info;
import br.com.objectos.schema.annotation.ForeignKeyAction;
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",
"br.com.objectos.pojo.plugin.StandardBuilderPropertyAction"
})
final class ForeignKeyInfoBuilderPojo implements ForeignKeyInfoBuilder, ForeignKeyInfoBuilder.ForeignKeyInfoBuilderName, ForeignKeyInfoBuilder.ForeignKeyInfoBuilderKeyPartList, ForeignKeyInfoBuilder.ForeignKeyInfoBuilderDeleteAction, ForeignKeyInfoBuilder.ForeignKeyInfoBuilderUpdateAction {
private String name;
private List extends ForeignKeyPart> keyPartList;
private ForeignKeyAction deleteAction;
private ForeignKeyAction updateAction;
public ForeignKeyInfoBuilderPojo() {
}
@Override
public ForeignKeyInfo build() {
return new ForeignKeyInfoPojo(this);
}
@Override
public ForeignKeyInfoBuilder.ForeignKeyInfoBuilderName name(String name) {
if (name == null) {
throw new NullPointerException();
}
this.name = name;
return this;
}
String ___get___name() {
return name;
}
@Override
public ForeignKeyInfoBuilder.ForeignKeyInfoBuilderKeyPartList keyPartList(List extends ForeignKeyPart> keyPartList) {
if (keyPartList == null) {
throw new NullPointerException();
}
this.keyPartList = keyPartList;
return this;
}
List extends ForeignKeyPart> ___get___keyPartList() {
return keyPartList;
}
@Override
public ForeignKeyInfoBuilder.ForeignKeyInfoBuilderKeyPartList keyPartList(ForeignKeyPart... elements) {
if (elements == null) {
throw new NullPointerException();
}
List keyPartList = new ArrayList<>(elements.length);
for (int i = 0; i < elements.length; i++) {
ForeignKeyPart e = elements[i];
if (e == null) {
throw new NullPointerException();
}
keyPartList.add(e);
}
this.keyPartList = Collections.unmodifiableList(keyPartList);
return this;
}
@Override
public ForeignKeyInfoBuilder.ForeignKeyInfoBuilderDeleteAction deleteAction(ForeignKeyAction deleteAction) {
if (deleteAction == null) {
throw new NullPointerException();
}
this.deleteAction = deleteAction;
return this;
}
ForeignKeyAction ___get___deleteAction() {
return deleteAction;
}
@Override
public ForeignKeyInfoBuilder.ForeignKeyInfoBuilderUpdateAction updateAction(ForeignKeyAction updateAction) {
if (updateAction == null) {
throw new NullPointerException();
}
this.updateAction = updateAction;
return this;
}
ForeignKeyAction ___get___updateAction() {
return updateAction;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy