Class IntegerColumnMapping

    • Constructor Detail

      • IntegerColumnMapping

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

      • initialize

        private void initialize()
      • setChar

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

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