FileDocCategorySizeDatePackage
TaskBean.javaAPI DocExample3432Thu Jul 07 09:57:40 BST 2005com.oreilly.jbossnotebook.todo.ejb

TaskBean

public abstract class TaskBean extends Object implements javax.ejb.EntityBean
Entity bean representing a blog entry.
ejb.bean
name="Task" type="CMP" cmp-version="2.x" view-type="local" primkey-field="id"
ejb.finder
signature="java.util.Collection findAll()" query="SELECT OBJECT(t) FROM Task AS t"
ejb.finder
signature="java.util.Collection findTasksForUser(java.lang.String user)" query="SELECT OBJECT(t) FROM Task AS t WHERE t.user = ?1"
ejb.value-object
name="Task"
ejb.permission
unchecked="true"
xx-ejb.permission
role-name="User"

Fields Summary
Logger
logger
Constructors Summary
Methods Summary
public java.lang.IntegerejbCreate(java.lang.String user, java.lang.String name)

ejb.create-method

  
    // XXX String
      
           
          
    
        //setId(TaskUtil.generateGUID(this));
        setName(name);
        // XXX - don't check this in
        //setUser(user);
        //setStartedDate(new Date()); 
        logger.debug("creating task " + getId() + " for user " + user);
        return null;
    
public voidejbPostCreate(java.lang.String name, java.lang.String user)

    
public abstract java.util.SetgetComments()

ejb.interface-method
ejb.relation
name="task-comment" role-name="task-has-comments"
ejb.value-object
aggregate="com.oreilly.jbossnotebook.todo.ejb.Comment" aggregate-name="Comment" members="com.oreilly.jbossnotebook.todo.ejb.CommentLocal" members-name="Comments" relation="external" type="java.util.Set"

public abstract java.util.DategetCompletedDate()

ejb.persistence
ejb.interface-method

public abstract java.lang.IntegergetId()

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

public abstract java.lang.StringgetName()

ejb.persistence
ejb.interface-method

public abstract java.util.DategetStartedDate()

ejb.persistence
ejb.interface-method

public abstract TaskgetTask()

ejb.interface-method

public abstract java.lang.StringgetUser()

ejb.persistence
ejb.interface-method

public abstract voidsetComments(java.util.Set comments)

ejb.interface-method

public abstract voidsetCompletedDate(java.util.Date date)

ejb.interface-method

public abstract voidsetId(java.lang.Integer id)

public abstract voidsetName(java.lang.String name)

ejb.interface-method

public abstract voidsetStartedDate(java.util.Date date)

ejb.interface-method

public abstract voidsetTask(Task task)

ejb.interface-method

public abstract voidsetUser(java.lang.String topic)

ejb.interface-method