Package net.sf.jkniv.whinstone.params
Interface AutoBindParams
-
public interface AutoBindParamsRealize the bind from parameter toStatementAdapterautomatically.- Since:
- 0.6.0
- Author:
- Alisson Gomes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidon()Bind all parameters fromQueryabletoStatementAdapterautomaticallyintonBulk()Grouping multipleinsert|update|deletestatements into a single Prepared Statement.
-
-
-
Method Detail
-
on
void on()
Bind all parameters fromQueryabletoStatementAdapterautomatically- Throws:
ParameterException- when a parameter values not correspond the type expected
-
onBulk
int onBulk()
Grouping multipleinsert|update|deletestatements into a single Prepared Statement.- Returns:
- the number of rows affected.
Note:
-2no count of the number of rows it affected is available-3indicating that an error occurred while executing a bulk statement - Throws:
ParameterException- when a parameter values not correspond the type expected
-
-