Class XmlStreamQueryWriter

java.lang.Object
xyz.cofe.sql.stream.DataStreamAbstract
xyz.cofe.sql.stream.XmlStreamQueryWriter
All Implemented Interfaces:
QueryWriter

public class XmlStreamQueryWriter
extends DataStreamAbstract
implements QueryWriter
Author:
user
  • Field Details

    • out

      protected xyz.cofe.xml.FormatXMLWriter out
    • columnsLabel

      protected java.util.Map<java.lang.Integer,​java.lang.String> columnsLabel
    • messages

      protected java.util.List<java.sql.SQLWarning> messages
  • Constructor Details

  • Method Details

    • begin

      public void begin()
      Description copied from interface: QueryWriter
      Начало записи
      Specified by:
      begin in interface QueryWriter
    • writeBegin

      protected void writeBegin() throws javax.xml.stream.XMLStreamException
      Throws:
      javax.xml.stream.XMLStreamException
    • writeEnd

      protected void writeEnd() throws javax.xml.stream.XMLStreamException
      Throws:
      javax.xml.stream.XMLStreamException
    • writeResultSet

      public void writeResultSet​(java.sql.ResultSet rs, int rsIndex)
      Description copied from interface: QueryWriter
      Запись ResultSet
      Specified by:
      writeResultSet in interface QueryWriter
      Parameters:
      rs - набор данных
      rsIndex - номер набора данных
    • writeResultSet

      protected void writeResultSet​(java.lang.String tag, java.sql.ResultSet rs, int rsIndex) throws javax.xml.stream.XMLStreamException, java.sql.SQLException
      Throws:
      javax.xml.stream.XMLStreamException
      java.sql.SQLException
    • writeResultSetMeta

      protected void writeResultSetMeta​(java.sql.ResultSetMetaData meta) throws javax.xml.stream.XMLStreamException, java.sql.SQLException
      Throws:
      javax.xml.stream.XMLStreamException
      java.sql.SQLException
    • writeResultSetMeta

      protected void writeResultSetMeta​(java.sql.ResultSetMetaData meta, int colnum) throws javax.xml.stream.XMLStreamException, java.sql.SQLException
      Throws:
      javax.xml.stream.XMLStreamException
      java.sql.SQLException
    • writeResultSetData

      protected void writeResultSetData​(java.sql.ResultSet rs) throws javax.xml.stream.XMLStreamException, java.sql.SQLException
      Throws:
      javax.xml.stream.XMLStreamException
      java.sql.SQLException
    • writeRow

      protected void writeRow​(java.sql.ResultSet rs, int rowIndex, int columnCount) throws javax.xml.stream.XMLStreamException, java.sql.SQLException
      Throws:
      javax.xml.stream.XMLStreamException
      java.sql.SQLException
    • writeCell

      protected void writeCell​(java.lang.Object val, int rowIndex, int columnIndex, java.sql.ResultSet rs) throws javax.xml.stream.XMLStreamException, java.sql.SQLException
      Throws:
      javax.xml.stream.XMLStreamException
      java.sql.SQLException
    • writeGeneratedKeys

      public void writeGeneratedKeys​(java.sql.ResultSet rs)
      Description copied from interface: QueryWriter
      Записть сгенерированных ключей
      Specified by:
      writeGeneratedKeys in interface QueryWriter
      Parameters:
      rs - ключи
    • writeUpdateCount

      public void writeUpdateCount​(int count)
      Description copied from interface: QueryWriter
      Запись счетчика обновленных строк
      Specified by:
      writeUpdateCount in interface QueryWriter
      Parameters:
      count - кол-во строк
    • writeMessage

      public void writeMessage​(java.sql.SQLWarning message)
      Description copied from interface: QueryWriter
      Запись сообщения
      Specified by:
      writeMessage in interface QueryWriter
      Parameters:
      message - сообщение
    • writeMessages

      protected void writeMessages​(java.util.List<java.sql.SQLWarning> messages)
    • postWriteMessage

      protected void postWriteMessage​(java.sql.SQLWarning message) throws javax.xml.stream.XMLStreamException
      Throws:
      javax.xml.stream.XMLStreamException
    • end

      public void end()
      Description copied from interface: QueryWriter
      Конец записи
      Specified by:
      end in interface QueryWriter
    • writeError

      public void writeError​(java.lang.Throwable err)
      Description copied from interface: QueryWriter
      Запись ошибки
      Specified by:
      writeError in interface QueryWriter
      Parameters:
      err - ошибка