Class SqlBuilder.CallableSqlBuilder

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

public static final class SqlBuilder.CallableSqlBuilder extends Object implements Sql<Boolean>
  • Constructor Details

    • CallableSqlBuilder

      public CallableSqlBuilder(String theSql)
      Creates Callable Sql Builder.
      Parameters:
      theSql -
  • Method Details

    • 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 - JDBC connection to use for execution
      Returns:
      result of the SQL operation
      Throws:
      SQLException - if an error occurs during execution
    • paramNull

      public SqlBuilder.CallableSqlBuilder paramNull()
      Adds a parameter with a null.
      Returns:
      the current SqlBuilder instance, for method chaining
    • paramNull

      public SqlBuilder.CallableSqlBuilder 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, as defined in Types
      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

      public SqlBuilder.CallableSqlBuilder param(Integer 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:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

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

      public SqlBuilder.CallableSqlBuilder param(String 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:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      public SqlBuilder.CallableSqlBuilder param(Double 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:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      public SqlBuilder.CallableSqlBuilder param(Boolean 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:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      public SqlBuilder.CallableSqlBuilder param(Long value)
      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

      public SqlBuilder.CallableSqlBuilder param(Date 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:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      public SqlBuilder.CallableSqlBuilder param(Float 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:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      public SqlBuilder.CallableSqlBuilder param(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:
      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

      public SqlBuilder.CallableSqlBuilder param(Time 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:
      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

      public SqlBuilder.CallableSqlBuilder param(Object 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:
      value - the value of the parameter to be added
      Returns:
      the current SqlBuilder instance, for method chaining
    • param

      public SqlBuilder.CallableSqlBuilder 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
    • 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 Short parameter to the SQL query.
      Parameters:
      type -
      value - the Short value 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
    • 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
    • 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
    • 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
    • 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
    • addBatch

      Returns:
      callableBatch