Class TinyIntColumnMapping

    • Method Detail

      • initialize

        private void initialize()
      • getTypeInfo

        public SQLTypeInfo getTypeInfo()
        Description copied from class: AbstractColumnMapping
        Accessor for the (SQL) type info for this datastore type. Finds the SQLTypeInfo using the JDBC Type for this mapping. Override if you want a different method.
        Overrides:
        getTypeInfo in class AbstractColumnMapping
        Returns:
        The type info
      • setBoolean

        public void setBoolean​(java.sql.PreparedStatement ps,
                               int param,
                               boolean value)
        Setter for when we are storing a boolean field as a TINYINT.
        Specified by:
        setBoolean in interface ColumnMapping
        Overrides:
        setBoolean in class AbstractColumnMapping
        Parameters:
        ps - Prepared Statement
        param - Number of the parameter in the statement
        value - The boolean value
      • getBoolean

        public boolean getBoolean​(java.sql.ResultSet rs,
                                  int param)
        Getter for when we are storing a boolean field as a TINYINT.
        Specified by:
        getBoolean in interface ColumnMapping
        Overrides:
        getBoolean in class AbstractColumnMapping
        Parameters:
        rs - Result Set from which to get the boolean
        param - Number of the parameter in the statement
        Returns:
        The boolean 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
      • setByte

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

        public byte getByte​(java.sql.ResultSet rs,
                            int param)
        Description copied from interface: ColumnMapping
        Obtains a value from resultSet at position specified by exprIndex.
        Specified by:
        getByte in interface ColumnMapping
        Overrides:
        getByte 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