Package org.gdbms.engine.customQuery

Examples of org.gdbms.engine.customQuery.CustomQuery


   * @throws DriverLoadException
   * @see org.gdbms.engine.strategies.Strategy#custom(String,
   *      org.gdbms.engine.instruction.CustomAdapter)
   */
  public DataSource custom(CustomAdapter instr) throws ExecutionException {
    CustomQuery query = QueryManager.getQuery(instr.getQueryName());

    if (query == null) {
      throw new RuntimeException("No such custom query");
    }

    try {
      return query.evaluate(instr.getTables(), instr.getValues());
    } catch (DriverLoadException e) {
      throw new ExecutionException(e);
    } catch (NoSuchTableException e) {
      throw new ExecutionException(e);
    } catch (DataSourceCreationException e) {
View Full Code Here

TOP

Related Classes of org.gdbms.engine.customQuery.CustomQuery

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.