Class EntitySaxReader

  • All Implemented Interfaces:
    org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

    public class EntitySaxReader
    extends org.xml.sax.helpers.DefaultHandler
    SAX XML Parser Content Handler for Entity Engine XML files
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void characters​(char[] values, int offset, int count)  
      void endElement​(java.lang.String namespaceURI, java.lang.String localName, java.lang.String fullNameString)  
      void error​(org.xml.sax.SAXParseException exception)  
      void fatalError​(org.xml.sax.SAXParseException exception)  
      java.util.List<java.lang.Object> getMessageList()
      Gets message list.
      int getTransactionTimeout()
      Gets transaction timeout.
      long parse​(java.lang.String content)
      Parse long.
      long parse​(java.net.URL location)
      Parse long.
      void setCheckDataOnly​(boolean checkDataOnly)
      Sets check data only.
      void setContinueOnFail​(boolean continueOnFail)
      Sets continue on fail.
      void setCreateDummyFks​(boolean createDummyFks)
      Sets create dummy fks.
      void setDisableEeca​(boolean disableEeca)
      Sets disable eeca.
      void setDocumentLocator​(org.xml.sax.Locator locator)  
      void setMaintainTxStamps​(boolean maintainTxStamps)
      Sets maintain tx stamps.
      void setPlaceholderValues​(java.util.Map<java.lang.String,​java.lang.Object> placeholderValues)
      Sets placeholder values.
      void setTransactionTimeout​(int transactionTimeout)
      Sets transaction timeout.
      void setUseTryInsertMethod​(boolean value)
      Sets use try insert method.
      void startElement​(java.lang.String namepsaceURI, java.lang.String localName, java.lang.String fullNameString, org.xml.sax.Attributes attributes)  
      void warning​(org.xml.sax.SAXParseException exception)  
      • Methods inherited from class org.xml.sax.helpers.DefaultHandler

        endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EntitySaxReader

        protected EntitySaxReader()
      • EntitySaxReader

        public EntitySaxReader​(Delegator delegator,
                               int transactionTimeout)
      • EntitySaxReader

        public EntitySaxReader​(Delegator delegator)
    • Method Detail

      • getTransactionTimeout

        public int getTransactionTimeout()
        Gets transaction timeout.
        Returns:
        the transaction timeout
      • setUseTryInsertMethod

        public void setUseTryInsertMethod​(boolean value)
        Sets use try insert method.
        Parameters:
        value - the value
      • setTransactionTimeout

        public void setTransactionTimeout​(int transactionTimeout)
                                   throws GenericTransactionException
        Sets transaction timeout.
        Parameters:
        transactionTimeout - the transaction timeout
        Throws:
        GenericTransactionException - the generic transaction exception
      • setMaintainTxStamps

        public void setMaintainTxStamps​(boolean maintainTxStamps)
        Sets maintain tx stamps.
        Parameters:
        maintainTxStamps - the maintain tx stamps
      • setCreateDummyFks

        public void setCreateDummyFks​(boolean createDummyFks)
        Sets create dummy fks.
        Parameters:
        createDummyFks - the create dummy fks
      • setCheckDataOnly

        public void setCheckDataOnly​(boolean checkDataOnly)
        Sets check data only.
        Parameters:
        checkDataOnly - the check data only
      • setContinueOnFail

        public void setContinueOnFail​(boolean continueOnFail)
        Sets continue on fail.
        Parameters:
        continueOnFail - the continue on fail
      • setPlaceholderValues

        public void setPlaceholderValues​(java.util.Map<java.lang.String,​java.lang.Object> placeholderValues)
        Sets placeholder values.
        Parameters:
        placeholderValues - the placeholder values
      • getMessageList

        public java.util.List<java.lang.Object> getMessageList()
        Gets message list.
        Returns:
        the message list
      • setDisableEeca

        public void setDisableEeca​(boolean disableEeca)
        Sets disable eeca.
        Parameters:
        disableEeca - the disable eeca
      • parse

        public long parse​(java.lang.String content)
                   throws org.xml.sax.SAXException,
                          java.io.IOException
        Parse long.
        Parameters:
        content - the content
        Returns:
        the long
        Throws:
        org.xml.sax.SAXException - the sax exception
        java.io.IOException - the io exception
      • parse

        public long parse​(java.net.URL location)
                   throws org.xml.sax.SAXException,
                          java.io.IOException
        Parse long.
        Parameters:
        location - the location
        Returns:
        the long
        Throws:
        org.xml.sax.SAXException - the sax exception
        java.io.IOException - the io exception
      • characters

        public void characters​(char[] values,
                               int offset,
                               int count)
                        throws org.xml.sax.SAXException
        Specified by:
        characters in interface org.xml.sax.ContentHandler
        Overrides:
        characters in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException
      • endElement

        public void endElement​(java.lang.String namespaceURI,
                               java.lang.String localName,
                               java.lang.String fullNameString)
                        throws org.xml.sax.SAXException
        Specified by:
        endElement in interface org.xml.sax.ContentHandler
        Overrides:
        endElement in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException
      • setDocumentLocator

        public void setDocumentLocator​(org.xml.sax.Locator locator)
        Specified by:
        setDocumentLocator in interface org.xml.sax.ContentHandler
        Overrides:
        setDocumentLocator in class org.xml.sax.helpers.DefaultHandler
      • startElement

        public void startElement​(java.lang.String namepsaceURI,
                                 java.lang.String localName,
                                 java.lang.String fullNameString,
                                 org.xml.sax.Attributes attributes)
                          throws org.xml.sax.SAXException
        Specified by:
        startElement in interface org.xml.sax.ContentHandler
        Overrides:
        startElement in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException
      • error

        public void error​(org.xml.sax.SAXParseException exception)
                   throws org.xml.sax.SAXException
        Specified by:
        error in interface org.xml.sax.ErrorHandler
        Overrides:
        error in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException
      • fatalError

        public void fatalError​(org.xml.sax.SAXParseException exception)
                        throws org.xml.sax.SAXException
        Specified by:
        fatalError in interface org.xml.sax.ErrorHandler
        Overrides:
        fatalError in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException
      • warning

        public void warning​(org.xml.sax.SAXParseException exception)
                     throws org.xml.sax.SAXException
        Specified by:
        warning in interface org.xml.sax.ErrorHandler
        Overrides:
        warning in class org.xml.sax.helpers.DefaultHandler
        Throws:
        org.xml.sax.SAXException