Class FloatColumnMapping

    • Constructor Detail

      • FloatColumnMapping

        public FloatColumnMapping​(JavaTypeMapping mapping,
                                  RDBMSStoreManager storeMgr,
                                  Column col)
        Constructor.
        Parameters:
        mapping - The java type mapping
        storeMgr - Store Manager
        col - Column
    • Method Detail

      • getFloat

        public float getFloat​(java.sql.ResultSet rs,
                              int param)
        Description copied from interface: ColumnMapping
        Obtains a value from resultSet at position specified by exprIndex.
        Specified by:
        getFloat in interface ColumnMapping
        Overrides:
        getFloat in class DoubleColumnMapping
        Parameters:
        rs - ResultSet
        param - the position of the value in the result
        Returns:
        the value
      • setFloat

        public void setFloat​(java.sql.PreparedStatement ps,
                             int param,
                             float value)
        Description copied from interface: ColumnMapping
        Sets a value into ps at position specified by paramIndex.
        Specified by:
        setFloat in interface ColumnMapping
        Overrides:
        setFloat in class DoubleColumnMapping
        Parameters:
        ps - PreparedStatement
        param - the position of the value in the statement
        value - the value
      • setObject

        public void setObject​(java.sql.PreparedStatement ps,
                              int param,
                              java.lang.Object value)
        Description copied from interface: ColumnMapping
        Sets a value into ps at position specified by paramIndex.
        Specified by:
        setObject in interface ColumnMapping
        Overrides:
        setObject in class DoubleColumnMapping
        Parameters:
        ps - PreparedStatement
        param - the position of the value in the statement
        value - the value
      • getObject

        public java.lang.Object getObject​(java.sql.ResultSet rs,
                                          int param)
        Description copied from interface: ColumnMapping
        Obtains a value from resultSet at position specified by exprIndex.
        Specified by:
        getObject in interface ColumnMapping
        Overrides:
        getObject in class DoubleColumnMapping
        Parameters:
        rs - ResultSet
        param - the position of the value in the result
        Returns:
        the value