public interface BindVars
Marker interface used within an SQL template to indicate where bind variables (parameters) should be injected.
This interface is typically referenced within the SQL string to specify placeholder positions for parameter binding.
-
Method Summary
Modifier and TypeMethodDescriptionvoidsetRecordListener(SqlTemplate.RecordListener listener) Sets a listener that is invoked for each record that is being bound.
-
Method Details
-
setRecordListener
Sets a listener that is invoked for each record that is being bound.This method can be used to optimize the binding of parameters to the SQL statement.
- Parameters:
listener- the consumer to invoke for each bind variable.- Since:
- 1.2
-