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)
      Copy constructor
      Parameters:
      copy -
    • MZoomCondition

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

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

    • getConditions

      public static MZoomCondition[] getConditions(int AD_Table_ID)
      Get zoom condition records by AD_Table_ID
      Parameters:
      AD_Table_ID -
      Returns:
      array of zoom condition records
    • 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)
      Find zoom window id from query
      Parameters:
      AD_Window_ID -
      query -
      Returns:
      AD_Window_ID
    • findZoomWindowByWindowId

      public static int findZoomWindowByWindowId(int AD_Window_ID, MQuery query, int windowNo)
      Find zoom window id from AD_Window_ID and query
      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)
      Find zoom window id from table and record id
      Parameters:
      AD_Table_ID -
      recordID -
      Returns:
      AD_Window_ID
    • findZoomWindowByTableId

      public static int findZoomWindowByTableId(int AD_Table_ID, int recordID, int windowNo)
      Find zoom window id from table and record id
      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 table id and record uuid
      Parameters:
      AD_Table_ID -
      recordUU - record uuid
      Returns:
      AD_Window_ID
    • findZoomWindowByTableIdOrUU

      public static int findZoomWindowByTableIdOrUU(int AD_Table_ID, int recordID, String recordUU, int windowNo)
      Find AD_Window_ID from table id and record uuid/record id
      Parameters:
      AD_Table_ID -
      recordID - use when table is using id as key
      recordUU - use when table is using uuid as key
      Returns:
      AD_Window_ID
    • evaluate

      public boolean evaluate(String whereClause)
      Evaluate a where clause
      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 >= 1 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)
      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