use of com.orientechnologies.orient.core.command.OCommandRequest in project orientdb by orientechnologies.
the class OScriptTask method execute.
public Object execute(ODistributedRequestId requestId, final OServer iServer, ODistributedServerManager iManager, final ODatabaseDocumentInternal database) throws Exception {
ODistributedServerLog.debug(this, iManager.getLocalNodeName(), getNodeSource(), DIRECTION.IN, "execute command=%s db=%s", text.toString(), database.getName());
final OCommandRequest cmd = database.command(new OCommandScript(text));
final Object res;
if (params != null)
// EXECUTE WITH PARAMETERS
res = cmd.execute(params);
else
res = cmd.execute();
return res;
}
Aggregations