core/src/main/java/com/orientechnologies/orient/core/db/document/ODatabaseDocumentAbstract.java
public OCommandRequest command(final OCommandRequest iCommand) {
    checkSecurity(ORule.ResourceGeneric.COMMAND, ORole.PERMISSION_READ);
    checkIfActive();

    final OCommandRequestInternal command = (OCommandRequestInternal) iCommand;

    try {
      command.reset();
      return command;

    } catch (Exception e) {
      throw OException.wrapException(new ODatabaseException("Error on command execution"), e);
    }
  }
public OCommandRequest command(final OCommandRequest iCommand) {
    checkSecurity(ORule.ResourceGeneric.COMMAND, ORole.PERMISSION_READ);
    checkIfActive();

    final OCommandRequestInternal command = (OCommandRequestInternal) iCommand;

    try {
      command.reset();
      return command;

    } catch (Exception e) {
      throw OException.wrapException(new ODatabaseException("Error on command execution"), e);
    }
  }
public OCommandRequest command ( final OCommandRequest iCommand ) { checkSecurity ( ORule . ResourceGeneric . COMMAND , ORole . PERMISSION_READ ) ; checkIfActive ( ) ; final OCommandRequestInternal command = ( OCommandRequestInternal ) iCommand ; try { command . reset ( ) ; return command ; } catch ( Exception e ) { throw OException . wrapException ( new ODatabaseException ( "Error on command execution" ) , e ) ; } }
{@inheritDoc}
{