public class BulkOperations extends BaseDbOperations
| Modifier and Type | Class and Description |
|---|---|
static class |
BulkOperations.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected Function<ConfigurableStatementFactory,BulkExecutor> |
bulkExecutorSupplier |
protected BulkQueryResolver |
bulkQueryResolver |
protected QueryTemplateParser |
queryTemplateParser |
DEFAULT_FETCH_SIZE, QUERY_GROUP, QUERY_SETTINGS, queryResolver, statementFactory, updateExecutor| Modifier and Type | Method and Description |
|---|---|
int[] |
bulkDelete(List<Map<String,Object>> bulkInputParameters,
BulkQueryDefinition query,
AbstractDbConnector connector,
DbConnection connection,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper)
Allows executing one delete statement various times using different parameter bindings.
|
int[] |
bulkInsert(List<Map<String,Object>> bulkInputParameters,
BulkQueryDefinition query,
AbstractDbConnector connector,
DbConnection connection,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper)
Allows executing one insert statement various times using different parameter bindings.
|
int[] |
bulkUpdate(List<Map<String,Object>> bulkInputParameters,
BulkQueryDefinition query,
AbstractDbConnector connector,
DbConnection connection,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper)
Allows executing one update statement various times using different parameter bindings.
|
int[] |
executeScript(BulkScript script,
QuerySettings settings,
DbConnection connection)
Executes a SQL script in one single Database statement.
|
protected static Function<ConfigurableStatementFactory,BulkExecutor> |
getDefaultBulkExecutor() |
protected static BulkQueryResolver |
getDefaultBulkQueryResolver() |
protected static QueryTemplateParser |
getDefaultQueryTemplateParser() |
protected Query |
resolveQuery(BulkQueryDefinition query,
AbstractDbConnector connector,
DbConnection connection,
org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper,
QueryType... validTypes) |
executeUpdate, getAutoGeneratedKeysStrategy, getDefaultQueryResolver, getDefaultStatementFactory, getDefaultUpdateExecutor, getFetchSize, getStatementFactory, resolveQuery, validateNoParameterTypeIsUnused, validateQueryTypeprotected BulkQueryResolver bulkQueryResolver
protected QueryTemplateParser queryTemplateParser
protected Function<ConfigurableStatementFactory,BulkExecutor> bulkExecutorSupplier
protected static BulkQueryResolver getDefaultBulkQueryResolver()
protected static QueryTemplateParser getDefaultQueryTemplateParser()
protected static Function<ConfigurableStatementFactory,BulkExecutor> getDefaultBulkExecutor()
public int[] bulkInsert(List<Map<String,Object>> bulkInputParameters, BulkQueryDefinition query, AbstractDbConnector connector, DbConnection connection, org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper) throws SQLException
query - a BulkQueryDefinition as a parameter groupbulkInputParameters - A List of Maps in which every list item represents a row to be inserted, and the
map contains the parameter names as keys and the value the parameter is bound to.connector - the acting connectorconnection - the acting connectionSQLException - if an error is producedpublic int[] bulkUpdate(List<Map<String,Object>> bulkInputParameters, BulkQueryDefinition query, AbstractDbConnector connector, DbConnection connection, org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper) throws SQLException
query - a BulkQueryDefinition as a parameter groupbulkInputParameters - A List of Maps in which every list item represents a row to be inserted, and the
map contains the parameter names as keys and the value the parameter is bound to.connector - the acting connectorconnection - the acting connectionSQLException - if an error is producedpublic int[] bulkDelete(List<Map<String,Object>> bulkInputParameters, BulkQueryDefinition query, AbstractDbConnector connector, DbConnection connection, org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper) throws SQLException
query - a BulkQueryDefinition as a parameter groupbulkInputParameters - A List of Maps in which every list item represents a row to be inserted, and the
map contains the parameter names as keys and the value the parameter is bound to.connector - the acting connectorconnection - the acting connectionSQLException - if an error is producedpublic int[] executeScript(BulkScript script, QuerySettings settings, DbConnection connection) throws SQLException
script - a BulkScript as a parameter groupsettings - a QuerySettings as a parameter groupconnection - the acting connectionSQLException - if an error is producedprotected Query resolveQuery(BulkQueryDefinition query, AbstractDbConnector connector, DbConnection connection, org.mule.runtime.extension.api.runtime.streaming.StreamingHelper streamingHelper, QueryType... validTypes)
Copyright © 2022. All rights reserved.