Namespace: Consultingwerk
Class 
Sequence Copy to Clipboard
Parent classes:
Inherits: Progress.Lang.Object
Implements: Consultingwerk.ISequence

File:Sequence
Purpose:Default ISequence implementation
Description:Provides simple counter functionality with ability to
increment and return a value in a single method call
Author(s):Mike Fechner / Consultingwerk Ltd.
Created:Mon Jun 30 23:38:10 CEST 2014



Top Method Summary
Options Name Purpose
+ INT64 NextValue () Increments or decrements the sequence and returns the next value
+ Reset () Resets the sequence to its initial value

Top Constructor Summary
Options Name Purpose
+ Sequence () Constructor for the Sequence class
+ Sequence (int64) Constructor for the Sequence class
+ Sequence (int64, integer) Constructor for the Sequence class

Top Property Summary
Options Name Purpose
+ INT64 CurrentValue Returns the current sequence value
+ INTEGER Increment Returns the sequence increment
+ INT64 Initial Retusn the sequence initial value


Method Detail
Top

PUBLIC INT64 NextValue ()

Purpose: Increments or decrements the sequence and returns the next value
Notes:

Returns INT64
The new sequence value
Top

PUBLIC Reset ()

Purpose: Resets the sequence to its initial value
Notes:



Constructor Detail
Top

PUBLIC Sequence ()

Purpose: Constructor for the Sequence class
Notes:

Top

PUBLIC Sequence (int64)

Purpose: Constructor for the Sequence class
Notes:

Parameters:
piInitialValue INT64
The initial value to use for the sequence
Top

PUBLIC Sequence (int64, integer)

Purpose: Constructor for the Sequence class
Notes:

Parameters:
piInitialValue INT64
The initial value to use for the sequence
piIncrement INTEGER
The increment to use for the sequence (positive, negative)


Property Detail
Top

PUBLIC INT64 CurrentValue

Purpose: Returns the current sequence value
Notes:

Returns INT64
Top

PUBLIC INTEGER Increment

Purpose: Returns the sequence increment
Notes:

Returns INTEGER
Top

PUBLIC INT64 Initial

Purpose: Retusn the sequence initial value
Notes:

Returns INT64


©2006-2016 Consultingwerk Ltd.         info@consultingwerk.de         http://www.consultingwerk.de       26.08.2016 08:30:42