org.prevayler.demos.jxpath.commands
Class AddProject

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

public class AddProject
extends Object
implements Transaction<ProjectManagementSystem>

Adds a Project to the system.

Author:
Carlos Villela
See Also:
Serialized Form

Constructor Summary
AddProject()
           
 
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.
 Project getProject()
          Returns the project.
 void setProject(Project project)
          Sets the project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddProject

public AddProject()
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.

getProject

public Project getProject()
Returns the project.

Returns:
Project

setProject

public void setProject(Project project)
Sets the project.

Parameters:
project - The project to set


Copyright © 2001-2013. All Rights Reserved.