List of usage examples for com.mongodb BasicDBObjectBuilder BasicDBObjectBuilder
public BasicDBObjectBuilder()
From source file:org.ff4j.store.mongodb.FeatureDBObjectBuilder.java
License:Apache License
/** * Mongo internal object representing attribute id. * * @param value/*from w ww .java 2 s . c o m*/ * target value * @return * internal mong object */ public DBObject getFeatUid(String value) { return new BasicDBObjectBuilder().add(UUID, value).get(); }
From source file:org.ff4j.store.mongodb.FeatureDBObjectBuilder.java
License:Apache License
/** * Mongo internal object representing attribute 'enable'. * * @param value/*w w w. ja v a2 s . c o m*/ * target value * @return * internal mong object */ public DBObject getEnable(boolean value) { return new BasicDBObjectBuilder().add(ENABLE, value).get(); }
From source file:org.ff4j.store.mongodb.FeatureDBObjectBuilder.java
License:Apache License
/** * Mongo internal object representing attribute 'description'. * * @param value//w w w . j a v a 2 s.c o m * target value * @return * internal mong object */ public DBObject getDescription(String value) { return new BasicDBObjectBuilder().add(DESCRIPTION, value).get(); }
From source file:org.ff4j.store.mongodb.FeatureDBObjectBuilder.java
License:Apache License
/** * Mongo internal object representing attribute 'strategy'. * * @param value/*from ww w .java 2s . c o m*/ * target value * @return * internal mong object */ public DBObject getStrategy(String value) { return new BasicDBObjectBuilder().add(STRATEGY, value).get(); }
From source file:org.ff4j.store.mongodb.FeatureDBObjectBuilder.java
License:Apache License
/** * Mongo internal object representing attribute 'expression'. * //from w w w . j av a 2 s. c o m * @param value * target value * @return internal mongo object */ public DBObject getExpression(String value) { return new BasicDBObjectBuilder().add(EXPRESSION, value).get(); }
From source file:org.ff4j.store.mongodb.FeatureDBObjectBuilder.java
License:Apache License
/** * Mongo internal object representing attribute 'expression'. * /*from w ww. java 2 s.c o m*/ * @param value * target value * @return internal mongo object */ public DBObject getGroupName(String value) { return new BasicDBObjectBuilder().add(GROUPNAME, value).get(); }
From source file:org.ff4j.store.mongodb.FeatureDBObjectBuilder.java
License:Apache License
/** * Mongo internal object representing attribute 'expression'. * //from w w w. j a v a2 s . c om * @param value * target value * @return internal mongo object */ public DBObject getRoles(String value) { return new BasicDBObjectBuilder().add(ROLES, value).get(); }
From source file:org.ff4j.store.mongodb.PropertyDBObjectBuilder.java
License:Apache License
/** * Mongo internal object representing attribute id. * * @param value//www. ja v a 2 s. c o m * target value * @return * internal mong object */ public DBObject getName(String value) { return new BasicDBObjectBuilder().add(PROPERTY_NAME, value).get(); }
From source file:org.ff4j.store.mongodb.PropertyDBObjectBuilder.java
License:Apache License
/** * Mongo internal object representing attribute 'description'. * * @param value/*from ww w .j a v a2 s .co m*/ * target value * @return * internal mong object */ public DBObject getDescription(String value) { return new BasicDBObjectBuilder().add(PROPERTY_DESCRIPTION, value).get(); }
From source file:org.ff4j.store.mongodb.PropertyDBObjectBuilder.java
License:Apache License
/** * Mongo internal object representing attribute 'strategy'. * * @param value//from w ww . j a v a 2 s.co m * target value * @return * internal mong object */ public DBObject getType(String value) { return new BasicDBObjectBuilder().add(PROPERTY_TYPE, value).get(); }