Interface BambooStAXMappingHelper<T,​I extends T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void exportXml​(@NotNull org.hibernate.Session session, @NotNull org.codehaus.staxmate.out.SMOutputElement outputElement, T object, ExportDetailsBean exportDetailsBean)
      Export object using StaxMate's SMOutputElement.
      @NotNull String getXmlRootNodeName()
      Returns local name of the XML parent node that will contain exported/imported object's properties
      I importXml​(@NotNull org.hibernate.Session session, @NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor)
      Import object using StaxMate's SMInputCursor.
    • Method Detail

      • getXmlRootNodeName

        @NotNull
        @NotNull String getXmlRootNodeName()
        Returns local name of the XML parent node that will contain exported/imported object's properties
        Returns:
        local name of the XML parent node
      • exportXml

        void exportXml​(@NotNull
                       @NotNull org.hibernate.Session session,
                       @NotNull
                       @NotNull org.codehaus.staxmate.out.SMOutputElement outputElement,
                       @NotNull
                       T object,
                       ExportDetailsBean exportDetailsBean)
                throws Exception
        Export object using StaxMate's SMOutputElement. It is responsibility of the exporter to create parent node for the object being exported.
        Parameters:
        session - Hibernate session object
        outputElement - an element at which exported should create a node to export data
        object - object being exported
        exportDetailsBean -
        Throws:
        Exception - when something went wrong
      • importXml

        I importXml​(@NotNull
                    @NotNull org.hibernate.Session session,
                    @NotNull
                    @NotNull org.codehaus.staxmate.in.SMInputCursor inputCursor)
             throws Exception
        Import object using StaxMate's SMInputCursor.
        Parameters:
        session - Hibernate session object
        inputCursor - a inputCursor that points to the parent node containing object properties
        Returns:
        an imported object
        Throws:
        Exception - when something went wrong