net.sf.aguacate.context.spi.sql.impl.SentenceSqlEndTransaction Maven / Gradle / Ivy
package net.sf.aguacate.context.spi.sql.impl;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import net.sf.aguacate.function.FunctionContext;
import net.sf.aguacate.function.FunctionEvalResult;
public class SentenceSqlEndTransaction extends AbstractSentenceSql {
public SentenceSqlEndTransaction(String name, String message, List methods) {
super(name, message, methods);
}
@Override
public FunctionEvalResult evaluate0(FunctionContext functionContext, Map context)
throws SQLException {
functionContext.acquireConnection().commit();
return SUCCESS;
}
}