public final class SqlHelper extends Object
| Modifier and Type | Method and Description |
|---|---|
static Set<String> |
extractParameterNames(String query)
Extracts list of parameters in form "@name" from query text
|
static String |
resolveQuery(org.apache.camel.CamelContext camelContext,
String query,
String placeholder)
Resolve the query by loading the query from the classpath or file resource if needed.
|
static String |
translateQuery(String query,
org.apache.camel.Exchange exchange)
Replaces pattern in query in form of "${param}" with values from message header Raises an error if param value
not found in headers
|
public static String resolveQuery(org.apache.camel.CamelContext camelContext, String query, String placeholder) throws org.apache.camel.NoTypeConversionAvailableException, IOException
org.apache.camel.NoTypeConversionAvailableExceptionIOExceptionpublic static String translateQuery(String query, org.apache.camel.Exchange exchange)
exchange - Apache Camel