Class WeirdBooking

  • All Implemented Interfaces:
    com.anaptecs.jeaf.core.api.ServiceObject, java.io.Serializable

    @Valid
    public class WeirdBooking
    extends WeirdParent
    See Also:
    Serialized Form
    • Constructor Detail

      • WeirdBooking

        protected WeirdBooking()
        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.
      • WeirdBooking

        protected WeirdBooking​(WeirdBooking.Builder 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

      • builder

        public static WeirdBooking.Builder builder​(WeirdBooking pObject)
        Method creates a new builder and initialize it with the data from the passed object.
        Parameters:
        pObject - Object that should be used to initialize the builder. The parameter may be null.
        Returns:
        WeirdBooking.Builder New builder that can be used to create new WeirdBooking objects. The method never returns null.
      • setBooking

        public void setBooking​(ComplexBookingID pBooking)
        Method sets association booking.
        Parameters:
        pBooking - Value to which booking should be set.
      • unsetBooking

        public final void unsetBooking()
        Method unsets booking.
      • getAdditionalBookings

        public java.util.List<ComplexBookingID> getAdditionalBookings()
        Method returns association additionalBookings.
        additional bookings
        Returns:
        List Value to which additionalBookings is set. The method never returns null and the returned collection is modifiable.
      • addToAdditionalBookings

        public void addToAdditionalBookings​(ComplexBookingID pAdditionalBookings)
        Method adds the passed object to additionalBookings.
        Parameters:
        pAdditionalBookings - Object that should be added to additionalBookings. The parameter must not be null.
      • addToAdditionalBookings

        public void addToAdditionalBookings​(java.util.Collection<ComplexBookingID> pAdditionalBookings)
        Method adds all passed objects to additionalBookings.
        Parameters:
        pAdditionalBookings - Collection with all objects that should be added to additionalBookings. The parameter must not be null.
      • removeFromAdditionalBookings

        public void removeFromAdditionalBookings​(ComplexBookingID pAdditionalBookings)
        Method removes the passed object from additionalBookings.
        Parameters:
        pAdditionalBookings - Object that should be removed from additionalBookings. The parameter must not be null.
      • clearAdditionalBookings

        public void clearAdditionalBookings()
        Method removes all objects from additionalBookings.
      • unsetVersionedObjectSoftLink

        public final void unsetVersionedObjectSoftLink()
      • getChildProperty

        public int getChildProperty()
        Method returns attribute childProperty.
        Returns:
        int Value to which childProperty is set.
      • setChildProperty

        public void setChildProperty​(int pChildProperty)
        Method sets attribute childProperty.
        Parameters:
        pChildProperty - Value to which childProperty should be set.
      • setRealBooking

        public void setRealBooking​(Booking pRealBooking)
        Method sets association realBooking.
        the real booking
        Parameters:
        pRealBooking - Value to which realBooking should be set.
      • unsetRealBooking

        public final void unsetRealBooking()
        Method unsets realBooking.
      • getInventories

        public java.util.Set<InventoryType> getInventories()
        Method returns association inventories.
        Returns:
        Set Value to which inventories is set. The method never returns null and the returned collection is modifiable.
      • addToInventories

        public void addToInventories​(InventoryType pInventories)
        Method adds the passed object to inventories.
        Parameters:
        pInventories - Object that should be added to inventories. The parameter must not be null.
      • addToInventories

        public void addToInventories​(java.util.Collection<InventoryType> pInventories)
        Method adds all passed objects to inventories.
        Parameters:
        pInventories - Collection with all objects that should be added to inventories. The parameter must not be null.
      • removeFromInventories

        public void removeFromInventories​(InventoryType pInventories)
        Method removes the passed object from inventories.
        Parameters:
        pInventories - Object that should be removed from inventories. The parameter must not be null.
      • clearInventories

        public void clearInventories()
        Method removes all objects from inventories.
      • 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.
        Overrides:
        toStringBuilder in class WeirdParent
        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 WeirdParent
        Returns:
        String String representation of this object. The method never returns null.