Class XMLInteraction

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, Call
    Direct Known Subclasses:
    XQueryInteraction

    public class XMLInteraction
    extends MappedInteraction
    Defines the specification for a call to a JCA interaction that uses XML. Builds the input and output XML records from the arguments. This extends MappedInteraction to allow for mapped style of argument input and output.
    Since:
    OracleAS TopLink 10g (10.0.3)
    Author:
    James
    See Also:
    Serialized Form
    • Field Detail

      • inputRootElementName

        protected java.lang.String inputRootElementName
        The root element name to use for the input DOM.
      • outputRootElementName

        protected java.lang.String outputRootElementName
        The root element name to use for the output DOM.
    • Constructor Detail

      • XMLInteraction

        public XMLInteraction()
        Default constructor.
    • Method Detail

      • getInputRootElementName

        public java.lang.String getInputRootElementName()
        PUBLIC: Return the root element name to use for the input DOM.
      • setInputRootElementName

        public void setInputRootElementName​(java.lang.String inputRootElementName)
        PUBLIC: Set the root element name to use for the input DOM.
      • getOutputRootElementName

        public java.lang.String getOutputRootElementName()
        PUBLIC: Return the root element name to use for the output DOM.
      • setOutputRootElementName

        public void setOutputRootElementName​(java.lang.String outputRootElementName)
        PUBLIC: Set the root element name to use for the output DOM.
      • createInputRecord

        public javax.resource.cci.Record createInputRecord​(EISAccessor accessor)
        Create a DOM input record for this interaction. Convert the database row or arguments into an XML DOM tree.
        Overrides:
        createInputRecord in class MappedInteraction
      • createInputDOM

        public org.w3c.dom.Element createInputDOM​(EISAccessor accessor)
        Create a DOM for this interaction. Convert the database row or arguments into an XML DOM tree.
      • buildRows

        public java.util.Vector buildRows​(javax.resource.cci.Record record,
                                          EISAccessor accessor)
        Build a collection of database rows from the Record returned from the interaction.
        Overrides:
        buildRows in class EISInteraction
      • createXMLRecord

        protected XMLRecord createXMLRecord​(java.lang.String rootName)
        INTERNAL: Use the createRecord method on ObjectBuilder in case the root element is namespace qualified