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