de.zalando.sprocwrapper.proxy.executors.Executor Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zalando-sprocwrapper Show documentation
Show all versions of zalando-sprocwrapper Show documentation
Library to make PostgreSQL stored procedures available through simple Java "*SProcService" interfaces
including automatic object serialization and deserialization (using typemapper and
convention-over-configuration). Supports sharding, advisory locking, statement timeouts and PostgreSQL types
such as enums and hstore.
package de.zalando.sprocwrapper.proxy.executors;
import javax.sql.DataSource;
import de.zalando.sprocwrapper.proxy.InvocationContext;
/**
* @author jmussler
*/
public interface Executor {
Object executeSProc(DataSource ds, String sql, Object[] args, int[] types, InvocationContext invocationContext,
Class> returnType);
}