@Documented @Retention(RUNTIME) @Target(METHOD) public @interface OutParameter
Applied to a method means that the return value should be retrieved using an out parameter. In addition allows to provide additional information about the out parameter.
Causes a call string to be generated in the form of
{@code "{call function_name(?)}" instead of "{ ? = call function_name()}"}
where one of the function arguments is an out parameter.
ReturnValue,
InOutParameter,
Out Parameter Result Extraction| Modifier and Type | Optional Element | Description |
|---|---|---|
int |
index |
Defines the index of the out parameter.
|
String |
name |
Defines the name of the out parameter.
|
int |
type |
Defines the SQL type of the out parameter.
|
String |
typeName |
If the out parameter is a a user defined type like a named array
types then this method denotes the type name.
|
int type
TypeMapper is used.Typesint index
If the out parameter isn't the last parameter you have to provide the index of the out parameter.
String name
ProcedureCallerFactory.ParameterRegistration.NAME_ONLY or
ProcedureCallerFactory.ParameterRegistration.NAME_AND_TYPE.String typeName
CallableStatement.registerOutParameter(int, int, String)Copyright © 2016–2018. All rights reserved.