Class NewsletterTopic

  • All Implemented Interfaces:
    java.lang.Comparable<NewsletterTopic>

    public class NewsletterTopic
    extends java.lang.Object
    implements java.lang.Comparable<NewsletterTopic>
    Class to describe a topic of a newsletter. this class implements the Comparable interface.
    • Constructor Summary

      Constructors 
      Constructor Description
      NewsletterTopic()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(NewsletterTopic o)
      boolean equals​(java.lang.Object o)
      int getId()
      Get the id of this newsletter topic
      int getIdNewsletter()
      Get the id of the newsletter associated with this newsletter topic
      int getOrder()
      Get the order of the newsletter topic
      int getSection()
      Get the section of the topic
      java.lang.String getTitle()
      Get the title of this newsletter topic
      java.lang.String getTopicTypeCode()
      Get the name of the topic type of this newsletter topic
      java.lang.String getTopicTypeName()
      Get the name of the topic type associated with this topic
      int hashCode()
      void setId​(int nId)
      Set the id of this newsletter topic
      void setIdNewsletter​(int nIdNewsletter)
      Set the id of the newsletter associated with this newsletter topic
      void setOrder​(int nOrder)
      Set the order of the newsletter topic
      void setSection​(int nSection)
      Set the section of the topic
      void setTitle​(java.lang.String strTitle)
      Set the title of this newsletter topic
      void setTopicTypeCode​(java.lang.String strTopicTypeCode)
      Set the name of the topic type of this newsletter topic
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NewsletterTopic

        public NewsletterTopic()
    • Method Detail

      • getId

        public int getId()
        Get the id of this newsletter topic
        Returns:
        The id of this newsletter topic
      • setId

        public void setId​(int nId)
        Set the id of this newsletter topic
        Parameters:
        nId - The id of this newsletter topic
      • getIdNewsletter

        public int getIdNewsletter()
        Get the id of the newsletter associated with this newsletter topic
        Returns:
        the id of the newsletter associated with this newsletter topic
      • setIdNewsletter

        public void setIdNewsletter​(int nIdNewsletter)
        Set the id of the newsletter associated with this newsletter topic
        Parameters:
        nIdNewsletter - the id of the newsletter
      • getTopicTypeCode

        public java.lang.String getTopicTypeCode()
        Get the name of the topic type of this newsletter topic
        Returns:
        The name of the topic type of this newsletter topic
      • getTopicTypeName

        public java.lang.String getTopicTypeName()
        Get the name of the topic type associated with this topic
        Returns:
        the name of the topic type associated with this topic
      • setTopicTypeCode

        public void setTopicTypeCode​(java.lang.String strTopicTypeCode)
        Set the name of the topic type of this newsletter topic
        Parameters:
        strTopicTypeCode - The name of the topic type of this newsletter topic
      • getTitle

        public java.lang.String getTitle()
        Get the title of this newsletter topic
        Returns:
        The title of this newsletter topic
      • setTitle

        public void setTitle​(java.lang.String strTitle)
        Set the title of this newsletter topic
        Parameters:
        strTitle - The title of this newsletter topic
      • getOrder

        public int getOrder()
        Get the order of the newsletter topic
        Returns:
        The order of the newsletter topic
      • setOrder

        public void setOrder​(int nOrder)
        Set the order of the newsletter topic
        Parameters:
        nOrder - The order of the newsletter topic
      • getSection

        public int getSection()
        Get the section of the topic
        Returns:
        The section of the topic
      • setSection

        public void setSection​(int nSection)
        Set the section of the topic
        Parameters:
        nSection - The section of the topic
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object