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

com.scalar.db.sql.statement.builder.SetModeStatementBuilder 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.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);
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy