com.scalar.db.sql.statement.builder.DropCoordinatorTablesStatementBuilder Maven / Gradle / Ivy
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);
}
}
}