Class MPreference

All Implemented Interfaces:
Serializable, Cloneable, Comparator<Object>, I_AD_Preference, I_Persistent, Evaluatee
Direct Known Subclasses:
MUserPreference

public class MPreference extends X_AD_Preference
Preference Model
Version:
$Id: MPreference.java,v 1.3 2006/07/30 00:51:03 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Field Details

    • NULL

      public static String NULL
      Null Indicator
  • Constructor Details

    • MPreference

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

      public MPreference(Properties ctx, int AD_Preference_ID, String trxName)
      Parameters:
      ctx - ctx
      AD_Preference_ID - id
      trxName - transaction
    • MPreference

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

      public MPreference(Properties ctx, String Attribute, String Value, String trxName)
      Parameters:
      ctx - context
      Attribute - attribute
      Value - value
      trxName - trx
  • Method Details

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

      public String toString()
      String Representation
      Overrides:
      toString in class X_AD_Preference
      Returns:
      info