Class MPAttributeLookup

All Implemented Interfaces:
Serializable, ComboBoxModel<Object>, ListModel<Object>, MutableComboBoxModel<Object>

public class MPAttributeLookup extends Lookup implements Serializable
Product Attribute Lookup Model (no local lookup cache)
Version:
$Id: MPAttributeLookup.java,v 1.2 2006/07/30 00:58:38 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 1885260 ] MPAttributeLookup: throws SQLException sometimes
  • See Also:
    • Constructor Details

      • MPAttributeLookup

        public MPAttributeLookup(Properties ctx, int WindowNo)
        Constructor
        Parameters:
        ctx - context
        WindowNo - window no
    • Method Details

      • getDisplay

        public String getDisplay(Object key)
        Get display text for key value (direct from DB)
        Specified by:
        getDisplay in class Lookup
        Parameters:
        key - Location_ID
        Returns:
        Display text
      • containsKey

        public boolean containsKey(Object key)
        The Lookup contains the key (direct check against DB)
        Specified by:
        containsKey in class Lookup
        Parameters:
        key - Location_ID
        Returns:
        true if key exists
      • containsKeyNoDirect

        public boolean containsKeyNoDirect(Object key)
        Same as containsKey(Object) in this lookup implementation
        Specified by:
        containsKeyNoDirect in class Lookup
        Parameters:
        key - key
        Returns:
        true if contains key
      • get

        public NamePair get(Object key)
        Get KeyNamePair(M_AttributeSetInstance_ID, Description) of Key Value
        Specified by:
        get in class Lookup
        Parameters:
        key - key value (M_AttributeSetInstance_ID)
        Returns:
        KeyNamePair(M_AttributeSetInstance_ID, Description) or null
      • dispose

        public void dispose()
        Dispose
        Overrides:
        dispose in class Lookup
        See Also:
      • getData

        public ArrayList<Object> getData(boolean mandatory, boolean onlyValidated, boolean onlyActive, boolean temporary, boolean shortlist)
        Get list of lookup data - not implemented
        Specified by:
        getData in class Lookup
        Parameters:
        mandatory - mandatory
        onlyValidated - only validated
        onlyActive - only active
        temporary - force load for temporary display
        Returns:
        not implemented, always return null
      • getColumnName

        public String getColumnName()
        Description copied from class: Lookup
        Get underlying fully qualified Table.Column Name.
        Specified by:
        getColumnName in class Lookup
        Returns:
        "M_AttributeSetInstance_ID"