Class SqlBuilder.CallableSqlBuilder.CallableSqlBuilderWrapper

java.lang.Object
org.tamilnadujug.SqlBuilder.CallableSqlBuilder.CallableSqlBuilderWrapper
All Implemented Interfaces:
Sql<Boolean>
Enclosing class:
SqlBuilder.CallableSqlBuilder

public final class SqlBuilder.CallableSqlBuilder.CallableSqlBuilderWrapper extends Object implements Sql<Boolean>
Wrapper for CallableSqlBuilder to hide Batch Operations. for INOUT,OUT parameters.
  • Method Details

    • param

      Adds a Short parameter to the SQL query.
      Parameters:
      value - the Short value to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • execute

      public Boolean execute(Connection connection) throws SQLException
      Executes the SQL operation using the given JDBC connection.
      Specified by:
      execute in interface Sql<Boolean>
      Parameters:
      connection -
      Returns:
      result of the SQL operation
      Throws:
      SQLException - if an error occurs during execution
    • outParam

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      type -
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • paramNull

      Adds a parameter with a null.
      Returns:
      the current SqlBuilder instance, for method chaining
    • outParam

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      type -
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • paramNull

      public SqlBuilder.CallableSqlBuilder.CallableSqlBuilderWrapper paramNull(int sqlType, String typeName)
      Adds a parameter with a specific SQL type and type name as `NULL` to the SQL query. This method is used when the SQL parameter should be set to `NULL`for types that require a type name in addition to the SQL type, such as SQL `STRUCT` or `ARRAY`.
      Parameters:
      sqlType - the SQL type of the parameter,
      typeName - the type name of the parameter, used for SQL types that require specific type information
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • outParam

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      type -
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • outParam

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      type -
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      Adds a parameter to the SQL query. The method allows chaining and is used o bind values to placeholders in the SQL query.
      Parameters:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • outParam

      Set Out Parameter.
      Parameters:
      type -
      Returns:
      the current SqlBuilder instance, for method chaining
    • outParam

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      type -
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • outParam

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      type -
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • outParam

      public SqlBuilder.CallableSqlBuilder.CallableSqlBuilderWrapper outParam(int type, byte[] value)
      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      type -
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • outParam

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      type -
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • outParam

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      type -
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • outParam

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      type -
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • outParam

      Adds a parameter to the SQL query. The method allows chaining and is used o bind values to placeholders in the SQL query.
      Parameters:
      type -
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • queryOutParams

      public <T> Sql<T> queryOutParams(StatementMapper<T> mapper)
      Query for Out Parameters.
      Type Parameters:
      T -
      Parameters:
      mapper -
      Returns:
      sql
    • param

      public SqlBuilder.CallableSqlBuilder.CallableSqlBuilderWrapper param(Object value, int targetSqlType)
      Adds an Object parameter to the SQL query with targetSqlType.
      Parameters:
      value - the Object value to be added
      targetSqlType - the targeted SqlType.
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • outParam

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      type -
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • outParam

      Adds a Short parameter to the SQL query.
      Parameters:
      type -
      value - the Short value to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      Adds a parameter to the SQL query. The method allows chaining and is used to bind values to placeholders in the SQL query.
      Parameters:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining