Class SqlBuilder.CallableSqlBuilder
java.lang.Object
org.tamilnadujug.SqlBuilder.CallableSqlBuilder
- Enclosing class:
SqlBuilder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionfinal classJDBC Batch Builder.final classWrapper for CallableSqlBuilder to hide Batch Operations. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddBatch()execute(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.
-
Constructor Details
-
CallableSqlBuilder
-
-
Method Details
-
execute
Executes the SQL operation using the given JDBC connection.- Specified by:
executein interfaceSql<Boolean>- Parameters:
connection- JDBC connection to use for execution- Returns:
- result of the SQL operation
- Throws:
SQLException- if an error occurs during execution
-
paramNull
Adds a parameter with a null.- Returns:
- the current SqlBuilder instance, for method chaining
-
paramNull
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 inTypestypeName- 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 Short parameter to the SQL query.- Parameters:
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
-
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 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
-
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
-
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
-
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
-
param
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
-
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
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
-