ERXSequence Class Reference

Inherited by ERXSequence.DatabaseSequence, and ERXSequence.NativeDatabaseSequence.

Collaboration diagram for ERXSequence:

Collaboration graph
[legend]

List of all members.

Classes

class  DatabaseSequence
class  NativeDatabaseSequence
class  PrimaryKeySequence

Public Member Functions

 ERXSequence (String name, long initialValue)
 ERXSequence (String name)
String name ()
long nextValue (long increment)
long nextValue ()

Static Public Member Functions

static ERXSequence createDatabaseSequenceWithName (EOEditingContext ec, String modelName, String name)
static ERXSequence createSequenceWithName (String name, long initialValue)
static void registerSequenceWithName (ERXSequence sequence, String name)
static ERXSequence sequenceWithName (String name)

Protected Member Functions

long increasedMaxValue (long increment)
long increment ()
long lastValue ()
long maxValue ()

Protected Attributes

long _lastValue
long _maxValue
Logger log

Private Attributes

final String _name

Static Private Attributes

static final Map cache = Collections.synchronizedMap(new HashMap())


Detailed Description

Simple sequence class. MT safe, but not multi instance safe (this is implemented by subclasses)
Author:
ak

Constructor & Destructor Documentation

ERXSequence ( String  name  ) 

ERXSequence ( String  name,
long  initialValue 
)


Member Function Documentation

static ERXSequence createDatabaseSequenceWithName ( EOEditingContext  ec,
String  modelName,
String  name 
) [static]

static ERXSequence createSequenceWithName ( String  name,
long  initialValue 
) [static]

long increasedMaxValue ( long  increment  )  [protected]

Reimplemented in ERXSequence.DatabaseSequence.

long increment (  )  [protected]

long lastValue (  )  [protected]

long maxValue (  )  [protected]

String name (  ) 

long nextValue ( long  increment  ) 

long nextValue (  ) 

static void registerSequenceWithName ( ERXSequence  sequence,
String  name 
) [static]

static ERXSequence sequenceWithName ( String  name  )  [static]


Member Data Documentation

long _lastValue [protected]

long _maxValue [protected]

final String _name [private]

final Map cache = Collections.synchronizedMap(new HashMap()) [static, private]

Logger log [protected]


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:11 2012 for Project Wonder by  doxygen 1.5.8