public class DbFunctionUtil extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
DbFunctionUtil.ConnectedFunction<T>
Interface for
execute(ConnectedFunction, String). |
static interface |
DbFunctionUtil.WithConnection
Deprecated.
Use
execute(ConnectedFunction, String) instead. |
| Constructor and Description |
|---|
DbFunctionUtil(org.mule.runtime.core.api.extension.ExtensionManager extensionManager) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
execute(DbFunctionUtil.ConnectedFunction<T> connectedFunction,
String connectionName)
Runs code with the proper connection.
|
Object |
execute(DbFunctionUtil.WithConnection withConnection,
List<Object> values,
String typeName,
String connectionName)
Deprecated.
Use
execute(ConnectedFunction, String) instead. |
public DbFunctionUtil(org.mule.runtime.core.api.extension.ExtensionManager extensionManager)
public <T> T execute(DbFunctionUtil.ConnectedFunction<T> connectedFunction, String connectionName) throws org.mule.runtime.api.connection.ConnectionException, SQLException
connectedFunction - the code to runconnectionName - the database configuration to get the connectionorg.mule.runtime.api.connection.ConnectionExceptionSQLException@Deprecated public Object execute(DbFunctionUtil.WithConnection withConnection, List<Object> values, String typeName, String connectionName)
execute(ConnectedFunction, String) instead.Copyright © 2022. All rights reserved.