5556575859606162
} @Override public MongoDBPropertyContext writeConcern(WriteConcern writeConcern) { Contracts.assertParameterNotNull( writeConcern, "writeConcern" ); addPropertyOption( new WriteConcernOption(), writeConcern ); return this; }
6263646566676869
} @Override public MongoDBPropertyContext writeConcern(WriteConcernType writeConcern) { Contracts.assertParameterNotNull( writeConcern, "writeConcern" ); addPropertyOption( new WriteConcernOption(), writeConcern.getWriteConcern() ); return this; }
4849505152535455
} @Override public MongoDBGlobalContext writeConcern(WriteConcernType writeConcern) { Contracts.assertParameterNotNull( writeConcern, "writeConcern" ); addGlobalOption( new WriteConcernOption(), writeConcern.getWriteConcern() ); return this; }
} @Override public MongoDBGlobalContext writeConcern(WriteConcern writeConcern) { Contracts.assertParameterNotNull( writeConcern, "writeConcern" ); addGlobalOption( new WriteConcernOption(), writeConcern ); return this; }
50515253545556
static class WriteConcernConverter implements AnnotationConverter<WriteConcern> { @Override public OptionValuePair<?> convert(WriteConcern annotation) { return OptionValuePair.getInstance( new WriteConcernOption(), annotation.value() ); }
4041424344454647
super( context ); } @Override public MongoDBGlobalContext writeConcern(WriteConcernType concern) { addGlobalOption( new WriteConcernOption(), concern ); return this; }
super( context ); } @Override public MongoDBEntityContext writeConcern(WriteConcernType concern) { addEntityOption( new WriteConcernOption(), concern ); return this; }