org.kuali.kfs.sys.businessobject
Class GeneralLedgerPendingEntrySequenceHelper

java.lang.Object
  extended by org.kuali.kfs.sys.businessobject.GeneralLedgerPendingEntrySequenceHelper

public class GeneralLedgerPendingEntrySequenceHelper
extends Object

This class is a helper class which will allows us to pass control in and out of the processGeneralLedgerPendingEntry() method by reference. This was necessary since you can't increment an Integer object without breaking reference.


Constructor Summary
GeneralLedgerPendingEntrySequenceHelper()
          Constructs a GeneralLedgerPendingEntrySequenceHelper.java, initializing the counter to 1.
GeneralLedgerPendingEntrySequenceHelper(int initialCount)
          Constructs a GeneralLedgerPendingEntrySequenceHelper.java, initializing the counter to the given int.
 
Method Summary
 void decrement()
          This method decrements the value of the sequenceCounter attribute.
 int getSequenceCounter()
          This method retrieves the value of the sequenceCounter attribute.
 void increment()
          This method increments the value of the sequenceCounter attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralLedgerPendingEntrySequenceHelper

public GeneralLedgerPendingEntrySequenceHelper()
Constructs a GeneralLedgerPendingEntrySequenceHelper.java, initializing the counter to 1.


GeneralLedgerPendingEntrySequenceHelper

public GeneralLedgerPendingEntrySequenceHelper(int initialCount)
Constructs a GeneralLedgerPendingEntrySequenceHelper.java, initializing the counter to the given int.

Method Detail

getSequenceCounter

public int getSequenceCounter()
This method retrieves the value of the sequenceCounter attribute.

Returns:

increment

public void increment()
This method increments the value of the sequenceCounter attribute.


decrement

public void decrement()
This method decrements the value of the sequenceCounter attribute.



Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.