Java Script Binding putSimpleField(String field, Bindings options, BasicDBObjectBuilder command)

Here you can find the source of putSimpleField(String field, Bindings options, BasicDBObjectBuilder command)

Description

put Simple Field

License

Open Source License

Declaration

public static void putSimpleField(String field, Bindings options,
              BasicDBObjectBuilder command) 

Method Source Code

//package com.java2s;
// it under the terms of the GNU General Public License as published by

import javax.script.Bindings;

import com.mongodb.BasicDBObjectBuilder;

public class Main {
    public static void putSimpleField(String field, Bindings options,
            BasicDBObjectBuilder command) {
        Object val = options.get(field);
        if (val != null) {
            command.add(field, val);
        }/*from   w ww . j ava2s .c  o m*/
    }
}

Related

  1. convertArray(Bindings from)
  2. documentFromMap(Bindings from)
  3. getBindings(Bindings bindings)
  4. getBindings(Map bindings)
  5. merge(Bindings former, Bindings latter)
  6. toScriptBindings(Map context)