Cumulus4j API
(1.1.0)

org.cumulus4j.store.model
Class Sequence

java.lang.Object
  extended by org.cumulus4j.store.model.Sequence

Deprecated. This class did not support multitenancy-in-single-database and was therefore replaced by Sequence2.

@Deprecated
public class Sequence
extends Object

Persistent sequence entity used by Cumulus4jIncrementGenerator.

Author:
Marco หงุ่ยตระกูล-Schulze - marco at nightlabs dot de

Constructor Summary
protected Sequence()
          Deprecated. Default constructor.
protected Sequence(String sequenceName)
          Deprecated. Constructor creating a Sequence with the given primary key.
 
Method Summary
 long getNextValue()
          Deprecated. Get the next value (i.e.
 String getSequenceName()
          Deprecated. Get the name of the sequence.
 void setNextValue(long nextValue)
          Deprecated. Set the next value (i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Sequence

protected Sequence()
Deprecated. 
Default constructor. Should never be used by actual code! It exists only to fulfill the JDO requirements.


Sequence

protected Sequence(String sequenceName)
Deprecated. 
Constructor creating a Sequence with the given primary key.

Parameters:
sequenceName - the name of the sequence; must not be null.
Method Detail

getSequenceName

public String getSequenceName()
Deprecated. 
Get the name of the sequence.

Returns:
the name of the sequence.

getNextValue

public long getNextValue()
Deprecated. 
Get the next value (i.e. the first unused value) for this sequence.

Returns:
the next value (i.e. the first unused value) for this sequence.

setNextValue

public void setNextValue(long nextValue)
Deprecated. 
Set the next value (i.e. the first unused value) for this sequence.

Parameters:
nextValue - the next value (i.e. the first unused value) for this sequence.

Cumulus4j API
(1.1.0)

Copyright © 2013 NightLabs Consulting GmbH. All Rights Reserved.