Class XMLInteraction

java.lang.Object
org.eclipse.persistence.internal.databaseaccess.DatasourceCall
All Implemented Interfaces:
Serializable, 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.
See Also:
Author:
James
  • Field Details

    • inputRootElementName

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

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

    • XMLInteraction

      public XMLInteraction()
      Default constructor.
  • Method Details

    • getInputRootElementName

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

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

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

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

      public void prepare(org.eclipse.persistence.internal.sessions.AbstractSession session)
      Set the default record name from the descriptor.
      Overrides:
      prepare in class EISInteraction
    • createInputRecord

      public jakarta.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 Element createInputDOM(EISAccessor accessor)
      Create a DOM for this interaction. Convert the database row or arguments into an XML DOM tree.
    • buildRow

      public org.eclipse.persistence.internal.sessions.AbstractRecord buildRow(jakarta.resource.cci.Record record, EISAccessor accessor)
      Build a database row from the record returned from the interaction.
      Overrides:
      buildRow in class MappedInteraction
    • buildRows

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

      public String getLogString(org.eclipse.persistence.internal.databaseaccess.Accessor accessor)
      Return the string for logging purposes.
      Specified by:
      getLogString in interface Call
      Overrides:
      getLogString in class EISInteraction
    • createField

      protected org.eclipse.persistence.internal.helper.DatabaseField createField(String fieldName)
      INTERNAL:
      Overrides:
      createField in class org.eclipse.persistence.internal.databaseaccess.DatasourceCall
    • createXMLRecord

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