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

net.sf.aguacate.context.spi.sql.impl.SentenceSqlEndTransaction Maven / Gradle / Ivy

There is a newer version: 0.10.9
Show newest version
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;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy