Class AbstractDataWriter

    • Field Detail

      • rowCounter

        protected int rowCounter
    • Constructor Detail

      • AbstractDataWriter

        public AbstractDataWriter()
        AbstractDataWriter
    • Method Detail

      • write

        protected abstract void write()
                               throws java.lang.Exception
        replace the write method from interface
        Throws:
        java.lang.Exception
      • getOptions

        protected final IRequestOptions getOptions()
        Returns:
        the options
      • getGenerator

        protected final ISqlGenerator getGenerator()
        Returns:
        the generator
      • getResultSet

        protected final java.sql.ResultSet getResultSet()
        Returns:
        the resultSet
      • getDuration

        protected final long getDuration()
        Returns:
        the execution duration
      • getRowCount

        public int getRowCount()
        Number of rows written
        Specified by:
        getRowCount in interface IDataWriter
        Returns:
        The number of rows written with last write
      • getResultSetMetaData

        protected final java.sql.ResultSetMetaData getResultSetMetaData()
        Returns:
        the resultSetMetaData
      • isEscapeXMLType

        protected boolean isEscapeXMLType​(int colNo)
        isXMLType
        Parameters:
        colNo -
        Returns:
        true if colNo should be XML escaped
      • setEscapeXMLType

        protected void setEscapeXMLType​(int colNo,
                                        boolean isXMLType)
        setXMLType
        Parameters:
        colNo -
        isXMLType -
      • getRequestDocRoot

        protected final org.w3c.dom.Element getRequestDocRoot()
        getRequestDocRoot
        Returns:
        the request-doc root