Examples of OCMetadataCatalogCollection


Examples of com.ipc.oce.metadata.collection.OCMetadataCatalogCollection

   *
   * @return
   * @throws JIException
   */
  public OCMetadataCatalogCollection getCatalogs() throws JIException {
    return new OCMetadataCatalogCollection(get("Catalogs"));
  }
View Full Code Here

Examples of com.ipc.oce.metadata.collection.OCMetadataCatalogCollection

  @Test
  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;
View Full Code Here

Examples of com.ipc.oce.metadata.collection.OCMetadataCatalogCollection

              SCHEMA_DOCUMENT, dmo.getName(), "TABLE",
              dmo.getComment(), null, null, null, null, null });
        }
      }
      if (schemaPattern == null || schemaPattern.equals(SCHEMA_CATALOG)) {
        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 });
        }
      }
View Full Code Here

Examples of com.ipc.oce.metadata.collection.OCMetadataCatalogCollection

              "NO" // IS_AUTOINCREMENT
          });
        }
      }
      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
View Full Code Here

Examples of com.ipc.oce.metadata.collection.OCMetadataCatalogCollection

            null, // SQL_DATETIME_SUB - unused
            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
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.