Class OfferSequence
- java.lang.Object
-
- fr.gouv.vitam.storage.engine.common.model.OfferSequence
-
public class OfferSequence extends java.lang.ObjectOffer sequence.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCOUNTER_FIELDstatic java.lang.StringID_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 longgetCounter()Gets the counterjava.lang.StringgetId()Gets the idvoidsetCounter(long counter)Sets the countervoidsetId(java.lang.String id)Sets the idorg.bson.DocumenttoDocument()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
-
-