java.lang.Object
org.seasar.doma.jdbc.command.SqlProcessorCommand<RESULT>
- Type Parameters:
RESULT- the result type
- All Implemented Interfaces:
Command<RESULT>
A command to process SQL with a custom handler.
This command allows custom processing of SQL statements using a provided handler function.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BiFunction<Config,PreparedSql, RESULT> the handler function that processes the SQLprotected final SqlProcessorQuerythe query -
Constructor Summary
ConstructorsConstructorDescriptionSqlProcessorCommand(SqlProcessorQuery query, BiFunction<Config, PreparedSql, RESULT> handler) Creates a new instance. -
Method Summary
-
Field Details
-
query
the query -
handler
the handler function that processes the SQL
-
-
Constructor Details
-
SqlProcessorCommand
Creates a new instance.- Parameters:
query- the SQL processor queryhandler- the handler function that processes the SQL
-
-
Method Details