public class SqlAnnotations extends Object
| Modifier and Type | Method and Description |
|---|---|
static Optional<String> |
getAnnotationValue(Method method)
Returns the
value() of the @SqlBatch, @SqlCall, @SqlQuery,
@SqlUpdate, @SqlScripts, or @SqlScript annotation on the given method if declared and non-empty; empty otherwise. |
static Optional<String> |
getAnnotationValue(Method method,
Function<String,String> transformation)
Returns the
value() of the @SqlBatch, @SqlCall, @SqlQuery,
@SqlUpdate, @SqlScripts, or @SqlScript annotation on the given method if declared; empty otherwise. |
public static Optional<String> getAnnotationValue(Method method)
value() of the @SqlBatch, @SqlCall, @SqlQuery,
@SqlUpdate, @SqlScripts, or @SqlScript annotation on the given method if declared and non-empty; empty otherwise.method - the methodvalue()public static Optional<String> getAnnotationValue(Method method, Function<String,String> transformation)
value() of the @SqlBatch, @SqlCall, @SqlQuery,
@SqlUpdate, @SqlScripts, or @SqlScript annotation on the given method if declared; empty otherwise.
Note: @SqlScripts values are mapped individually and concatenated with " ; ", hence the transformation parameter.method - the methodtransformation - the String transformation (e.g. SQL lookup) to apply to the found value(s)value()Copyright © 2020. All rights reserved.