Examples of OCArray


Examples of com.ipc.oce.OCArray

   *            выгружены в массив
   * @return OCArray
   * @throws JIException
   */
  public OCArray unloadColumn(String columnName) throws JIException {
    return new OCArray(callMethodA("UnloadColumn", new Object[]{new JIVariant(columnName)})[0]);
  }
View Full Code Here

Examples of com.ipc.oce.OCArray

   * @param uriNamespaces массив, соответствующая URI пространства имен экспортируемых пакетов.
   * @return OCXMLSchemaSet
   * @throws JIException
   */
  public OCXMLSchemaSet exportXMLSchema(String[] uriNamespaces) throws JIException{
    OCArray array = OCApp.getInstance(getAssociatedSessionID()).newArray();
    if (uriNamespaces != null) {
      for (String element : uriNamespaces) {
        array.add(new OCVariant(element));
      }
    }
    return exportXMLSchema(array);
  }
View Full Code Here

Examples of com.ipc.oce.OCArray

   * Получает массив URI пространств имен, определенных в данном контексте
   * @return
   * @throws JIException
   */
  public OCArray getNamespaceURIs() throws JIException{
    return new OCArray(callMethodA("NamespaceURIs"));
  }
View Full Code Here

Examples of com.ipc.oce.OCArray

    // prepare parameters
    OCStructure structure = appInstance.newStructure();
   
    //setup event's filtraton
    if (eventTypes != null && eventTypes.length > 0) {
      OCArray array = appInstance.newArray();
      for (String eventName : eventTypes) {
        array.add(new OCVariant(eventName));
      }
      structure.insert(FLD_EVENT, array);
    }
   
    // setup start date filtration
    if (startDate != null) {
      structure.insert(FLD_START_DATE, startDate);
    }
   
    // setup end date filtration
    if (endDate != null) {
      structure.insert(FLD_END_DATE, endDate);
    }

    // setup metadata filtration
    if (metadataObject != null && metadataObject.length > 0) {
      OCArray array = appInstance.newArray();
      for (_OCCommonMetadataObject cmo : metadataObject) {
        OCVariant variant = new OCVariant(cmo);
        array.add(variant);
      }
      structure.insert(FLD_METADATA, array);
    }
   
    // insert levels' condition
    if (eventLevels != null && eventLevels.length > 0) {
      OCArray array = appInstance.newArray();
      for (EEventLogLevel level : eventLevels) {
        OCVariant variant = new OCVariant(level);
        array.add(variant);
      }
      structure.insert(FLD_EVENT_LEVEL, array);
    }
   
    return getEventLog(structure);
View Full Code Here

Examples of com.ipc.oce.OCArray

*/
public class JUFindByRef extends BasicTest {

  @Test
  public void findByRef1() throws JIException {
    OCArray removedRefs = app.findMarkedForDeletion();
    System.out.println("Removes size: " + removedRefs.size());
    int index = 1;
    for (OCVariant remRef : removedRefs) {
      _OCCommonRef ref = ((_OCCommonRef)remRef.value());
      System.out.println("\t" + index++ + " " + ref.toString() + " [" +ref.getUUID().toString() + "]");
    }
View Full Code Here

Examples of com.ipc.oce.OCArray

   * @throws JIException
   *             ошибка DCOM
   */
  public OCValueTable getTurnovers(Date startDate, Date endDate, OCChartOfCharacteristicTypesRef subkonto, OCChartOfCharacteristicTypesRef korSubkonto, OCStructure structure, String dimension, String resouces) throws JIException {
    OCApp inst = OCApp.getInstance(getAssociatedSessionID());
    OCArray subkontoArray = null;
    OCArray korSubkontoArray = null;
    if (subkonto != null) {
      subkontoArray = inst.newArray();
      subkontoArray.add(new OCVariant(subkonto));
    }
    if (korSubkonto != null) {
      korSubkontoArray = inst.newArray();
      korSubkontoArray.add(new OCVariant(korSubkonto));
    }
    return getTurnovers(startDate, endDate, subkontoArray, korSubkontoArray, structure, dimension, resouces);
  }
View Full Code Here

Examples of com.ipc.oce.OCArray

   * @throws JIException
   *             ошибка обращения к DCOM-серверу
   */
  public OCValueTable getDrCrTurnovers(Date startDate, Date endDate, OCChartOfCharacteristicTypesRef subkontoDr, OCChartOfCharacteristicTypesRef subkontoCr, OCStructure structure, String dimension, String resouces) throws JIException {
    OCApp inst = OCApp.getInstance(getAssociatedSessionID());
    OCArray subkontoDrArray = null;
    OCArray subkontoCrArray = null;
    if (subkontoDr != null) {
      subkontoDrArray = inst.newArray();
      subkontoDrArray.add(new OCVariant(subkontoDr));
    }
    if (subkontoCr != null) {
      subkontoCrArray = inst.newArray();
      subkontoCrArray.add(new OCVariant(subkontoCr));
    }
    return getDrCrTurnovers(startDate, endDate, subkontoDrArray, subkontoCrArray, structure, dimension, resouces);
  }
View Full Code Here

Examples of com.ipc.oce.OCArray

   * @return В таблице содержатся поля "ОборотДт" и "ОборотКт".
   * @throws JIException
   */
  public OCValueTable getBalance(Date date, OCChartOfCharacteristicTypesRef ref, OCStructure structure, String dimensions, String resources) throws JIException {
    OCApp inst = OCApp.getInstance(getAssociatedSessionID());
    OCArray refsArray = null;
    if (ref != null) {
      refsArray = inst.newArray();
      refsArray.add(new OCVariant(ref));
    }
    return getBalance(date, refsArray, structure, dimensions, resources);
  }
View Full Code Here

Examples of com.ipc.oce.OCArray

   *            в массив.
   * @return OCArray
   * @throws JIException
   */
  public OCArray unloadColumn(String column) throws JIException {
    return new OCArray(callMethodA("UnloadColumn", new Object[]{
        column != null ? new JIVariant(column) : null
    })[0]);
  }
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.