Class SqlBuilder.CallableSqlBuilder.CallableSqlBuilderWrapper
java.lang.Object
org.tamilnadujug.SqlBuilder.CallableSqlBuilder.CallableSqlBuilderWrapper
- Enclosing class:
SqlBuilder.CallableSqlBuilder
-
Method Summary
Modifier and TypeMethodDescriptionexecute(Connection connection) Executes the SQL operation using the given JDBC connection.outParam(int type) Set Out Parameter.outParam(int type, byte[] value) Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a Short parameter to the SQL query.Adds a parameter to the SQL query.outParam(int type, BigDecimal value) Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter to the SQL query.param(byte[] value) Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds an Object parameter to the SQL query with targetSqlType.Adds a Short parameter to the SQL query.Adds a parameter to the SQL query.param(BigDecimal value) Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter to the SQL query.Adds a parameter with a null.Adds a parameter with a specific SQL type and type name as `NULL` to the SQL query.<T> Sql<T> queryOutParams(StatementMapper<T> mapper) Query for 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
Executes the SQL operation using the given JDBC connection.- Specified by:
executein interfaceSql<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
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
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 addedtargetSqlType- 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
-