object/src/main/java/com/orientechnologies/orient/object/db/OObjectDatabaseTx.java
protected void convertParameters(final Object... iArgs) {
    if (iArgs == null)
      return;

    // FILTER PARAMETERS
    for (int i = 0; i < iArgs.length; ++i)
      iArgs[i] = convertParameter(iArgs[i]);
  }
protected void convertParameters(final Object... iArgs) {
    if (iArgs == null)
      return;

    // FILTER PARAMETERS
    for (int i = 0; i < iArgs.length; ++i)
      iArgs[i] = convertParameter(iArgs[i]);
  }
Converts an array of parameters: if a POJO is used, then replace it with its record id.

@param iArgs Array of parameters as Object

@see #convertParameter(Object)