Class SPParam<T>

java.lang.Object
onl.ycode.stormify.SPParam<T>
Type Parameters:
T - The type of the parameter.

public class SPParam<T> extends Object
This class is used to pass parameters to stored procedures.
  • Method Details

    • getResult

      public T getResult()
      Get the result of the stored procedure.
      Returns:
      The result of the stored procedure.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • in

      public static <T> SPParam<T> in(Class<T> type, T value)
      Create a new IN parameter.
      Type Parameters:
      T - The type of the parameter.
      Parameters:
      type - The type of the parameter.
      value - The value of the parameter.
      Returns:
      The new parameter.
    • out

      public static <T> SPParam<T> out(Class<T> type)
      Create a new OUT parameter.
      Type Parameters:
      T - The type of the parameter.
      Parameters:
      type - The type of the parameter.
      Returns:
      The new parameter.
    • inout

      public static <T> SPParam<T> inout(Class<T> type, T value)
      Create a new INOUT parameter.
      Type Parameters:
      T - The type of the parameter.
      Parameters:
      type - The type of the parameter.
      value - The value of the parameter.
      Returns:
      The new parameter.