@Documented @Retention(value=RUNTIME) @Target(value=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
Modifier and Type | Optional Element and 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.
|
public abstract int type
TypeMapper
is used.Types
public abstract int index
If the out parameter isn't the last parameter you have to provide the index of the out parameter.
public abstract String name
ProcedureCallerFactory.ParameterRegistration.NAME_ONLY
or
ProcedureCallerFactory.ParameterRegistration.NAME_AND_TYPE
.public abstract String typeName
CallableStatement.registerOutParameter(int, int, String)
Copyright © 2013–2016. All rights reserved.