Package play.db
Interface ConnectionRunnable
-
public interface ConnectionRunnable
Similar to java.lang.Runnable with a Connection as argument. Provides a functional interface for use with Java 8+. To return a result use ConnectionCallable.Vanilla Java:
new ConnectionCallable<A>() { public A call(Connection c) { return ...; } }
Java Lambda:(Connection c) -> ...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
run(Connection connection)
-
-
-
Method Detail
-
run
void run(Connection connection) throws SQLException
- Throws:
SQLException
-
-