public class DbFunctions extends Object implements org.mule.runtime.api.lifecycle.Initialisable
| Constructor and Description |
|---|
DbFunctions() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createArray(String configName,
String typeName,
List<Object> values)
DataWeave function to create JDBC Array objects based on the Array Type to create and the values that conforms the type.
|
Object |
createStruct(String configName,
String typeName,
List<Object> properties)
DataWeave function to create JDBC Struct objects based on the Type Name and their correspondent properties.
|
void |
initialise() |
Object |
prepareArray(String typeName,
List<Object> values)
DataWeave function to prepare an array for sending to the database as an
Array. |
Object |
prepareStruct(String typeName,
List<Object> properties)
DataWeave function to prepare an array for sending to the database as a
Struct. |
public Object createArray(String configName, String typeName, List<Object> values)
typeName - The name of the Array type to createvalues - An array of values that conforms the Array TypeconfigName - The configuration in charge of creating the Array Typepublic Object prepareArray(String typeName, List<Object> values)
Array.
This function returns an object that will later be replaced with an Array when passed as a parameter to a database
operation.typeName - The name of the Array type to createvalues - An array of values that conforms the Array Typepublic Object createStruct(String configName, String typeName, List<Object> properties)
typeName - The name of the Struct type to createproperties - An array of values that conforms the Struct propertiesconfigName - The configuration in charge of creating the Struct typepublic Object prepareStruct(String typeName, List<Object> properties)
Struct.
This function returns an object that will later be replaced with a Struct when passed as a parameter to a database
operation.typeName - The name of the Struct type to createproperties - An array of values that conforms the Struct propertiespublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionCopyright © 2025. All rights reserved.