Package com.ipc.oce.metadata

Examples of com.ipc.oce.metadata.OCConfigurationMetadataObject


    List<String> schemas = new ArrayList<String>();
    if (schema != null) {
      schemas.add(schema);
    } else {
      OCApp app = connection.getApplication();
      OCConfigurationMetadataObject configMetadata = null;
      try {
        configMetadata = app.getMetadata();
        OCObject metaObject = null;

        // findByFullName(SCHEMA_CATALOG+"."+table);
        metaObject = configMetadata.getCatalogs().find(table);
        if (metaObject != null) {
          schemas.add(SCHEMA_CATALOG);
        }

        // findByFullName(SCHEMA_DOCUMENT+"."+table);
        metaObject = configMetadata.getDocuments().find(table);
        if (metaObject != null) {
          schemas.add(SCHEMA_DOCUMENT);
        }
      } catch (JIException e) {
        throw new SQLException(e);
View Full Code Here


    }, 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
            null, // LITERAL_SUFFIX
            null, // CREATE_PARAMS
            Integer.valueOf(typeNullableUnknown), // NULLABLE
            Boolean.valueOf(false), // CASE_SENSITIVE
            Boolean.valueOf(true), // SEARCHABLE
            Boolean.valueOf(false), // UNSIGNED_ATTRIBUTE
            Boolean.valueOf(false), // FIXED_PREC_SCALE
            Boolean.valueOf(false), // AUTO_INCREMENT
            typeName, // LOCAL_TYPE_NAME
            Short.valueOf((short) 0), // MINIMUM_SCALE
            Short.valueOf((short) 0), // MAXIMUM_SCALE
            null, // SQL_DATA_TYPE - unused
            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();
View Full Code Here

TOP

Related Classes of com.ipc.oce.metadata.OCConfigurationMetadataObject

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.