Class ResellerBase

  • All Implemented Interfaces:
    com.anaptecs.jeaf.core.api.ServiceObject, com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>, java.io.Serializable
    Direct Known Subclasses:
    Reseller

    @Valid
    public abstract class ResellerBase
    extends java.lang.Object
    implements com.anaptecs.jeaf.core.api.ServiceObject, com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>
    See Also:
    Serialized Form
    • Constructor Detail

      • ResellerBase

        protected ResellerBase()
        Default constructor is only intended to be used for deserialization by tools like Jackson for JSON. For "normal" object creation builder should be used instead.
      • ResellerBase

        protected ResellerBase​(ResellerBase.BuilderBase pBuilder)
        Initialize object using the passed builder.
        Parameters:
        pBuilder - Builder that should be used to initialize this object. The parameter must not be null.
    • Method Detail

      • getID

        public final com.anaptecs.jeaf.core.api.ServiceObjectID getID()
        Method returns the id of this object.
        Specified by:
        getID in interface com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>
        Returns:
        ServiceObjectID ID of this object. Since an object must not have an id the method may also return null.
      • getUnversionedID

        public final com.anaptecs.jeaf.core.api.ServiceObjectID getUnversionedID()
        Method returns the unversioned object id of this object.
        Specified by:
        getUnversionedID in interface com.anaptecs.jeaf.xfun.api.common.Identifiable<com.anaptecs.jeaf.core.api.ServiceObjectID>
        Returns:
        ServiceObjectID ID of this object. Since an object must not have an id the method may also return null.
      • getChannels

        public java.util.List<Channel> getChannels()
        Method returns association channels.
        Returns:
        List Value to which channels is set. The method never returns null and the returned collection is modifiable.
      • addToChannels

        public void addToChannels​(Channel pChannels)
        Method adds the passed object to channels.
        Parameters:
        pChannels - Object that should be added to channels. The parameter must not be null.
      • addToChannels

        public void addToChannels​(java.util.Collection<Channel> pChannels)
        Method adds all passed objects to channels.
        Parameters:
        pChannels - Collection with all objects that should be added to channels. The parameter must not be null.
      • removeFromChannels

        public void removeFromChannels​(Channel pChannels)
        Method removes the passed object from channels.
        Parameters:
        pChannels - Object that should be removed from channels. The parameter must not be null.
      • clearChannels

        public void clearChannels()
        Method removes all objects from channels.
      • getProducts

        public java.util.Set<Product> getProducts()
        Method returns association products.
        Returns:
        Set Value to which products is set. The method never returns null and the returned collection is modifiable.
      • addToProducts

        public void addToProducts​(Product pProducts)
        Method adds the passed object to products.
        Parameters:
        pProducts - Object that should be added to products. The parameter must not be null.
      • addToProducts

        public void addToProducts​(java.util.Collection<Product> pProducts)
        Method adds all passed objects to products.
        Parameters:
        pProducts - Collection with all objects that should be added to products. The parameter must not be null.
      • removeFromProducts

        public void removeFromProducts​(Product pProducts)
        Method removes the passed object from products.
        Parameters:
        pProducts - Object that should be removed from products. The parameter must not be null.
      • clearProducts

        public void clearProducts()
        Method removes all objects from products.
      • getName

        public java.lang.String getName()
        Method returns attribute name.
        Returns:
        String Value to which name is set.
      • setName

        public void setName​(java.lang.String pName)
        Method sets attribute name.
        Parameters:
        pName - Value to which name should be set.
      • getLanguage

        public java.util.Locale getLanguage()
        Method returns attribute language.
        Returns:
        Locale Value to which language is set.
      • setLanguage

        public void setLanguage​(java.util.Locale pLanguage)
        Method sets attribute language.
        Parameters:
        pLanguage - Value to which language should be set.
      • doSomething

        public abstract java.lang.Integer doSomething()
        Returns:
        Integer
      • returnPrimitive

        public abstract double returnPrimitive()
        Returns:
        double
      • toStringBuilder

        public java.lang.StringBuilder toStringBuilder​(java.lang.String pIndent)
        Method returns a StringBuilder that can be used to create a String representation of this object. The returned StringBuilder also takes care about attributes of super classes.
        Returns:
        StringBuilder StringBuilder representing this object. The method never returns null.
      • toString

        public java.lang.String toString()
        Method creates a new String with the values of all attributes of this class. All references to other objects will be ignored.
        Overrides:
        toString in class java.lang.Object
        Returns:
        String String representation of this object. The method never returns null.