Interface SqlFunction<T,R>
- All Superinterfaces:
Function<T,R>,Serializable,SerializedFunctionalInterface
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface SqlFunction<T,R> extends Function<T,R>, SerializedFunctionalInterface
A serialized
Function. Converting a function to be used in SQL is really only useful when working with ORDER BY, or similar DQL options.
For more on this, check out my ORM library, Java2DB, which uses this feature.- Author:
- Collin Alpert
- See Also:
Function,SerializedFunctionalInterface
-
Method Summary
Modifier and Type Method Description default <V> SqlFunction<T,V>andThen(SqlFunction<? super R,? extends V> after)default <V> SqlFunction<V,R>compose(SqlFunction<? super V,? extends T> before)static <T> SqlFunction<T,T>identity()