return getDB().getCollection(_sequenceCollectionName);
}
@Override
public int nextSequenceValue(String sequenceName) {
QueryMongoDBObject query = new QueryMongoDBObject().forID(sequenceName);
UpdateMongoDBObject update = new UpdateMongoDBObject().$inc(SEQUENCE_VALUE_PROPERTY_NAME);
MongoDBObject modifiedObject = new MongoDBObject(getSequenceCollection().findAndModify(query, null, null, false, update, true, true));
return modifiedObject.getInt(SEQUENCE_VALUE_PROPERTY_NAME);
}