@FunctionalInterface public interface LongSQLSupplier
long-valued results.
This is the SQLException throwing equivalent of LongSupplier.| Modifier and Type | Method and Description |
|---|---|
static LongSQLSupplier |
checked(LongSupplier supplier)
Returns a supplier that returns the result of the
supplier supplier, and unwraps any UncheckedSQLException that is thrown by
throwing its cause. |
long |
getAsLong()
Gets a result.
|
static LongSupplier |
unchecked(LongSQLSupplier supplier)
Returns a supplier that returns the result of the
supplier supplier, and wraps any SQLException that is thrown in an
UncheckedSQLException. |
long getAsLong()
throws SQLException
SQLException - If an SQL error occurs.static LongSupplier unchecked(LongSQLSupplier supplier)
supplier supplier, and wraps any SQLException that is thrown in an
UncheckedSQLException.supplier - The supplier that will provide results for the returned supplier.supplier supplier, and wraps any SQLException that is thrown in an
UncheckedSQLException.NullPointerException - If supplier is null.static LongSQLSupplier checked(LongSupplier supplier)
supplier supplier, and unwraps any UncheckedSQLException that is thrown by
throwing its cause.supplier - The supplier that will provide results for the returned supplier.supplier supplier, and unwraps any UncheckedSQLException that is thrown.NullPointerException - If supplier is null.Copyright © 2017. All rights reserved.