Jakarta Persistence (JPA) Interface

jakarta.persistence.ConnectionFunction<C,T>

Type Parameters:
<C> - the connection type, usually java.sql.Connection

A function which makes use of a native database connection to compute a result. The connection is usually a JDBC connection.
See Also:
Since:
Jakarta Persistence (JPA) 3.2

Public Instance Methods

T apply(C connection)
Compute a result using the given connection.
Parameters:
connection - the connection to use
Returns:
the result.
Throws:
Exception - if a problem occurs calling the connection, usually a java.sql.SQLException.
Since:
Jakarta Persistence (JPA) 1.0