com.opensymphony.workflow.spi.hibernate
Class HibernateStep

java.lang.Object
  extended by com.opensymphony.workflow.spi.hibernate.HibernateStep
All Implemented Interfaces:
Step
Direct Known Subclasses:
HibernateCurrentStep, HibernateHistoryStep

public abstract class HibernateStep
extends Object
implements Step

This abstract class provides all the implementation of the step interface It is abstract because the current and historical steps are stored in seperate tables. To split the history and current steps into two tables in hibernate, the easiest approach is to use two separate classes.


Constructor Summary
HibernateStep()
           
HibernateStep(HibernateStep step)
           
 
Method Summary
 int getActionId()
          Returns the ID of the action associated with this step, or 0 if there is no action associated.
 String getCaller()
           
 Date getDueDate()
          Returns an optional date signifying when this step must be finished.
 HibernateWorkflowEntry getEntry()
           
 long getEntryId()
          Returns the unique ID of the workflow entry.
 Date getFinishDate()
          Returns the date this step was finished, or null if it isn't finished.
 long getId()
          Returns the unique ID of this step.
 String getOwner()
          Returns the owner of this step, or null if there is no owner.
 long[] getPreviousStepIds()
          Returns the unique ID of the previous step, or 0 if this is the first step.
 List getPreviousSteps()
           
 Date getStartDate()
          Returns the date that this step was created.
 String getStatus()
          Returns the status of this step.
 int getStepId()
          Returns the ID of the step in the workflow definition.
 void setActionId(int actionId)
           
 void setCaller(String caller)
           
 void setDueDate(Date dueDate)
           
 void setEntry(HibernateWorkflowEntry entry)
           
 void setFinishDate(Date finishDate)
           
 void setId(long id)
           
 void setOwner(String owner)
           
 void setPreviousSteps(List previousSteps)
           
 void setStartDate(Date startDate)
           
 void setStatus(String status)
           
 void setStepId(int stepId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HibernateStep

public HibernateStep()

HibernateStep

public HibernateStep(HibernateStep step)
Method Detail

setActionId

public void setActionId(int actionId)

getActionId

public int getActionId()
Description copied from interface: Step
Returns the ID of the action associated with this step, or 0 if there is no action associated.

Specified by:
getActionId in interface Step

setCaller

public void setCaller(String caller)

getCaller

public String getCaller()
Specified by:
getCaller in interface Step

setDueDate

public void setDueDate(Date dueDate)

getDueDate

public Date getDueDate()
Description copied from interface: Step
Returns an optional date signifying when this step must be finished.

Specified by:
getDueDate in interface Step

setEntry

public void setEntry(HibernateWorkflowEntry entry)

getEntry

public HibernateWorkflowEntry getEntry()

getEntryId

public long getEntryId()
Description copied from interface: Step
Returns the unique ID of the workflow entry.

Specified by:
getEntryId in interface Step

setFinishDate

public void setFinishDate(Date finishDate)

getFinishDate

public Date getFinishDate()
Description copied from interface: Step
Returns the date this step was finished, or null if it isn't finished.

Specified by:
getFinishDate in interface Step

setId

public void setId(long id)

getId

public long getId()
Description copied from interface: Step
Returns the unique ID of this step.

Specified by:
getId in interface Step

setOwner

public void setOwner(String owner)

getOwner

public String getOwner()
Description copied from interface: Step
Returns the owner of this step, or null if there is no owner.

Specified by:
getOwner in interface Step

getPreviousStepIds

public long[] getPreviousStepIds()
Description copied from interface: Step
Returns the unique ID of the previous step, or 0 if this is the first step.

Specified by:
getPreviousStepIds in interface Step

setPreviousSteps

public void setPreviousSteps(List previousSteps)

getPreviousSteps

public List getPreviousSteps()

setStartDate

public void setStartDate(Date startDate)

getStartDate

public Date getStartDate()
Description copied from interface: Step
Returns the date that this step was created.

Specified by:
getStartDate in interface Step

setStatus

public void setStatus(String status)

getStatus

public String getStatus()
Description copied from interface: Step
Returns the status of this step.

Specified by:
getStatus in interface Step

setStepId

public void setStepId(int stepId)

getStepId

public int getStepId()
Description copied from interface: Step
Returns the ID of the step in the workflow definition.

Specified by:
getStepId in interface Step

OpenSymphony Workflow Project Page