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

com.scalar.db.sql.statement.CommitStatement Maven / Gradle / Ivy

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

import javax.annotation.concurrent.Immutable;

@Immutable
public class CommitStatement implements CommandStatement {

  private static final CommitStatement INSTANCE = new CommitStatement();

  private CommitStatement() {}

  @Override
  public String toSql() {
    return "COMMIT";
  }

  @Override
  public  R accept(CommandStatementVisitor visitor, C context) {
    return visitor.visit(this, context);
  }

  @Override
  public  R accept(StatementVisitor visitor, C context) {
    return visitor.visit(this, context);
  }

  @Override
  public String toString() {
    return toSql();
  }

  public static CommitStatement create() {
    return INSTANCE;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy