@FunctionalInterface public interface LongSQLConsumer
long-valued argument and returns no result.
This is the SQLException throwing equivalent of LongConsumer.| Modifier and Type | Method and Description |
|---|---|
void |
accept(long value)
Performs this operation on the given argument.
|
default LongSQLConsumer |
andThen(LongSQLConsumer after)
Returns a composed
LongSQLConsumer that performs, in sequence, this operation followed by the after operation. |
static LongSQLConsumer |
checked(LongConsumer operation)
Returns an
LongSQLConsumer that performs the operation operation, and unwraps any UncheckedSQLException that is thrown
by throwing its cause. |
static LongConsumer |
unchecked(LongSQLConsumer operation)
Returns a
LongConsumer that performs the operation operation, and wraps any SQLException that is thrown in an
UncheckedSQLException. |
void accept(long value)
throws SQLException
value - The input argument.SQLException - If an SQL error occurs.default LongSQLConsumer andThen(LongSQLConsumer after)
LongSQLConsumer that performs, in sequence, this operation followed by the after operation.
If performing either operation throws an exception, it is relayed to the caller of the composed operation.
If performing this operation throws an exception, the after operation will not be performed.after - The operation to perform after this operation.LongSQLConsumer that performs in sequence this operation followed by the after operation.NullPointerException - If after is null.static LongConsumer unchecked(LongSQLConsumer operation)
LongConsumer that performs the operation operation, and wraps any SQLException that is thrown in an
UncheckedSQLException.operation - The operation to perform when the returned operation is performed.LongConsumer that performs the operation operation on its input, and wraps any SQLException that is thrown
in an UncheckedSQLException.NullPointerException - If operation is null.static LongSQLConsumer checked(LongConsumer operation)
LongSQLConsumer that performs the operation operation, and unwraps any UncheckedSQLException that is thrown
by throwing its cause.operation - The operation to perform when the returned operation is performed.LongSQLConsumer that performs the operation operation on its input, and unwraps any UncheckedSQLException
that is thrown.NullPointerException - If the given operation is null.Copyright © 2017. All rights reserved.