Package com.ipc.oce.metadata.objects

Examples of com.ipc.oce.metadata.objects._OCCommonMetadataObject


         
          //== detect ref type ===========================
          // предпологаем что у всех рефов есть метод Metadata, если нет - встроить обработчик и думать дальше
          try {
            // хорошо живется тем у кого есть метаданные...
            _OCCommonMetadataObject metadata = new _OCCommonMetadataObject(unknownObj.callMethodA("Metadata"));
            String refTypeName = metadata.getFullName(); // определяем что это за объект (какого типа? но это точно Ref, поэтому кастим к _OCCommonRef)
            refTypeName = refTypeName.substring(0, refTypeName.indexOf(".") ); // отрезаем конкретный тип
            res = castToRef(unknownObj, OCType.nameToCode(refTypeName));
           
          } catch (Exception e) {
            // ... а тут поселились те кого опознать по "паспорту" неудалось
View Full Code Here


   */
  public _OCCommonMetadataObject findByFullName(String fullName) throws JIException {
    JIVariant var = callMethodA(
        "FindByFullName",
        new Object[]{new JIVariant(fullName)})[0];
    _OCCommonMetadataObject oco = null;
    if (var.getType() != JIVariant.VT_EMPTY) {
      oco = new _OCCommonMetadataObject(var);
    }
    return oco;
  }
View Full Code Here

   * @throws JIException
   */
  public _OCCommonMetadataObject findByType(OCType type) throws JIException {
    JIVariant var = callMethodA("FindByType", new JIVariant(ocObject2Dispatch(type)))[0];
    if (var.getType() != JIVariant.VT_EMPTY) {
      return new _OCCommonMetadataObject(var);
    } else {
      return null;
    }
  }
View Full Code Here

      if (metadataObjects != null && metadataObjects.length > 0) {
      metadataObjectsBnd = new _OCCommonMetadataObject[metadataObjects.length];
      int index = 0;
      for (String metaFullName : metadataObjects) {
          _OCAbstractManager abstractManager = appInstance.findManager(metaFullName);
          _OCCommonMetadataObject commonMetadataObject = abstractManager.getMetadata();
          metadataObjectsBnd[index++] = commonMetadataObject;
      }
      }
     
      return getEventLog(startDate, endDate, eEventLevels, eventTypes, metadataObjectsBnd);
View Full Code Here

      last = meta;
    }
    System.out.println("Catalogs [" + counter + "] enum time: " + (System.currentTimeMillis() - s) + "ms");
   
    s = System.currentTimeMillis();
    _OCCommonMetadataObject oco = cmo.findByFullName(last.getFullName());
   
    System.out.println("Catalog [only one] find time: " + (System.currentTimeMillis() - s) + "ms");
   
   
  }
View Full Code Here

   * @return
   * @throws JIException
   */
  public _OCCommonMetadataObject getMetadata() throws JIException{
    if (metadata == null) {
      metadata = new _OCCommonMetadataObject(callMethodA("Metadata"));
    }
    return metadata;
  }
View Full Code Here

      eventType = EventManager.EVENT_ALL;
    }
    try {
      OCApp app = getApplication();
      _OCAbstractManager abstractManager = app.findManager(metaType);
      _OCCommonMetadataObject commonMetadataObject = abstractManager.getMetadata();
     
      EventManager manager = getEventManager();
     
      Date sDate = null;
      if (startDate != null) {
View Full Code Here

   * @return _OCCommonMetadataObject
   * @throws JIException
   */
  public _OCCommonMetadataObject getMetadata() throws JIException {
    if (metadata == null) {
      metadata = new _OCCommonMetadataObject(callMethodA("Metadata"));
    }
    return metadata;
  }
View Full Code Here

TOP

Related Classes of com.ipc.oce.metadata.objects._OCCommonMetadataObject

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.