Examples of OCObject


Examples of com.ipc.oce.OCObject

    OCQueryResultSelection selection = queryForSelection(query, params);
   
    resultList = new ArrayList<OCObject>(selection.size());
   
    while (selection.next()) {
      OCObject obj = new OCObject(selection.getObject(0));
      resultList.add(obj);
    }
    return resultList;
  }
View Full Code Here

Examples of com.ipc.oce.OCObject

   *            имя поля
   * @return
   * @throws JIException
   */
  public OCObject getObject(String fieldName) throws JIException {
    return new OCObject(get(fieldName));
  }
View Full Code Here

Examples of com.ipc.oce.OCObject

   * @param aIndex индекс поля
   * @return
   * @throws JIException
   */
  public OCObject getObject(int aIndex) throws JIException {
    return new OCObject(callMethodA("Get", new Object[] { new JIVariant(
        aIndex) })[0]);
  }
View Full Code Here

Examples of com.ipc.oce.OCObject

   * @return
   * @throws JIException
   */
  public String xmlString(Object object) throws JIException{
    if (object instanceof OCObject) {
      OCObject oco = (OCObject) object;
      return callMethodA(
          "XMLString",
          new Object[]{ocObject2Dispatch(oco)}
          )[0].getObjectAsString2();
    } else {
View Full Code Here

Examples of com.ipc.oce.OCObject

   * @param reader Объект, через который происходит чтение XML
   * @return Значение считанного типа
   * @throws JIException
   */
  public OCObject readXML(OCXMLReader reader) throws JIException{
    return new OCObject(callMethodA("ReadXML", new Object[]{ocObject2Dispatch(reader)})[0]);
  }
View Full Code Here

Examples of com.ipc.oce.OCObject

   * @param type Тип значения, которое должно быть прочитано из XML. Если тип не указан, то будет произведена попытка определения типа значения непосредственно из представления XML. Если тип не указан и установить его не представляется возможным, или считываемые данные не соответствуют значению типа, то будет вызвано исключение.
   * @return Значение считанного типа
   * @throws JIException
   */
  public OCObject readXML(OCXMLReader reader, OCType type) throws JIException{
    return new OCObject(callMethodA("ReadXML", new Object[] {
        ocObject2Dispatch(reader),
        type != null ? ocObject2Dispatch(type) : null })[0]);
  }
View Full Code Here

Examples of com.ipc.oce.OCObject

      }
      xmlData = com.ipc.oce.xml.xerces.Utils.document2XML(w3cDocument);
    }
    OCXMLReader xmlReader = appInstance.newXMLReader();
    xmlReader.setString(xmlData);
    OCObject object = appInstance.readXML(xmlReader);
    return object;
  }
View Full Code Here

Examples of com.ipc.oce.OCObject

        );
    if (objects == null || objects.length < 1) {
      throw new JIException(-1,
          "GET(" + i + ") returns null or zero elements");
    }
    return new OCObject(objects[0]);
  }
View Full Code Here

Examples of com.ipc.oce.OCObject

  public OCObject find(String objectName) throws JIException {
    JIVariant var = callMethodA(
        "Find",
        new Object[]{JIVariant.makeVariant(objectName)}
        )[0];
    OCObject obj = null;
    if (var.getType() != JIVariant.VT_EMPTY) {
      obj = new OCObject(var);
    }
    return obj;
  }
View Full Code Here

Examples of com.ipc.oce.OCObject

 
 
 
  @Override
  public OCDocumentMetadataObject find(String objectName) throws JIException {
    OCObject object = super.find(objectName);
    if (object != null) {
      return new OCDocumentMetadataObject(object);
    } else {
      return null;
    }
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.