Class BigIntColumnMapping

    • Constructor Detail

      • BigIntColumnMapping

        public BigIntColumnMapping​(JavaTypeMapping mapping,
                                   RDBMSStoreManager storeMgr,
                                   Column col)
        Constructor.
        Parameters:
        mapping - 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
      • setString

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

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

        public void setObject​(java.sql.PreparedStatement ps,
                              int param,
                              java.lang.Object value)
        Setter for a parameter in a PreparedStatement
        Specified by:
        setObject in interface ColumnMapping
        Overrides:
        setObject in class AbstractColumnMapping
        Parameters:
        ps - The PreparedStatement
        param - The parameter number to set
        value - The value to set it to.
      • getObject

        public java.lang.Object getObject​(java.sql.ResultSet rs,
                                          int param)
        Method to retrieve a Big int from a ResultSet.
        Specified by:
        getObject in interface ColumnMapping
        Overrides:
        getObject in class AbstractColumnMapping
        Parameters:
        rs - ResultSet
        param - The Parameter number in the result set
        Returns:
        The BIGINT object