Class MInterestArea

    • Constructor Detail

      • 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)
        Parameters:
        copy -
    • Method Detail

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

        public void setSubscriptionInfo​(int AD_User_ID)
        Set Subscription info "constructor". Create inactive Subscription
        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