aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/io/trygvis/queue/SqlEffect.java
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2013-06-23 09:37:57 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2013-06-23 09:37:57 +0200
commit7caa5b1f1e08f99cfe4465f091f47e2966d78aa7 (patch)
treec0bd7202845697207b04d518f613588df17d9e12 /src/main/java/io/trygvis/queue/SqlEffect.java
downloadjdbc-queue-7caa5b1f1e08f99cfe4465f091f47e2966d78aa7.tar.gz
jdbc-queue-7caa5b1f1e08f99cfe4465f091f47e2966d78aa7.tar.bz2
jdbc-queue-7caa5b1f1e08f99cfe4465f091f47e2966d78aa7.tar.xz
jdbc-queue-7caa5b1f1e08f99cfe4465f091f47e2966d78aa7.zip
o Initial import of JDBC queue.HEADmaster
Diffstat (limited to 'src/main/java/io/trygvis/queue/SqlEffect.java')
-rw-r--r--src/main/java/io/trygvis/queue/SqlEffect.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/java/io/trygvis/queue/SqlEffect.java b/src/main/java/io/trygvis/queue/SqlEffect.java
new file mode 100644
index 0000000..7864bcd
--- /dev/null
+++ b/src/main/java/io/trygvis/queue/SqlEffect.java
@@ -0,0 +1,12 @@
+package io.trygvis.queue;
+
+import java.sql.Connection;
+import java.sql.SQLException;
+
+public interface SqlEffect<A> {
+ A doInConnection(Connection c) throws SQLException;
+
+ interface Void {
+ void doInConnection(Connection c) throws SQLException;
+ }
+}