com.scalar.db.sql.statement.RollbackStatement Maven / Gradle / Ivy
package com.scalar.db.sql.statement;
import javax.annotation.concurrent.Immutable;
@Immutable
public class RollbackStatement implements CommandStatement {
private static final RollbackStatement INSTANCE = new RollbackStatement();
private RollbackStatement() {}
@Override
public String toSql() {
return "ROLLBACK";
}
@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 RollbackStatement create() {
return INSTANCE;
}
}