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

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

package br.com.objectos.way.sql;

import br.com.objectos.way.core.testing.Testables;
import com.google.common.base.Optional;
import java.util.List;

@javax.annotation.Generated("br.com.objectos.way.auto.pojo.AutoPojoProcessor")
final class ForeignKeyInfoPojo extends ForeignKeyInfo  {

  private final Optional name;
  private final List foreignKeyPartList;
  private final Optional deleteAction;
  private final Optional updateAction;

  public ForeignKeyInfoPojo(ForeignKeyInfoBuilderPojo builder) {
    super();
    name = builder.name();
    foreignKeyPartList = builder.foreignKeyPartList();
    deleteAction = builder.deleteAction();
    updateAction = builder.updateAction();
  }

  @Override
  public boolean isEqual(KeyInfo o) {
    if (!ForeignKeyInfoPojo.class.isInstance(o)) {
      return false;
    }    
    ForeignKeyInfoPojo that = ForeignKeyInfoPojo.class.cast(o);
    return Testables.isEqualHelper()
        .equal(this.name, that.name)
        .equal(this.foreignKeyPartList, that.foreignKeyPartList)
        .equal(this.deleteAction, that.deleteAction)
        .equal(this.updateAction, that.updateAction)
        .result();
  }
  
  @Override
  Optional name() {
    return name;
  }
  
  @Override
  List foreignKeyPartList() {
    return foreignKeyPartList;
  }
  
  @Override
  Optional deleteAction() {
    return deleteAction;
  }
  
  @Override
  Optional updateAction() {
    return updateAction;
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy