org.yawlfoundation.yawl.engine
Class YCaseNbrStore

java.lang.Object
  extended by org.yawlfoundation.yawl.engine.YCaseNbrStore

public class YCaseNbrStore
extends Object

Provides for the persistence of the last allocated case id, and the generation of new case ids. Author: Michael Adams Date: 1/03/2008


Constructor Summary
protected YCaseNbrStore()
           
 
Method Summary
 int getCaseNbr()
           
static YCaseNbrStore getInstance()
           
 String getNextCaseNbr(YPersistenceManager pmgr)
           
 int getPkey()
           
 boolean isPersisted()
           
 boolean isPersisting()
           
 void setCaseNbr(int nbr)
           
 void setPersisted(boolean bool)
           
 void setPersisting(boolean persist)
           
 void setPkey(int key)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

YCaseNbrStore

protected YCaseNbrStore()
Method Detail

getInstance

public static YCaseNbrStore getInstance()
Returns:
an instance of ths class

getCaseNbr

public int getCaseNbr()

setCaseNbr

public void setCaseNbr(int nbr)

getPkey

public int getPkey()

setPkey

public void setPkey(int key)

isPersisted

public boolean isPersisted()

setPersisted

public void setPersisted(boolean bool)

isPersisting

public boolean isPersisting()

setPersisting

public void setPersisting(boolean persist)

toString

public String toString()
Overrides:
toString in class Object

getNextCaseNbr

public String getNextCaseNbr(YPersistenceManager pmgr)
Returns:
the next available case number (as a String)


Copyright © 2004-2012 The YAWL Foundation.