Class MInterestArea

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

public class MInterestArea extends X_R_InterestArea implements ImmutablePOSupport
Interest Area.
Version:
$Id: MInterestArea.java,v 1.3 2006/07/30 00:51:05 jjanke Exp $
Author:
Jorg Janke
See Also:
  • Constructor Details

    • MInterestArea

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

      public MInterestArea(Properties ctx, int R_InterestArea_ID, String trxName)
      Constructor
      Parameters:
      ctx - context
      R_InterestArea_ID - interest area
      trxName - transaction
    • MInterestArea

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

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

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

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

    • getAll

      public static MInterestArea[] getAll(Properties ctx)
      Get all active interest areas
      Parameters:
      ctx - context
      Returns:
      interest areas
    • get

      public static MInterestArea get(int R_InterestArea_ID)
      Get MInterestArea from Cache (immutable)
      Parameters:
      R_InterestArea_ID - id
      Returns:
      MInterestArea
    • get

      public static MInterestArea get(Properties ctx, int R_InterestArea_ID)
      Get MInterestArea from Cache (immutable)
      Parameters:
      ctx - context
      R_InterestArea_ID - id
      Returns:
      MInterestArea
    • getValue

      public String getValue()
      Get Value
      Specified by:
      getValue in interface I_R_InterestArea
      Overrides:
      getValue in class X_R_InterestArea
      Returns:
      value or name (if value is empty/null)
    • toString

      public String toString()
      String representation
      Overrides:
      toString in class X_R_InterestArea
      Returns:
      info
    • setSubscriptionInfo

      public void setSubscriptionInfo(int AD_User_ID)
      Set Subscription info. Create inactive MContactInterest if no existing MContactInterest for contact.
      Parameters:
      AD_User_ID - contact
    • setAD_User_ID

      public void setAD_User_ID(int AD_User_ID)
      Set AD_User_ID
      Parameters:
      AD_User_ID - user
    • getAD_User_ID

      public int getAD_User_ID()
      Get AD_User_ID
      Returns:
      user
    • getSubscribeDate

      public Timestamp getSubscribeDate()
      Get Subscribe Date
      Returns:
      subscribe date
    • getOptOutDate

      public Timestamp getOptOutDate()
      Get Opt Out Date
      Returns:
      opt-out date
    • isSubscribed

      public boolean isSubscribed()
      Is Subscribed
      Returns:
      true if sunscribed
    • markImmutable

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