Class ResellerBase.BuilderBase

  • Direct Known Subclasses:
    Reseller.Builder
    Enclosing class:
    ResellerBase

    public abstract static class ResellerBase.BuilderBase
    extends java.lang.Object
    Class implements builder to create a new instance of class Reseller. As the class has read only attributes or associations instances can not be created directly. Instead this builder class has to be used.
    • Constructor Detail

      • BuilderBase

        protected BuilderBase()
        Use {@link Reseller.builder()} instead of protected constructor to create new builder.
      • BuilderBase

        protected BuilderBase​(ResellerBase pObject)
        Use {@link Reseller.builder(Reseller)} instead of protected constructor to create new builder.
    • Method Detail

      • setID

        public ResellerBase.BuilderBase setID​(com.anaptecs.jeaf.xfun.api.common.ObjectIdentity<?> pObjectID)
        Method sets the identifier for the object created using the builder. The reference may be null since an id is not mandatory.
      • build

        public Reseller build()
        Method creates a new instance of class Reseller. The object will be initialized with the values of the builder.
        Returns:
        Reseller Created object. The method never returns null.
      • buildValidated

        public Reseller buildValidated()
                                throws javax.validation.ConstraintViolationException
        Method creates a new validated instance of class Reseller. The object will be initialized with the values of the builder and validated afterwards.
        Returns:
        Reseller Created and validated object. The method never returns null.
        Throws:
        javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.