Class MLabelAssignment

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

public class MLabelAssignment extends X_AD_LabelAssignment
Label Assignment Model
See Also:
  • Constructor Details

    • MLabelAssignment

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

      public MLabelAssignment(Properties ctx, int AD_LabelAssignment_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      AD_LabelAssignment_ID - id
      trxName - transaction
    • MLabelAssignment

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

    • hasAnyAssignment

      public static boolean hasAnyAssignment(int Table_ID, int Record_ID)
      Deprecated.
      Use MLabelAssignment#hasAnyAssignment(int, String) instead
      Check if record has any label assigned
      Parameters:
      Table_ID -
      Record_ID -
      Returns:
      true if record has any label assigned
    • hasAnyAssignment

      public static boolean hasAnyAssignment(int Table_ID, int Record_ID, String Record_UU)
      Check if record has any label assigned
      Parameters:
      Table_ID -
      Record_ID -
      Record_UU -
      Returns:
      true if record has any label assigned
    • hasLabelAssignment

      public static boolean hasLabelAssignment(int AD_Label_ID, int Table_ID, int Record_ID)
      Deprecated.
      Check if a label is assigned to a record
      Parameters:
      AD_Label_ID -
      Table_ID -
      Record_ID -
      Returns:
      true if label is assigned
    • hasLabelAssignment

      public static boolean hasLabelAssignment(int AD_Label_ID, int Table_ID, String Record_UU)
      Check if a label is assigned to a record
      Parameters:
      AD_Label_ID -
      Table_ID -
      Record_UU -
      Returns:
      true if label is assigned
    • beforeSave

      protected boolean beforeSave(boolean newRecord)
      Description copied from class: PO
      Called before Save for Pre-Save Operation.
      Default implementation is nop, to be implemented in sub-classes that needed it.
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord - true if it is a new record
      Returns:
      true if record can be saved