Class MZoomCondition

    • Constructor Detail

      • 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 -
    • Method Detail

      • 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
      • 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