public class XMLSystemFunctions extends Object
Modifier and Type | Class and Description |
---|---|
static class |
XMLSystemFunctions.ExtendedWriter
An extension to the standard writer to allow for
direct inclusion of large values by reference rather than by copy
|
static class |
XMLSystemFunctions.XmlConcat |
Constructor and Description |
---|
XMLSystemFunctions() |
Modifier and Type | Method and Description |
---|---|
static Source |
convertToSource(Object value) |
static InputStreamReader |
getJsonReader(Blob json) |
static XMLOutputFactory |
getOutputFactory() |
static XMLOutputFactory |
getOutputFactory(boolean repairing) |
static SQLXML |
jsonToXml(CommandContext context,
String rootName,
Blob json) |
static SQLXML |
jsonToXml(CommandContext context,
String rootName,
Blob json,
boolean stream) |
static SQLXML |
jsonToXml(CommandContext context,
String rootName,
Clob json) |
static SQLXML |
jsonToXml(CommandContext context,
String rootName,
Clob json,
boolean stream) |
static SQLXMLImpl |
saveToBufferManager(BufferManager bufferMgr,
XMLTranslator translator,
CommandContext context)
This method saves the given XML object to the buffer manager's disk process
Documents less than the maxMemorySize will be held directly in memory
|
static Object |
serialize(XMLSerialize xs,
XMLType value) |
static XMLType |
xmlComment(String comment) |
static XMLType |
xmlConcat(CommandContext context,
XMLType xml,
Object... other) |
static XMLType |
xmlElement(CommandContext context,
String name,
Evaluator.NameValuePair<String>[] namespaces,
Evaluator.NameValuePair<?>[] attributes,
List<?> contents)
Basic support for xmlelement.
|
static XMLType |
xmlForest(CommandContext context,
Evaluator.NameValuePair[] namespaces,
Evaluator.NameValuePair[] values) |
static XMLType |
xmlPi(String name) |
static XMLType |
xmlPi(String name,
String content) |
static XMLType |
xmlText(String val) |
static ClobType |
xslTransform(CommandContext context,
Object xml,
Object styleSheet) |
public static XMLOutputFactory getOutputFactory() throws FactoryConfigurationError
FactoryConfigurationError
public static ClobType xslTransform(CommandContext context, Object xml, Object styleSheet) throws Exception
Exception
public static XMLType xmlForest(CommandContext context, Evaluator.NameValuePair[] namespaces, Evaluator.NameValuePair[] values) throws TeiidComponentException, TeiidProcessingException
public static XMLType xmlElement(CommandContext context, String name, Evaluator.NameValuePair<String>[] namespaces, Evaluator.NameValuePair<?>[] attributes, List<?> contents) throws TeiidComponentException, TeiidProcessingException
context
- name
- contents
- TeiidComponentException
TeiidProcessingException
public static XMLType xmlConcat(CommandContext context, XMLType xml, Object... other) throws TeiidProcessingException
TeiidProcessingException
public static XMLType xmlComment(String comment) throws FunctionExecutionException
FunctionExecutionException
public static Source convertToSource(Object value) throws TeiidProcessingException
TeiidProcessingException
public static SQLXML jsonToXml(CommandContext context, String rootName, Blob json) throws TeiidComponentException, TeiidProcessingException, SQLException, IOException
public static SQLXML jsonToXml(CommandContext context, String rootName, Blob json, boolean stream) throws TeiidComponentException, TeiidProcessingException, SQLException, IOException
public static InputStreamReader getJsonReader(Blob json) throws SQLException, IOException
SQLException
IOException
public static SQLXML jsonToXml(CommandContext context, String rootName, Clob json) throws TeiidComponentException, TeiidProcessingException, SQLException
public static SQLXML jsonToXml(CommandContext context, String rootName, Clob json, boolean stream) throws TeiidComponentException, TeiidProcessingException, SQLException
public static SQLXMLImpl saveToBufferManager(BufferManager bufferMgr, XMLTranslator translator, CommandContext context) throws TeiidComponentException, TeiidProcessingException
public static Object serialize(XMLSerialize xs, XMLType value) throws TransformationException
TransformationException
public static XMLOutputFactory getOutputFactory(boolean repairing)
@TeiidFunction(category="XML", nullOnNull=true) public static XMLType xmlText(String val) throws XMLStreamException, FactoryConfigurationError, IOException, TransformerException
Copyright © 2019. All rights reserved.