Class MTableScriptValidator

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

public class MTableScriptValidator extends X_AD_Table_ScriptValidator implements ImmutablePOSupport
Script validator for Table
Version:
$Id: MTableScriptValidator.java
Author:
Carlos Ruiz, Teo Sarca, SC ARHIPAC SERVICE SRL
  • BF [ 1885496 ] Performance NEEDS
  • BF [ 2819654 ] Table Script Validator SeqNo is not set https://sourceforge.net/p/adempiere/bugs/1978/
  • See Also:
    • Constructor Details

      • MTableScriptValidator

        public MTableScriptValidator(Properties ctx, String AD_Table_ScriptValidator_UU, String trxName)
        UUID based Constructor
        Parameters:
        ctx - Context
        AD_Table_ScriptValidator_UU - UUID key
        trxName - Transaction
      • 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
      • MTableScriptValidator

        public MTableScriptValidator(MTableScriptValidator copy)
        Copy constructor
        Parameters:
        copy -
      • MTableScriptValidator

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

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

      • 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 (EVENTMODELVALIDATOR_*)
        Returns:
        list 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
      • toString

        public String toString()
        Description copied from class: PO
        String representation
        Overrides:
        toString in class X_AD_Table_ScriptValidator
        Returns:
        String representation
      • markImmutable

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