Class SQLErrorCodeReader


  • public class SQLErrorCodeReader
    extends java.lang.Object
    Parses XML content of SQL Error State codes to populate error codes for a given Database Dictionary.
    Author:
    Pinaki Poddar
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String ERROR_CODE_DELIMITER  
      static java.util.Map<java.lang.String,​java.lang.Integer> storeErrorTypes  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<java.lang.String> getDictionaries​(java.io.InputStream in)  
      void parse​(java.io.InputStream in, java.lang.String dictName, DBDictionary dict)
      Parses given stream of XML content for error codes of the given database dictionary name.
      • Methods inherited from class java.lang.Object

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

      • ERROR_CODE_DELIMITER

        public static final java.lang.String ERROR_CODE_DELIMITER
        See Also:
        Constant Field Values
      • storeErrorTypes

        public static final java.util.Map<java.lang.String,​java.lang.Integer> storeErrorTypes
    • Constructor Detail

      • SQLErrorCodeReader

        public SQLErrorCodeReader()
    • Method Detail

      • getDictionaries

        public java.util.List<java.lang.String> getDictionaries​(java.io.InputStream in)
      • parse

        public void parse​(java.io.InputStream in,
                          java.lang.String dictName,
                          DBDictionary dict)
        Parses given stream of XML content for error codes of the given database dictionary name. Populates the given dictionary with the error codes.