Interface SqlFunction<T,​R>

All Superinterfaces:
java.util.function.Function<T,​R>, java.io.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 java.util.function.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()  

    Methods inherited from interface java.util.function.Function

    andThen, apply, compose