Package org.h2.value

Class ValueToObjectConverter2


  • public final class ValueToObjectConverter2
    extends TraceObject
    Data type conversion methods between values and Java objects to use on the server side on H2 only.
    • Constructor Detail

      • ValueToObjectConverter2

        private ValueToObjectConverter2()
    • Method Detail

      • classToType

        public static TypeInfo classToType​(java.lang.Class<?> clazz)
        Get the type information for the given Java class.
        Parameters:
        clazz - the Java class
        Returns:
        the value type
      • readValue

        public static Value readValue​(Session session,
                                      java.sql.ResultSet rs,
                                      int columnIndex,
                                      int type)
        Read a value from the given result set.
        Parameters:
        session - the session
        rs - the result set
        columnIndex - the column index (1-based)
        type - the data type
        Returns:
        the value
      • readValueOther

        private static Value readValueOther​(Session session,
                                            java.sql.ResultSet rs,
                                            int columnIndex,
                                            int type)
                                     throws java.sql.SQLException
        Throws:
        java.sql.SQLException