Examples of OCMetadataDocumentCollection


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

   *
   * @return
   * @throws JIException
   */
  public OCMetadataDocumentCollection getDocuments() throws JIException {
    return new OCMetadataDocumentCollection(get("Documents"));
  }
View Full Code Here

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

  }

  public static void main(String[] args) throws IOException, ConfigurationException, JIException {
    OCApp app = getConnection();
    OCConfigurationMetadataObject configurationMetadata = app.getMetadata();
    OCMetadataDocumentCollection documentCollection = configurationMetadata.getDocuments();
    System.out.println(
        configurationMetadata.getName()
        + " "
        + configurationMetadata.getVersion());
    int sz = documentCollection.size();
    for (int z = 0; z < sz; z++) {
      OCDocumentMetadataObject metadataObject = documentCollection.get(z);
      System.out.println(metadataObject.getFullName());
    }
  }
View Full Code Here

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

        "SCOPE_CATLOG", "SCOPE_SCHEMA", "SCOPE_TABLE",
        "SOURCE_DATA_TYPE", "IS_AUTOINCREMENT" }, connection);
    try {
      OCConfigurationMetadataObject metadata = app.getMetadata();
      if (schemaPattern == null || schemaPattern.equals(SCHEMA_DOCUMENT)) {
        OCMetadataDocumentCollection documentCollection = metadata
            .getDocuments();
        OCDocumentMetadataObject dmo = documentCollection
            .find(tableNamePattern);
        if (dmo != null) { // а вдруг если схема не задана объект ей не
                  // принадлежит

          OCMetadataAttributeCollection attributeCollection = dmo
View Full Code Here

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

    }, connection);
    try {
      OCApp application = connection.getApplication();
      // =============
      OCConfigurationMetadataObject config = application.getMetadata();
      OCMetadataDocumentCollection dc = config.getDocuments();
      OCDocumentMetadataObject dmo = null;
      int sz = dc.size();
      for (int i = 0; i < sz; i++) {
        dmo = dc.get(i);
        String typeName = dmo.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

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

        "SELF_REFERENCING_COL_NAME", "REF_GENERATION" }, connection);
    try {
      OCConfigurationMetadataObject metadata = app.getMetadata();

      if (schemaPattern == null || schemaPattern.equals(SCHEMA_DOCUMENT)) {
        OCMetadataDocumentCollection documentCollection = metadata
            .getDocuments();
        int colSZ = documentCollection.size();

        for (int z = 0; z < colSZ; z++) {
          OCDocumentMetadataObject dmo = documentCollection.get(z);
          lrs.createRowAndSetValues(new Object[] { null,
              SCHEMA_DOCUMENT, dmo.getName(), "TABLE",
              dmo.getComment(), null, null, null, null, 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.