Class DoubleColumnMapping

    • Constructor Detail

      • DoubleColumnMapping

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

      • initialize

        private void initialize()
      • setInt

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

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

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

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

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

        public double getDouble​(java.sql.ResultSet rs,
                                int param)
        Description copied from interface: ColumnMapping
        Obtains a value from resultSet at position specified by exprIndex.
        Specified by:
        getDouble in interface ColumnMapping
        Overrides:
        getDouble in class AbstractColumnMapping
        Parameters:
        rs - ResultSet
        param - the position of the value in the result
        Returns:
        the value
      • 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 AbstractColumnMapping
        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 AbstractColumnMapping
        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 AbstractColumnMapping
        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 AbstractColumnMapping
        Parameters:
        rs - ResultSet
        param - the position of the value in the result
        Returns:
        the value