Class GeneratedCommentMetadata

    • Constructor Detail

      • GeneratedCommentMetadata

        public GeneratedCommentMetadata()
    • Method Detail

      • getComment

        public Comment getComment​(SessionContext ctx)
        Generated method - Getter of the CommentMetadata.comment attribute.
        Returns:
        the comment
      • getComment

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

        protected void setComment​(SessionContext ctx,
                                  Comment value)
        Generated method - Setter of the CommentMetadata.comment attribute.
        Parameters:
        value - the comment
      • setComment

        protected void setComment​(Comment value)
        Generated method - Setter of the CommentMetadata.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
      • getItem

        public Item getItem​(SessionContext ctx)
        Generated method - Getter of the CommentMetadata.item attribute.
        Returns:
        the item
      • getItem

        public Item getItem()
        Generated method - Getter of the CommentMetadata.item attribute.
        Returns:
        the item
      • setItem

        public void setItem​(SessionContext ctx,
                            Item value)
        Generated method - Setter of the CommentMetadata.item attribute.
        Parameters:
        value - the item
      • setItem

        public void setItem​(Item value)
        Generated method - Setter of the CommentMetadata.item attribute.
        Parameters:
        value - the item
      • getPageIndex

        public java.lang.Integer getPageIndex​(SessionContext ctx)
        Generated method - Getter of the CommentMetadata.pageIndex attribute.
        Returns:
        the pageIndex
      • getPageIndex

        public java.lang.Integer getPageIndex()
        Generated method - Getter of the CommentMetadata.pageIndex attribute.
        Returns:
        the pageIndex
      • getPageIndexAsPrimitive

        public int getPageIndexAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the CommentMetadata.pageIndex attribute.
        Returns:
        the pageIndex
      • getPageIndexAsPrimitive

        public int getPageIndexAsPrimitive()
        Generated method - Getter of the CommentMetadata.pageIndex attribute.
        Returns:
        the pageIndex
      • setPageIndex

        public void setPageIndex​(SessionContext ctx,
                                 java.lang.Integer value)
        Generated method - Setter of the CommentMetadata.pageIndex attribute.
        Parameters:
        value - the pageIndex
      • setPageIndex

        public void setPageIndex​(java.lang.Integer value)
        Generated method - Setter of the CommentMetadata.pageIndex attribute.
        Parameters:
        value - the pageIndex
      • setPageIndex

        public void setPageIndex​(SessionContext ctx,
                                 int value)
        Generated method - Setter of the CommentMetadata.pageIndex attribute.
        Parameters:
        value - the pageIndex
      • setPageIndex

        public void setPageIndex​(int value)
        Generated method - Setter of the CommentMetadata.pageIndex attribute.
        Parameters:
        value - the pageIndex
      • getX

        public java.lang.Integer getX​(SessionContext ctx)
        Generated method - Getter of the CommentMetadata.x attribute.
        Returns:
        the x
      • getX

        public java.lang.Integer getX()
        Generated method - Getter of the CommentMetadata.x attribute.
        Returns:
        the x
      • getXAsPrimitive

        public int getXAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the CommentMetadata.x attribute.
        Returns:
        the x
      • getXAsPrimitive

        public int getXAsPrimitive()
        Generated method - Getter of the CommentMetadata.x attribute.
        Returns:
        the x
      • setX

        public void setX​(SessionContext ctx,
                         java.lang.Integer value)
        Generated method - Setter of the CommentMetadata.x attribute.
        Parameters:
        value - the x
      • setX

        public void setX​(java.lang.Integer value)
        Generated method - Setter of the CommentMetadata.x attribute.
        Parameters:
        value - the x
      • setX

        public void setX​(SessionContext ctx,
                         int value)
        Generated method - Setter of the CommentMetadata.x attribute.
        Parameters:
        value - the x
      • setX

        public void setX​(int value)
        Generated method - Setter of the CommentMetadata.x attribute.
        Parameters:
        value - the x
      • getY

        public java.lang.Integer getY​(SessionContext ctx)
        Generated method - Getter of the CommentMetadata.y attribute.
        Returns:
        the y
      • getY

        public java.lang.Integer getY()
        Generated method - Getter of the CommentMetadata.y attribute.
        Returns:
        the y
      • getYAsPrimitive

        public int getYAsPrimitive​(SessionContext ctx)
        Generated method - Getter of the CommentMetadata.y attribute.
        Returns:
        the y
      • getYAsPrimitive

        public int getYAsPrimitive()
        Generated method - Getter of the CommentMetadata.y attribute.
        Returns:
        the y
      • setY

        public void setY​(SessionContext ctx,
                         java.lang.Integer value)
        Generated method - Setter of the CommentMetadata.y attribute.
        Parameters:
        value - the y
      • setY

        public void setY​(java.lang.Integer value)
        Generated method - Setter of the CommentMetadata.y attribute.
        Parameters:
        value - the y
      • setY

        public void setY​(SessionContext ctx,
                         int value)
        Generated method - Setter of the CommentMetadata.y attribute.
        Parameters:
        value - the y
      • setY

        public void setY​(int value)
        Generated method - Setter of the CommentMetadata.y attribute.
        Parameters:
        value - the y