package com.avaje.ebeaninternal.server.persist.dmlbind;

import java.sql.SQLException;
import java.util.List;

import com.avaje.ebean.bean.EntityBean;
import com.avaje.ebeaninternal.server.core.PersistRequestBean;
import com.avaje.ebeaninternal.server.persist.dml.GenerateDmlRequest;

public class BindableIdEmpty implements BindableId {

  public boolean isEmpty() {
    return true;
  }

  @Override
  public boolean isDraftOnly() {
    return false;
  }

  public void addToUpdate(PersistRequestBean<?> request, List<Bindable> list) {
    // nothing
  }

  public void dmlAppend(GenerateDmlRequest request) {
    // nothing
  }

  public void dmlBind(BindableRequest request, EntityBean bean) throws SQLException {
    // nothing
  }

  public boolean isConcatenated() {
    return false;
  }

  public String getIdentityColumn() {
    return null;
  }

  public boolean deriveConcatenatedId(PersistRequestBean<?> persist) {
    return false;
  }

}
