Examples of OCCatalogMetadataObject


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

    super(aDispatch);
  }

  @Override
  public OCCatalogMetadataObject get(int i) throws JIException {
    return new OCCatalogMetadataObject(super.get(i));
  }
View Full Code Here

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

  @Override
  public OCCatalogMetadataObject find(String objectName) throws JIException {
    OCObject object = super.find(objectName);
    if (object != null) {
      return new OCCatalogMetadataObject(object);
    } else {
      return null;
    }
  }
View Full Code Here

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

    EnumVARIANT<OCCatalogMetadataObject> enumV = new EnumVARIANT<OCCatalogMetadataObject>(this) {
     
      @Override
      protected OCCatalogMetadataObject castToGeneric(JIVariant variant) {
        try {
          return new OCCatalogMetadataObject(variant);
        } catch (JIException e) {
          throw new RuntimeException(e);
        }
      }
    };
View Full Code Here

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

  public void findByFullName() throws JIException {
    OCConfigurationMetadataObject cmo = app.getMetadata();
    long s = System.currentTimeMillis();
    OCMetadataCatalogCollection cc = cmo.getCatalogs();
    int counter = 0;
    OCCatalogMetadataObject last = null;
    for (OCCatalogMetadataObject meta : cc) {
      counter++;
      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

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

   * Предоставляет доступ к объекту описания метаданных справочника.
   * @return
   * @throws JIException
   */
  public OCCatalogMetadataObject getMetadata() throws JIException{
    return new OCCatalogMetadataObject(super.getMetadata());
  }
View Full Code Here

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

    return OCApp.getInstance(getAssociatedSessionID()).getMetadata().getCatalogs().find(managerName);
  }

  @Override
  public OCCatalogMetadataObject getMetadata() throws JIException {
    return new OCCatalogMetadataObject(super.getMetadata());
  }
View Full Code Here

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

        OCMetadataCatalogCollection catalogCollection = metadata
            .getCatalogs();
        int colSZ = catalogCollection.size();

        for (int z = 0; z < colSZ; z++) {
          OCCatalogMetadataObject cmo = catalogCollection.get(z);
          lrs.createRowAndSetValues(new Object[] { null,
              SCHEMA_CATALOG, cmo.getName(), "TABLE",
              cmo.getComment(), null, null, null, null, null });
        }
      }
    } catch (JIException e) {
      throw new SQLException(e);
    }
View Full Code Here

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

        }
      }
      if (schemaPattern == null || schemaPattern.equals(SCHEMA_CATALOG)) {
        OCMetadataCatalogCollection catalogCollection = metadata
            .getCatalogs();
        OCCatalogMetadataObject cmo = catalogCollection
            .find(tableNamePattern);
        if (cmo != null) {

          OCMetadataAttributeCollection mac = cmo.getAttributes();
          attribute2resultSet(mac, lrs, SCHEMA_CATALOG,
              tableNamePattern);

          int colSZ = catalogCollection.size();

          // add Code
          lrs.createRowAndSetValues(new Object[] { null, // TABLE_CAT
              SCHEMA_CATALOG, // TABLE_SCHEM
              tableNamePattern, // TABLE_NAME
              "Code", // COLUMN_NAME
              Types.VARCHAR, // DATA_TYPE
              "VARCHAR", // TYPE_NAME
              cmo.getCodeLength(), // COLUMN_SIZE
              null, // BUFFER_LENGTH
              null, // DECIMAL_DIGITS
              Integer.valueOf(10), // NUM_PREC_RADIX
              Integer.valueOf(columnNullableUnknown), // NULLABLE
              null, // REMARKS
View Full Code Here

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

            Integer.valueOf(10) // NUM_PREC_RADIX
        });
      }

      OCMetadataCatalogCollection cc = config.getCatalogs();
      OCCatalogMetadataObject cmo = null;
      sz = cc.size();
      for (int i = 0; i < sz; i++) {
        cmo = cc.get(i);
        String typeName = cmo.getFullName();
        lrs.createRowAndSetValues(new Object[] { typeName, // TYPE_NAME
            Integer.valueOf(Types.STRUCT), // DATA_TYPE
            Integer.valueOf(0), // PRECISION
            null, // LITERAL_PREFIX
            null, // LITERAL_SUFFIX
View Full Code Here

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

   * Предоставляет доступ к объекту описания метаданных справочника. Другой путь получения того же значения - через свойство глобального контекста Метаданные. Например: Метаданные.Справочники.Номенклатура.
   * @return OCCatalogMetadataObject
   * @throws JIException
   */
  public OCCatalogMetadataObject getMetadata() throws JIException {
    return new OCCatalogMetadataObject(super.getMetadata());
  }
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.