return new WriteConcern(wPolicy, wtimeout, false, jsync);
return new WriteConcern(w, wtimeout, false, jsync);
}
ReadPreference getReadPreference() {
ComboBox readBox = (ComboBox) getBoundUnit(Item.rpPreference);
ReadPref rpEnm = ReadPref.values()[readBox.value];
BasicDBObject tag = (BasicDBObject) ((DocBuilderField) getBoundComponentUnit(Item.rpTag)).getDBObject();
if (tag != null)
return ReadPreference.valueOf(rpEnm.name(), tag);
return ReadPreference.valueOf(rpEnm.name());