FileDocCategorySizeDatePackage
CommentBean.javaAPI DocExample2105Thu Jul 07 09:57:20 BST 2005com.oreilly.jbossnotebook.todo.ejb

CommentBean

public abstract class CommentBean extends Object implements javax.ejb.EntityBean
Entity bean representing a blog entry.
ejb.bean
name="Comment" type="CMP" cmp-version="2.x" view-type="local" primkey-field="id"
ejb.finder
signature="java.util.Collection findAll()" query="SELECT OBJECT(c) FROM Comment AS c"
ejb.value-object
name="Comment"
ejb.permission
unchecked="true"

Fields Summary
Constructors Summary
Methods Summary
public java.lang.StringejbCreate(java.lang.String comment, java.util.Date date, TaskLocal task)

ejb.create-method

        setId(TaskUtil.generateGUID(this));
        setCommentText(comment);
        setDate(date);
                                             
        return null;
    
public voidejbPostCreate(java.lang.String comment, java.util.Date date, TaskLocal task)

        setTask(task);
    
public abstract CommentgetComment()

ejb.interface-method

public abstract java.lang.StringgetCommentText()

ejb.persistence
ejb.interface-method

public abstract java.util.DategetDate()

ejb.persistence
ejb.interface-method

public abstract java.lang.StringgetId()

ejb.pk-field
ejb.persistence
ejb.interface-method

public abstract TaskLocalgetTask()

ejb.interface-method
ejb.relation
name="task-comment" role-name="comment-belongs-to-task" cascade-delete="yes"

public abstract voidsetComment(Comment comment)

ejb.interface-method

public abstract voidsetCommentText(java.lang.String text)

ejb.interface-method

public abstract voidsetDate(java.util.Date date)

ejb.interface-method

public abstract voidsetId(java.lang.String id)

public abstract voidsetTask(TaskLocal topic)

ejb.interface-method