org.prevayler.demos.jxpath.commands
Class AddTask

java.lang.Object
  extended by org.prevayler.demos.jxpath.commands.AddTask
All Implemented Interfaces:
Serializable, Transaction<ProjectManagementSystem>

public class AddTask
extends Object
implements Transaction<ProjectManagementSystem>

Author:
Carlos Villela
See Also:
Serialized Form

Constructor Summary
AddTask()
           
 
Method Summary
 void executeOn(ProjectManagementSystem system, Date ignored)
          This method is called by Prevayler.execute(Transaction) to execute this Transaction on the given Prevalent System.
 int getProjectId()
          Returns the projectId.
 Task getTask()
          Returns the task.
 void setProjectId(int projectId)
          Sets the projectId.
 void setTask(Task task)
          Sets the task.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddTask

public AddTask()
Method Detail

executeOn

public void executeOn(ProjectManagementSystem system,
                      Date ignored)
Description copied from interface: Transaction
This method is called by Prevayler.execute(Transaction) to execute this Transaction on the given Prevalent System. See org.prevayler.demos for usage examples.

Specified by:
executeOn in interface Transaction<ProjectManagementSystem>
Parameters:
system - The system on which this Transaction will execute.
ignored - The time at which this Transaction is being executed. Every Transaction executes completely within a single moment in time. Logically, a Prevalent System's time does not pass during the execution of a Transaction.

getProjectId

public int getProjectId()
Returns the projectId.

Returns:
int

getTask

public Task getTask()
Returns the task.

Returns:
Task

setProjectId

public void setProjectId(int projectId)
Sets the projectId.

Parameters:
projectId - The projectId to set

setTask

public void setTask(Task task)
Sets the task.

Parameters:
task - The task to set


Copyright © 2001-2013. All Rights Reserved.