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

com.scalar.db.sql.statement.builder.DropCoordinatorTablesStatementBuilder Maven / Gradle / Ivy

There is a newer version: 3.14.0
Show newest version
package com.scalar.db.sql.statement.builder;

import com.scalar.db.sql.statement.DropCoordinatorTablesStatement;

public class DropCoordinatorTablesStatementBuilder {

  private DropCoordinatorTablesStatementBuilder() {}

  public static class Start extends Buildable {
    Start() {
      super(false);
    }

    /**
     * Specifies that the coordinator tables should be dropped only if they exist.
     *
     * @return a builder object
     */
    public Buildable ifExist() {
      return new Buildable(true);
    }

    /**
     * Specifies whether the coordinator tables should be dropped only if they exist.
     *
     * @param ifExist whether the coordinator tables should be dropped only if they exist
     * @return a builder object
     */
    public Buildable ifExist(boolean ifExist) {
      return new Buildable(ifExist);
    }
  }

  public static class Buildable {
    private final boolean ifExist;

    private Buildable(boolean ifExist) {
      this.ifExist = ifExist;
    }

    /**
     * Builds a DropCoordinatorTablesStatement object.
     *
     * @return a DropCoordinatorTablesStatement object
     */
    public DropCoordinatorTablesStatement build() {
      return DropCoordinatorTablesStatement.create(ifExist);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy