Package com.ipc.oce.query

Examples of com.ipc.oce.query.QueryTemplate


    app.exit();
  }
 
  @Test
  public void getResultAndUnload() throws JIException {
    QueryTemplate qt = new QueryTemplate(app);
    OCQueryResultSelection selection = qt.queryForSelection("SELECT * FROM Catalog.Валюты");
    OCQueryResult result = selection.getOwner();
    OCValueTable vt = result.unload();
    assertTrue(vt.size() > 0);
    OCValueTableColumnCollection vtCC = vt.getColumns();
    int vtCCSZ = vtCC.size();
View Full Code Here


      if (query == null) {
        return Response.status(Status.BAD_REQUEST).build();
      }
      OCApp app = getApplication();
     
      QueryTemplate template = new QueryTemplate(app);
     
      if (LOG.isInfoEnabled()) {
        LOG.info("Query: " + query);
      }
     
      OCQueryResultSelection selection = template.queryForSelection(query);
      MarshalHelper marshalHelper = new MarshalHelper(app);
      String xml = marshalHelper.selection2xml(selection, Integer.valueOf(mode));
      return Response.ok(xml).build();
    } catch (Exception e) {
      throw new WebApplicationException(e);
View Full Code Here

TOP

Related Classes of com.ipc.oce.query.QueryTemplate

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.