Class JsonSqlInput

    • Method Detail

      • getInput

        public com.fasterxml.jackson.databind.JsonNode getInput()
      • getText

        public String getText()
      • readTimestamp

        public Timestamp readTimestamp​(TimeZone tz)
                                throws SQLException
        Description copied from interface: SFSqlInput
        Reads the next attribute in the stream and returns it as a java.sql.Timestamp object.
        Parameters:
        tz - timezone to consider.
        Returns:
        the attribute; if the value is SQL NULL, returns null
        Throws:
        SQLException - if a database access error occurs
      • readObject

        public <T> T readObject​(Class<T> type,
                                TimeZone tz)
                         throws SQLException
        Description copied from interface: SFSqlInput
        Reads the next attribute in the stream and returns it as a Object object.
        Type Parameters:
        T - the type of the class modeled by this Class object
        Parameters:
        type - Class representing the Java data type to convert the attribute to.
        tz - timezone to consider.
        Returns:
        the attribute at the head of the stream as an Object in the Java programming language;null if the attribute is SQL NULL
        Throws:
        SQLException - if a database access error occurs
      • readList

        public <T> List<T> readList​(Class<T> type)
                             throws SQLException
        Description copied from interface: SFSqlInput
        Reads the next attribute in the stream and returns it as a List object.
        Type Parameters:
        T - the type of the class modeled by this Class object
        Parameters:
        type - Class representing the Java data type to convert the attribute to.
        Returns:
        the attribute at the head of the stream as an List in the Java programming language;null if the attribute is SQL NULL
        Throws:
        SQLException - if a database access error occurs
      • readArray

        public <T> T[] readArray​(Class<T> type)
                          throws SQLException
        Description copied from interface: SFSqlInput
        Reads the next attribute in the stream and returns it as a Array object.
        Type Parameters:
        T - the type of the class modeled by this Class object
        Parameters:
        type - Class representing the Java data type to convert the attribute to.
        Returns:
        the attribute at the head of the stream as an Array in the Java programming language;null if the attribute is SQL NULL
        Throws:
        SQLException - if a database access error occurs
      • readMap

        public <T> Map<String,​T> readMap​(Class<T> type)
                                        throws SQLException
        Description copied from interface: SFSqlInput
        Reads the next attribute in the stream and returns it as a Map object.
        Type Parameters:
        T - the type of the class modeled by this Class object
        Parameters:
        type - Class representing the Java data type to convert the attribute to.
        Returns:
        the attribute at the head of the stream as an Map in the Java programming language;null if the attribute is SQL NULL
        Throws:
        SQLException - if a database access error occurs