Package | Description |
---|---|
com.orientechnologies.orient.core.command.script | |
com.orientechnologies.orient.core.db | |
com.orientechnologies.orient.core.db.document |
Constructor and Description |
---|
OCommandScriptException(OCommandScriptException exception) |
Modifier and Type | Method and Description |
---|---|
default OResultSet |
ODatabase.execute(String language,
String script,
Map<String,?> args)
Execute a script of a specified query language The result set has to be closed after usage
Sample usage:
Map<String, Object> params = new HashMapMap<>(); params.put("surname1", "Jones"); params.put("surname2", "May");
params.put("surname3", "Ali");
String script = "INSERT INTO Person SET name = 'foo', surname = :surname1;"+ "INSERT INTO Person SET name = 'bar', surname =
:surname2;"+ "INSERT INTO Person SET name = 'baz', surname = :surname3;";
OResultSet rs = db.execute("sql", script, params); ... rs.close();
|
default OResultSet |
ODatabase.execute(String language,
String script,
Object... args)
Execute a script in a specified query language.
|
Modifier and Type | Method and Description |
---|---|
OResultSet |
ODatabaseDocumentTx.execute(String language,
String script,
Map<String,?> args)
Deprecated.
|
OResultSet |
ODatabaseDocumentTx.execute(String language,
String script,
Object... args)
Deprecated.
|
Copyright © 2009–2020 OrientDB. All rights reserved.