Package play.db
Interface ConnectionCallable<A>
-
public interface ConnectionCallable<A>
Similar to java.util.concurrent.Callable with a Connection as argument. Provides a functional interface for use with Java 8+. If no result needs to be returned, ConnectionRunnable can be used instead.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 A
call(Connection connection)
-
-
-
Method Detail
-
call
A call(Connection connection) throws SQLException
- Throws:
SQLException
-
-