Module eclipselink
Annotation Interface NamedStoredFunctionQuery
@Target(TYPE)
@Retention(RUNTIME)
@Repeatable(NamedStoredFunctionQueries.class)
public @interface NamedStoredFunctionQuery
A NamedStoredFunctionQuery annotation allows the definition of queries that
call stored functions as named queries.
A NamedStoredFunctionQuery annotation may be defined on an Entity or MappedSuperclass.
- Author:
- James
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionThe name of the stored function.Unique name that references this stored function query.Defines the return value of the stored function. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanDefines if the stored function should be called by index or by name.jakarta.persistence.QueryHint[]Query hints.Defines the parameters to the stored function.The name of the SqlResultSetMapping.
-
Element Details
-
name
String nameUnique name that references this stored function query. -
hints
jakarta.persistence.QueryHint[] hintsQuery hints.- Default:
{}
-
resultSetMapping
String resultSetMappingThe name of the SqlResultSetMapping.- Default:
""
-
functionName
String functionNameThe name of the stored function. -
callByIndex
boolean callByIndexDefines if the stored function should be called by index or by name.By index requires that the parameters() are defined in the same order as the function on the database.
By name requires the database platform support naming function parameters.
- Default:
false
-
parameters
StoredProcedureParameter[] parametersDefines the parameters to the stored function.- Default:
{}
-
returnParameter
StoredProcedureParameter returnParameterDefines the return value of the stored function.
-