Class OfferSequence
- java.lang.Object
-
- fr.gouv.vitam.storage.engine.common.model.OfferSequence
-
public class OfferSequence extends java.lang.Object
Offer sequence.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
COUNTER_FIELD
static java.lang.String
ID_FIELD
-
Constructor Summary
Constructors Constructor Description OfferSequence()
Constructor, jackson usage onlyOfferSequence(java.lang.String id)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getCounter()
Gets the counterjava.lang.String
getId()
Gets the idvoid
setCounter(long counter)
Sets the countervoid
setId(java.lang.String id)
Sets the idorg.bson.Document
toDocument()
Ugly workaround to keep object type when convert JSON to Mongo Document TODO: switch to mongo-java-driver >= 3.5.0 and use PojoCodecProvider
-
-
-
Field Detail
-
COUNTER_FIELD
public static final java.lang.String COUNTER_FIELD
- See Also:
- Constant Field Values
-
ID_FIELD
public static final java.lang.String ID_FIELD
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public java.lang.String getId()
Gets the id- Returns:
- the id
-
setId
public void setId(java.lang.String id)
Sets the id- Parameters:
id
-
-
getCounter
public long getCounter()
Gets the counter- Returns:
- counter
-
setCounter
public void setCounter(long counter)
Sets the counter- Parameters:
counter
- counter
-
toDocument
public org.bson.Document toDocument()
Ugly workaround to keep object type when convert JSON to Mongo Document TODO: switch to mongo-java-driver >= 3.5.0 and use PojoCodecProvider- Returns:
- Document
- See Also:
- PojoCodecProvider
-
-