com.scalar.db.sql.statement.builder.SetModeStatementBuilder Maven / Gradle / Ivy
package com.scalar.db.sql.statement.builder;
import com.scalar.db.sql.TransactionMode;
import com.scalar.db.sql.statement.SetModeStatement;
public class SetModeStatementBuilder {
private SetModeStatementBuilder() {}
public static class Start extends Buildable {
Start(TransactionMode transactionMode) {
super(transactionMode);
}
}
public static class Buildable {
private final TransactionMode transactionMode;
private Buildable(TransactionMode transactionMode) {
this.transactionMode = transactionMode;
}
/**
* Builds a SetModeStatement object.
*
* @return a SetModeStatement object
*/
public SetModeStatement build() {
return SetModeStatement.create(transactionMode);
}
}
}