com.rethinkdb.gen.ast.Db Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rethinkdb-driver Show documentation
Show all versions of rethinkdb-driver Show documentation
Official Java driver for RethinkDB
// 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 Db extends ReqlAst {
public Db(Object arg) {
this(new Arguments(arg), null);
}
public Db(Arguments args){
this(args, null);
}
public Db(Arguments args, OptArgs optargs) {
super(TermType.DB, args, optargs);
}
public Table table(Object expr) {
Arguments arguments = new Arguments(this);
arguments.coerceAndAdd(expr);
return new Table(arguments);
}
public TableCreate tableCreate(Object expr) {
Arguments arguments = new Arguments(this);
arguments.coerceAndAdd(expr);
return new TableCreate(arguments);
}
public TableDrop tableDrop(Object expr) {
Arguments arguments = new Arguments(this);
arguments.coerceAndAdd(expr);
return new TableDrop(arguments);
}
public TableList tableList() {
Arguments arguments = new Arguments(this);
return new TableList(arguments);
}
public Config config() {
Arguments arguments = new Arguments(this);
return new Config(arguments);
}
public Wait wait_() {
Arguments arguments = new Arguments(this);
return new Wait(arguments);
}
public Reconfigure reconfigure() {
Arguments arguments = new Arguments(this);
return new Reconfigure(arguments);
}
public Rebalance rebalance() {
Arguments arguments = new Arguments(this);
return new Rebalance(arguments);
}
public Grant grant(Object expr, Object exprA) {
Arguments arguments = new Arguments(this);
arguments.coerceAndAdd(expr);
arguments.coerceAndAdd(exprA);
return new Grant(arguments);
}
public Info info() {
Arguments arguments = new Arguments(this);
return new Info(arguments);
}
}