Class MColor

    • Constructor Detail

      • MColor

        public MColor​(Properties ctx,
                      int AD_Color_ID,
                      String trxName)
        Color Model
        Parameters:
        ctx - context
        AD_Color_ID - color
        trxName - transaction
    • Method Detail

      • loadSpecial

        protected Object loadSpecial​(ResultSet rs,
                                     int index)
                              throws SQLException
        Load Special data (images, ..). To be extended by sub-classes
        Overrides:
        loadSpecial in class PO
        Parameters:
        rs - result set
        index - zero based index
        Returns:
        value
        Throws:
        SQLException
      • saveNewSpecial

        protected String saveNewSpecial​(Object value,
                                        int index)
        Save Special Data. AD_Image_ID (Background)
        Overrides:
        saveNewSpecial in class PO
        Parameters:
        value - value
        index - index
        Returns:
        SQL code for INSERT VALUES clause
      • getColor

        public Color getColor​(boolean primary)
        Get Color
        Parameters:
        primary - true if primary false if secondary
        Returns:
        Color
      • getURL

        public String getURL​(int AD_Image_ID)
        Get URL from Image
        Parameters:
        AD_Image_ID - image
        Returns:
        URL as String or null