Class MRefList

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_Ref_List, I_Persistent, Evaluatee, ImmutablePOSupport

public class MRefList extends X_AD_Ref_List implements ImmutablePOSupport
Version:
$Id: MRefList.java,v 1.3 2006/07/30 00:58:18 jjanke Exp $
Author:
Jorg Janke, Teo Sarca, www.arhipac.ro
  • BF [ 1748449 ] Info Account - Posting Type is not translated
  • FR [ 2694043 ] Query. first/firstOnly usage best practice
  • See Also:
    • Constructor Details

      • MRefList

        public MRefList(Properties ctx, MRefList copy)
        Copy constructor
        Parameters:
        ctx -
        copy -
      • MRefList

        public MRefList(Properties ctx, MRefList copy, String trxName)
        Copy constructor
        Parameters:
        ctx -
        copy -
        trxName -
      • MRefList

        public MRefList(Properties ctx, String AD_Ref_List_UU, String trxName)
        UUID based Constructor
        Parameters:
        ctx - Context
        AD_Ref_List_UU - UUID key
        trxName - Transaction
      • MRefList

        public MRefList(Properties ctx, int AD_Ref_List_ID, String trxName)
        Parameters:
        ctx - context
        AD_Ref_List_ID - id
        trxName - transaction
      • MRefList

        public MRefList(Properties ctx, ResultSet rs, String trxName)
        Load Constructor
        Parameters:
        ctx - context
        rs - result
        trxName - transaction
    • Method Details

      • get

        public static MRefList get(Properties ctx, int AD_Reference_ID, String Value, String trxName)
        Get Reference List
        Parameters:
        ctx - context
        AD_Reference_ID - reference
        Value - value
        trxName - transaction
        Returns:
        List or null
      • getListName

        public static String getListName(Properties ctx, int AD_Reference_ID, String Value)
        Get Reference List Value Name (cached)
        Parameters:
        ctx - context
        AD_Reference_ID - reference
        Value - value
        Returns:
        List or ""
      • getListName

        public static String getListName(String AD_Language, int AD_Reference_ID, String Value)
        Get Reference List Name for Value (cached)
        Parameters:
        AD_Language -
        AD_Reference_ID - reference
        Value - list value
        Returns:
        List Name or ""
      • getListDescription

        public static String getListDescription(Properties ctx, String ListName, String Value)
        Get Reference List Description (cached) for Value
        Parameters:
        ctx - context
        ListName - list name
        Value - list value
        Returns:
        List Description or null
      • getListDescription

        public static String getListDescription(String AD_Language, String ListName, String Value)
        Get Reference List Description (cached) for Value
        Parameters:
        AD_Language -
        ListName - list name
        Value - list value
        Returns:
        List Description or null
      • getList

        public static ValueNamePair[] getList(Properties ctx, int AD_Reference_ID, boolean optional)
        Get Reference List (translated name) entries
        Parameters:
        ctx - context
        AD_Reference_ID - reference
        optional - if true add ValueNamePair("","") to list entries return
        Returns:
        Array of ValueNamePair(list value, translated list name) or null
      • getList

        public static ValueNamePair[] getList(Properties ctx, int AD_Reference_ID, boolean optional, String orderBy)
        Get Reference List (translated name) entries
        Parameters:
        ctx - context
        AD_Reference_ID - reference
        optional - if true add ValueNamePair("","") to list entries return
        orderBy - (Null,"" or N)-Name, V-Value, D-Default (IsOrderByValue)
        Returns:
        Array of ValueNamePair(list value, translated list name) or null
      • getList

        public static ValueNamePair[] getList(Properties ctx, int AD_Reference_ID, boolean optional, String additionalWhereClause, String orderBy)
        Get Reference List (translated name) entries
        Parameters:
        ctx - context
        AD_Reference_ID - reference
        optional - if true add ValueNamePair("","") to list entries return
        additionalWhereClause -
        orderBy - (Null,"" or N)-Name, V-Value, D-Default (IsOrderByValue)
        Returns:
        Array of ValueNamePair(list value, translated list name) or null
      • toString

        public String toString()
        String Representation
        Overrides:
        toString in class X_AD_Ref_List
        Returns:
        Name
      • markImmutable

        public PO markImmutable()
        Description copied from interface: ImmutablePOSupport
        mark PO as immutable
        Specified by:
        markImmutable in interface ImmutablePOSupport
        Returns:
        PO