Interface OrElseThrowExpression<T,INNER extends Expression<T>>
-
- Type Parameters:
T- the input entity typeINNER- the wrapped nullable expression
- All Superinterfaces:
Expression<T>,NonNullableExpression<T,INNER>
- All Known Subinterfaces:
ToBigDecimalOrThrow<T>,ToBooleanOrThrow<T>,ToByteOrThrow<T>,ToCharOrThrow<T>,ToDoubleOrThrow<T>,ToEnumOrThrow<T,E>,ToFloatOrThrow<T>,ToIntOrThrow<T>,ToLongOrThrow<T>,ToShortOrThrow<T>,ToStringOrThrow<T>
public interface OrElseThrowExpression<T,INNER extends Expression<T>> extends NonNullableExpression<T,INNER>
Specialization ofNonNullableExpressionthat throws an exception if the wrapped expression returnsnull.- Since:
- 3.1.0
- Author:
- Emil Forslund
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.speedment.runtime.compute.expression.NonNullableExpression
NonNullableExpression.NullStrategy
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default NonNullableExpression.NullStrategynullStrategy()Returns the strategy used by this expression to deal with the case whenNonNullableExpression.innerNullable()would have returnednull.-
Methods inherited from interface com.speedment.runtime.compute.expression.Expression
expressionType
-
Methods inherited from interface com.speedment.runtime.compute.expression.NonNullableExpression
innerNullable
-
-
-
-
Method Detail
-
nullStrategy
default NonNullableExpression.NullStrategy nullStrategy()
Description copied from interface:NonNullableExpressionReturns the strategy used by this expression to deal with the case whenNonNullableExpression.innerNullable()would have returnednull.- Specified by:
nullStrategyin interfaceNonNullableExpression<T,INNER extends Expression<T>>- Returns:
- the null-strategy used
-
-