Class MTableScriptValidator

    • Constructor Detail

      • MTableScriptValidator

        public MTableScriptValidator​(Properties ctx,
                                     int AD_Table_ScriptValidator_ID,
                                     String trxName)
        Standard Constructor
        Parameters:
        ctx - context
        AD_Table_ScriptValidator_ID - id
        trxName - transaction
      • MTableScriptValidator

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

      • get

        public static MTableScriptValidator get​(int AD_Table_ScriptValidator_ID)
        Get table script validator from cache (immutable)
        Parameters:
        AD_Table_ScriptValidator_ID - id
        Returns:
        MTableScriptValidator
      • get

        public static MTableScriptValidator get​(Properties ctx,
                                                int AD_Table_ScriptValidator_ID)
        Get table script validator from cache (immutable)
        Parameters:
        ctx - context
        AD_Table_ScriptValidator_ID - id
        Returns:
        MTableScriptValidator
      • getModelValidatorRules

        public static List<MTableScriptValidator> getModelValidatorRules​(Properties ctx,
                                                                         int ad_table_id,
                                                                         String event)
        Get Model Validation Script Rules for a table/event
        Parameters:
        ctx - context
        ad_table_id - AD_Table_ID
        event - Event
        Returns:
        array of MTableScriptValidator or null if error or no validators found
      • beforeSave

        protected boolean beforeSave​(boolean newRecord)
        Description copied from class: PO
        Called before Save for Pre-Save Operation
        Overrides:
        beforeSave in class PO
        Parameters:
        newRecord - new record
        Returns:
        true if record can be saved