public abstract class AbstractDbFunction extends Object implements ExpressionLanguageFunction
Modifier and Type | Field and Description |
---|---|
static String |
INVALID_ARGUMENT_NUMBER |
static String |
INVALID_DB_CONFIG_ARGUMENT |
static String |
INVALID_STRUCT_VALUES_ARGUMENT |
static String |
INVALID_TYPE_NAME_ARGUMENT |
Modifier | Constructor and Description |
---|---|
protected |
AbstractDbFunction(MuleContext muleContext)
Creates a new instance for a given context.
|
Modifier and Type | Method and Description |
---|---|
Object |
call(Object[] params,
ExpressionLanguageContext context) |
protected abstract Object |
createValue(DbConnection connection,
String typeName,
Object[] values)
Creates the structured type value
|
protected abstract String |
getFunctionName() |
public static final String INVALID_ARGUMENT_NUMBER
public static final String INVALID_DB_CONFIG_ARGUMENT
public static final String INVALID_TYPE_NAME_ARGUMENT
public static final String INVALID_STRUCT_VALUES_ARGUMENT
protected AbstractDbFunction(MuleContext muleContext)
muleContext
- context associated to the artifact using the function. Non null.public Object call(Object[] params, ExpressionLanguageContext context)
call
in interface ExpressionLanguageFunction
protected abstract Object createValue(DbConnection connection, String typeName, Object[] values) throws SQLException
connection
- connection used to create the value.typeName
- name of the user defined typevalues
- values that conform the estructured type.SQLException
- if there is any DB related error when creating the valueprotected abstract String getFunctionName()
Copyright © 2003–2018 MuleSoft, Inc.. All rights reserved.