Class MZoomCondition

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

public class MZoomCondition extends X_AD_ZoomCondition implements ImmutablePOSupport
Zoom Condition model
Version:
$Id: MZoomCondition.java
Author:
Nicolas Micoud - TGI
See Also:
  • Constructor Details

    • MZoomCondition

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

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

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

      public MZoomCondition(MZoomCondition copy)
      Parameters:
      copy -
    • MZoomCondition

      public MZoomCondition(Properties ctx, MZoomCondition copy)
      Parameters:
      ctx -
      copy -
    • MZoomCondition

      public MZoomCondition(Properties ctx, MZoomCondition copy, String trxName)
      Parameters:
      ctx -
      copy -
      trxName -
  • Method Details

    • getConditions

      public static MZoomCondition[] getConditions(int AD_Table_ID)
      Retrieve zoom condition record by AD_Table_ID
      Parameters:
      AD_Table_ID -
      Returns:
      array of zoom condition record
    • findZoomWindow

      public static int findZoomWindow(MQuery query)
      find first AD_Window_ID from matching zoom condition record
      Parameters:
      query -
      Returns:
      AD_Window_ID
    • findZoomWindowByWindowId

      public static int findZoomWindowByWindowId(int AD_Window_ID, MQuery query)
    • findZoomWindowByWindowId

      public static int findZoomWindowByWindowId(int AD_Window_ID, MQuery query, int windowNo)
      find first AD_Window_ID from matching zoom condition record
      Parameters:
      AD_Window_ID - Zoom AD_Window_ID from MLookup
      query -
      Returns:
      AD_Window_ID
    • findZoomWindowByTableId

      public static int findZoomWindowByTableId(int AD_Table_ID, int recordID)
    • findZoomWindowByTableId

      public static int findZoomWindowByTableId(int AD_Table_ID, int recordID, int windowNo)
      find AD_Window_ID from matching zoom condition record
      Parameters:
      AD_Table_ID -
      recordID -
      Returns:
      AD_Window_ID
    • findZoomWindowByTableUU

      public static int findZoomWindowByTableUU(int AD_Table_ID, String recordUU, int windowNo)
      find AD_Window_ID from matching zoom condition record
      Parameters:
      AD_Table_ID -
      recordUU -
      Returns:
      AD_Window_ID
    • findZoomWindowByTableIdOrUU

      public static int findZoomWindowByTableIdOrUU(int AD_Table_ID, int recordID, String recordUU, int windowNo)
      find AD_Window_ID from matching zoom condition record
      Parameters:
      AD_Table_ID -
      recordID -
      recordUU -
      Returns:
      AD_Window_ID
    • evaluate

      public boolean evaluate(String whereClause)
      Parameters:
      whereClause - filter to get record for evaluation
      Returns:
      true if the condition is empty (applies for all records) or if the condition is true for the record
    • markImmutable

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

      protected boolean beforeSave(boolean newRecord)
      Before Save
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord -
      Returns:
      true if ok