public class OfferSequence extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
COUNTER_FIELD |
static String |
ID_FIELD |
| Constructor and Description |
|---|
OfferSequence()
Constructor, jackson usage only
|
OfferSequence(String id)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCounter()
Gets the counter
|
String |
getId()
Gets the id
|
void |
setCounter(long counter)
Sets the counter
|
void |
setId(String id)
Sets the id
|
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
|
public static final String COUNTER_FIELD
public static final String ID_FIELD
public OfferSequence()
public OfferSequence(String id)
id - idpublic String getId()
public void setId(String id)
id - public long getCounter()
public void setCounter(long counter)
counter - counterpublic org.bson.Document toDocument()
Copyright © 2018 Vitam. All rights reserved.