Class MMessage

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

public class MMessage extends X_AD_Message implements ImmutablePOSupport
Message Model
Version:
$Id: MMessage.java,v 1.3 2006/07/30 00:54:54 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MMessage

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

      public MMessage(Properties ctx, int AD_Message_ID, String trxName)
      Standard Constructor
      Parameters:
      ctx - context
      AD_Message_ID - id
      trxName - transaction
    • MMessage

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

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

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

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

    • get

      public static MMessage get(String Value)
      Get Message (cached) (immutable)
      Parameters:
      Value - message value
      Returns:
      message
    • get

      public static MMessage get(Properties ctx, String Value)
      Get Message (cached) (immutable)
      Parameters:
      ctx - context
      Value - message value
      Returns:
      message
    • get

      public static MMessage get(Properties ctx, int AD_Message_ID)
      Get Message (cached) (immutable)
      Parameters:
      ctx - context
      AD_Message_ID - id
      Returns:
      message
    • getAD_Message_ID

      public static int getAD_Message_ID(String Value)
      Get Message ID from cache
      Parameters:
      Value - message value
      Returns:
      AD_Message_ID
    • getAD_Message_ID

      public static int getAD_Message_ID(Properties ctx, String Value)
      Get Message ID from cache
      Parameters:
      ctx - context
      Value - message value
      Returns:
      AD_Message_ID
    • markImmutable

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

      protected boolean beforeSave(boolean newRecord)
      Before Save
      Overrides:
      beforeSave in class PO
      Parameters:
      newRecord -
      Returns:
      true if save