Class Subscriber


  • public class Subscriber
    extends java.lang.Object
    This class represents business objects Subscriber
    • Constructor Summary

      Constructors 
      Constructor Description
      Subscriber()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getConfirmed()
      Return true if user confirmed his subscription.
      java.sql.Timestamp getDateSubscription()
      Returns the date of the subscription
      java.lang.String getEmail()
      Returns the subscriber's email
      int getId()
      Returns the subscriber's identifier
      void setConfirmed​(boolean bConfirmed)
      Set to true if user confirmed his subscription
      void setDateSubscription​(java.sql.Timestamp dDateSubscription)
      Sets the subscription's date
      void setEmail​(java.lang.String strEmail)
      Sets the subscriber's email (in lower case )
      void setId​(int nId)
      Sets the subscriber's identifier
      • Methods inherited from class java.lang.Object

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

      • Subscriber

        public Subscriber()
    • Method Detail

      • getId

        public int getId()
        Returns the subscriber's identifier
        Returns:
        the subscriber's identifier
      • setId

        public void setId​(int nId)
        Sets the subscriber's identifier
        Parameters:
        nId - the subscriber's identifier
      • getEmail

        public java.lang.String getEmail()
        Returns the subscriber's email
        Returns:
        the subscriber's email
      • setEmail

        public void setEmail​(java.lang.String strEmail)
        Sets the subscriber's email (in lower case )
        Parameters:
        strEmail - the subscriber's email
      • getDateSubscription

        public java.sql.Timestamp getDateSubscription()
        Returns the date of the subscription
        Returns:
        the subscription's date
      • setDateSubscription

        public void setDateSubscription​(java.sql.Timestamp dDateSubscription)
        Sets the subscription's date
        Parameters:
        dDateSubscription - the subscription's date
      • getConfirmed

        public boolean getConfirmed()
        Return true if user confirmed his subscription.
        Returns:
        true if user confirmed his subscription, false otherwise
      • setConfirmed

        public void setConfirmed​(boolean bConfirmed)
        Set to true if user confirmed his subscription
        Parameters:
        bConfirmed - the new confirmed value.