com.rethinkdb.gen.ast.Replace Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of qj-rethinkdb-driver Show documentation
Show all versions of qj-rethinkdb-driver Show documentation
Java driver for RethinkDB (Modified from Official version)
// Autogenerated by metajava.py.
// Do not edit this file directly.
// The template for this file is located at:
// ../../../../../../../../templates/AstSubclass.java
package com.rethinkdb.gen.ast;
import com.rethinkdb.gen.proto.TermType;
import com.rethinkdb.gen.exc.ReqlDriverError;
import com.rethinkdb.model.Arguments;
import com.rethinkdb.model.OptArgs;
import com.rethinkdb.ast.ReqlAst;
public class Replace extends ReqlExpr {
public Replace(Object arg) {
this(new Arguments(arg), null);
}
public Replace(Arguments args){
this(args, null);
}
public Replace(Arguments args, OptArgs optargs) {
super(TermType.REPLACE, args, optargs);
}
public Replace optArg(String optname, Object value) {
OptArgs newOptargs = OptArgs.fromMap(optargs).with(optname, value);
return new Replace(args, newOptargs);
}
public Replace optArg(String optname, ReqlFunction0 value) {
OptArgs newOptargs = OptArgs.fromMap(optargs).with(optname, value);
return new Replace(args, newOptargs);
}
public Replace optArg(String optname, ReqlFunction1 value) {
OptArgs newOptargs = OptArgs.fromMap(optargs).with(optname, value);
return new Replace(args, newOptargs);
}
public Replace optArg(String optname, ReqlFunction2 value) {
OptArgs newOptargs = OptArgs.fromMap(optargs).with(optname, value);
return new Replace(args, newOptargs);
}
public Replace optArg(String optname, ReqlFunction3 value) {
OptArgs newOptargs = OptArgs.fromMap(optargs).with(optname, value);
return new Replace(args, newOptargs);
}
public Replace optArg(String optname, ReqlFunction4 value) {
OptArgs newOptargs = OptArgs.fromMap(optargs).with(optname, value);
return new Replace(args, newOptargs);
}
}