Class GeneratedWishlist2Entry

All Implemented Interfaces:
Serializable, Comparable
Direct Known Subclasses:
Wishlist2Entry

public abstract class GeneratedWishlist2Entry extends GenericItem
Generated class for type Wishlist2Entry.
See Also:
  • Field Details

  • Constructor Details

    • GeneratedWishlist2Entry

      public GeneratedWishlist2Entry()
  • Method Details

    • getDefaultAttributeModes

      protected Map<String,Item.AttributeMode> getDefaultAttributeModes()
      Overrides:
      getDefaultAttributeModes in class Item
    • getAddedDate

      public Date getAddedDate(SessionContext ctx)
      Generated method - Getter of the Wishlist2Entry.addedDate attribute.
      Returns:
      the addedDate
    • getAddedDate

      public Date getAddedDate()
      Generated method - Getter of the Wishlist2Entry.addedDate attribute.
      Returns:
      the addedDate
    • setAddedDate

      public void setAddedDate(SessionContext ctx, Date value)
      Generated method - Setter of the Wishlist2Entry.addedDate attribute.
      Parameters:
      value - the addedDate
    • setAddedDate

      public void setAddedDate(Date value)
      Generated method - Setter of the Wishlist2Entry.addedDate attribute.
      Parameters:
      value - the addedDate
    • getComment

      public String getComment(SessionContext ctx)
      Generated method - Getter of the Wishlist2Entry.comment attribute.
      Returns:
      the comment
    • getComment

      public String getComment()
      Generated method - Getter of the Wishlist2Entry.comment attribute.
      Returns:
      the comment
    • setComment

      public void setComment(SessionContext ctx, String value)
      Generated method - Setter of the Wishlist2Entry.comment attribute.
      Parameters:
      value - the comment
    • setComment

      public void setComment(String value)
      Generated method - Setter of the Wishlist2Entry.comment attribute.
      Parameters:
      value - the comment
    • createItem

      protected Item createItem(SessionContext ctx, ComposedType type, Item.ItemAttributeMap allAttributes) throws JaloBusinessException
      Description copied from class: Item
      Has to be implemented for each concrete subtype of item. This method is responsible for creating a new item instance ( by calling managers, ejb homes, etc. ) during ComposedType.newInstance(Map).

      In case this method uses any of the attribute values during creation it is required to override Item.getNonInitialAttributes(SessionContext, ItemAttributeMap) too.
      Sn example:

      
       public static final String MY_ATTRIBUTE = "someAttribute"; ... protected Item createItem(SessionContext
       ctx, ComposedType type, Map allAttributes ) throws JaloBusinessException { MyManager man = ... return
       man.createMyItem( (String)allAttributes.get(MY_ATTRIBUTE) );
       // here MY_ATTRIBUTE is used for creation, so it must not be set again } protected Map getNonInitialAttributes(
       SessionContext ctx, Map allAttributes ) { // let superclass remove its own initial attributes Map ret =
       super.getNonInitialAttributes( ctx, allAttributes );
       // remove MY_ATTRIBUTE from all attributes since if has already been set ret.remove(MY_ATTRIBUTE); return ret; }
      
       
      Overrides:
      createItem in class GenericItem
      Parameters:
      ctx - the current session context which this item is created within
      type - the actual item type ( since subtypes may not provide a own jalo class this may be different from the type which this method was implemented for )
      Returns:
      the new item instance
      Throws:
      JaloBusinessException - indicates an error during creation - any changes will be rollbacked
    • getDesired

      public Integer getDesired(SessionContext ctx)
      Generated method - Getter of the Wishlist2Entry.desired attribute.
      Returns:
      the desired
    • getDesired

      public Integer getDesired()
      Generated method - Getter of the Wishlist2Entry.desired attribute.
      Returns:
      the desired
    • getDesiredAsPrimitive

      public int getDesiredAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Wishlist2Entry.desired attribute.
      Returns:
      the desired
    • getDesiredAsPrimitive

      public int getDesiredAsPrimitive()
      Generated method - Getter of the Wishlist2Entry.desired attribute.
      Returns:
      the desired
    • setDesired

      public void setDesired(SessionContext ctx, Integer value)
      Generated method - Setter of the Wishlist2Entry.desired attribute.
      Parameters:
      value - the desired
    • setDesired

      public void setDesired(Integer value)
      Generated method - Setter of the Wishlist2Entry.desired attribute.
      Parameters:
      value - the desired
    • setDesired

      public void setDesired(SessionContext ctx, int value)
      Generated method - Setter of the Wishlist2Entry.desired attribute.
      Parameters:
      value - the desired
    • setDesired

      public void setDesired(int value)
      Generated method - Setter of the Wishlist2Entry.desired attribute.
      Parameters:
      value - the desired
    • getPriority

      public EnumerationValue getPriority(SessionContext ctx)
      Generated method - Getter of the Wishlist2Entry.priority attribute.
      Returns:
      the priority
    • getPriority

      public EnumerationValue getPriority()
      Generated method - Getter of the Wishlist2Entry.priority attribute.
      Returns:
      the priority
    • setPriority

      public void setPriority(SessionContext ctx, EnumerationValue value)
      Generated method - Setter of the Wishlist2Entry.priority attribute.
      Parameters:
      value - the priority
    • setPriority

      public void setPriority(EnumerationValue value)
      Generated method - Setter of the Wishlist2Entry.priority attribute.
      Parameters:
      value - the priority
    • getProduct

      public Product getProduct(SessionContext ctx)
      Generated method - Getter of the Wishlist2Entry.product attribute.
      Returns:
      the product
    • getProduct

      public Product getProduct()
      Generated method - Getter of the Wishlist2Entry.product attribute.
      Returns:
      the product
    • setProduct

      public void setProduct(SessionContext ctx, Product value)
      Generated method - Setter of the Wishlist2Entry.product attribute.
      Parameters:
      value - the product
    • setProduct

      public void setProduct(Product value)
      Generated method - Setter of the Wishlist2Entry.product attribute.
      Parameters:
      value - the product
    • getReceived

      public Integer getReceived(SessionContext ctx)
      Generated method - Getter of the Wishlist2Entry.received attribute.
      Returns:
      the received
    • getReceived

      public Integer getReceived()
      Generated method - Getter of the Wishlist2Entry.received attribute.
      Returns:
      the received
    • getReceivedAsPrimitive

      public int getReceivedAsPrimitive(SessionContext ctx)
      Generated method - Getter of the Wishlist2Entry.received attribute.
      Returns:
      the received
    • getReceivedAsPrimitive

      public int getReceivedAsPrimitive()
      Generated method - Getter of the Wishlist2Entry.received attribute.
      Returns:
      the received
    • setReceived

      public void setReceived(SessionContext ctx, Integer value)
      Generated method - Setter of the Wishlist2Entry.received attribute.
      Parameters:
      value - the received
    • setReceived

      public void setReceived(Integer value)
      Generated method - Setter of the Wishlist2Entry.received attribute.
      Parameters:
      value - the received
    • setReceived

      public void setReceived(SessionContext ctx, int value)
      Generated method - Setter of the Wishlist2Entry.received attribute.
      Parameters:
      value - the received
    • setReceived

      public void setReceived(int value)
      Generated method - Setter of the Wishlist2Entry.received attribute.
      Parameters:
      value - the received
    • getWishlist

      public Wishlist2 getWishlist(SessionContext ctx)
      Generated method - Getter of the Wishlist2Entry.wishlist attribute.
      Returns:
      the wishlist
    • getWishlist

      public Wishlist2 getWishlist()
      Generated method - Getter of the Wishlist2Entry.wishlist attribute.
      Returns:
      the wishlist
    • setWishlist

      public void setWishlist(SessionContext ctx, Wishlist2 value)
      Generated method - Setter of the Wishlist2Entry.wishlist attribute.
      Parameters:
      value - the wishlist
    • setWishlist

      public void setWishlist(Wishlist2 value)
      Generated method - Setter of the Wishlist2Entry.wishlist attribute.
      Parameters:
      value - the wishlist