接口 SqlXmlObjectMappingHandler

    • 方法详细资料

      • getXmlAsObject

        Object getXmlAsObject​(ResultSet rs,
                              String columnName)
                       throws SQLException
        Retrieve the given column as an object marshalled from the XML data retrieved from the given ResultSet.

        Works with an internal Object to XML Mapping implementation.

        参数:
        rs - the ResultSet to retrieve the content from
        columnName - the column name to use
        返回:
        the content as an Object, or null in case of SQL NULL
        抛出:
        SQLException - if thrown by JDBC methods
        另请参阅:
        ResultSet.getSQLXML(int)
      • getXmlAsObject

        Object getXmlAsObject​(ResultSet rs,
                              int columnIndex)
                       throws SQLException
        Retrieve the given column as an object marshalled from the XML data retrieved from the given ResultSet.

        Works with an internal Object to XML Mapping implementation.

        参数:
        rs - the ResultSet to retrieve the content from
        columnIndex - the column index to use
        返回:
        the content as an Object, or null in case of SQL NULL
        抛出:
        SQLException - if thrown by JDBC methods
        另请参阅:
        ResultSet.getSQLXML(int)
      • newMarshallingSqlXmlValue

        SqlXmlValue newMarshallingSqlXmlValue​(Object value)
        Get an instance of an SqlXmlValue implementation to be used together with the database specific implementation of this SqlXmlObjectMappingHandler.
        参数:
        value - the Object to be marshalled to XML
        返回:
        the implementation specific instance
        另请参阅:
        SqlXmlValue