Examples of OCValueTable


Examples of com.ipc.oce.OCValueTable

   *            выгружены все колонки.
   * @return OCValueTable
   * @throws JIException
   */
  public OCValueTable unload(OCArray rows, String columns) throws JIException {
    return new OCValueTable(callMethodA("Unload", new Object[]{
        rows != null ? ocObject2Dispatch(rows) : null,
        new JIVariant(columns)
    })[0]);
  }
View Full Code Here

Examples of com.ipc.oce.OCValueTable

   *            выгружены все колонки.
   * @return OCValueTable
   * @throws JIException
   */
  public OCValueTable unloadColumns(String columns) throws JIException {
    return new OCValueTable(callMethodA("UnloadColumns", new Object[]{new JIVariant(columns)})[0]);
  }
View Full Code Here

Examples of com.ipc.oce.OCValueTable

  @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();
    assertTrue(vtCCSZ > 0);
    System.out.println(vt.size());
    for (int i = 1; i < vtCCSZ; i++) {
      System.out.print(vtCC.getTableColumn(i).getName() + "\t");
    }
    System.out.println();
    for (OCValueTableRow element : vt) {
View Full Code Here

Examples of com.ipc.oce.OCValueTable

    int index = 1;
    for (OCVariant remRef : removedRefs) {
      _OCCommonRef ref = ((_OCCommonRef)remRef.value());
      System.out.println("\t" + index++ + " " + ref.toString() + " [" +ref.getUUID().toString() + "]");
    }
    OCValueTable table = app.findByRef(removedRefs);
    OCValueTableColumnCollection columns = table.getColumns();
    int colSZ = columns.size();
    System.out.println();
    for (int z =0; z < colSZ; z++) {
      OCValueTableColumn column = columns.getTableColumn(z);
      System.out.print(column.getName()+"\t|\t");
View Full Code Here

Examples of com.ipc.oce.OCValueTable

    OCCatalogRef orgRef = catSel.getRef();
   
    query.setParameter("Организация", new OCVariant(orgRef));
   
    OCQueryResult result = query.execute();
    OCValueTable table = result.unload();
    System.out.println(table.listColumns());
   
    OCStructure structure = app.newStructure();
    structure.insert("ТаблицаДанных", table);
   
    ReportProcessor rProc = app.getReportProcessor();
View Full Code Here

Examples of com.ipc.oce.OCValueTable

   * Выгружает табличную часть в таблицу значений.
   * @return OCValueTable
   * @throws JIException
   */
  public OCValueTable upload() throws JIException{
    return new OCValueTable(callMethodA("Unload"));
  }
View Full Code Here

Examples of com.ipc.oce.OCValueTable

   * @param columns  Список колонок для копирования в формате: "Колонка1, Колонка2...". Если список не задан, то будут скопированы все колонки.
   * @return OCValueTable
   * @throws JIException
   */
  public OCValueTable upload(String columns) throws JIException{
    return new OCValueTable(callMethodA("Unload", new Object[]{null, new JIVariant(columns)})[0]);
  }
View Full Code Here

Examples of com.ipc.oce.OCValueTable

   *
   * @return
   * @throws JIException
   */
  public OCValueTable unload() throws JIException {
    return new OCValueTable(callMethodA("Unload"));
  }
View Full Code Here

Examples of com.ipc.oce.OCValueTable

    OCObject resObject = null;
    if (unloadType != null) {
      res = callMethodA("Unload", new JIVariant(ocObject2Dispatch(unloadType)))[0];
      String unloadTypeString = unloadType.getFieldName();
      if (unloadTypeString.endsWith("Linear") || unloadTypeString.endsWith("Прямой")) {
        resObject = new OCValueTable(res);
      } else {
        resObject = new OCValueTree(res);
      }
    } else {
      resObject = unload();
View Full Code Here

Examples of com.ipc.oce.OCValueTable

  public OCValueTable getSliceFirst(Date startDate, OCStructure structure) throws JIException {
    JIVariant var = callMethodA("SliceFirst", new Object[]{
        startDate != null ? new JIVariant(startDate) : null,
        structure != null ? new JIVariant(ocObject2Dispatch(structure)) : null
    })[0];
    OCValueTable vt = null;
   
    if (var.getType() != JIVariant.VT_EMPTY) {
      vt = new OCValueTable(var);
    }
    return vt;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.