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