Package com.orientechnologies.orient.core.exception

Examples of com.orientechnologies.orient.core.exception.OQueryParsingException


  protected boolean assignTarget(Map<Object, Object> iArgs) {
    if (!super.assignTarget(iArgs)) {
      if (parsedTarget.getTargetIndex() != null)
        searchInIndex();
      else
        throw new OQueryParsingException("No source found in query: specify class, cluster(s), index or single record(s). Use "
            + getSyntax());
    }
    return true;
  }
View Full Code Here


   */
  @SuppressWarnings("unchecked")
  public List<T> run(final Object... iArgs) {
    final ODatabaseRecordInternal database = ODatabaseRecordThreadLocal.INSTANCE.get();
    if (database == null)
      throw new OQueryParsingException("No database configured");

    setParameters(iArgs);
    return (List<T>) database.getStorage().command(this);
  }
View Full Code Here

    }

    try {
      return format.parse((String) iParams[0]);
    } catch (ParseException e) {
      throw new OQueryParsingException("Error on formatting date '" + iParams[0] + "' using the format: " + format.toPattern(), e);
    }
  }
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.exception.OQueryParsingException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.