@Target(value=METHOD) @Retention(value=RUNTIME) @Repeatable(value=OutParameterList.class) public @interface OutParameter
@SqlCall annotated method.
Note that you *must* include the parameter name in the SQL text to
ensure that the binding is activated, this is a limitation that
may be fixed at a future date.
Example usage, using PostgreSQL call syntax:
handle.execute("CREATE FUNCTION set100(OUT outparam INT) AS $$ BEGIN outparam := 100; END; $$ LANGUAGE plpgsql");
@SqlCall("{call myStoredProc(:outparam)}")
@OutParameter(name="outparam", sqlType = Types.INTEGER)
OutParameters callStoredProc();
public abstract String name
Copyright © 2020. All rights reserved.