Examples of SchemaInfo


Examples of ch.hortis.sonar.model.SchemaInfo

      //createDatabase("create");
    }
   
    EntityManager manager = factory.createEntityManager();
    try {
      SchemaInfo schemaInfo = manager.find( SchemaInfo.class, MODEL_VERSION );
      if ( schemaInfo == null ) {
        throw new WrongDatabaseVersionException( "Database required model version (" + MODEL_VERSION + ") not found" );
      }
    } catch (NoResultException exception) {
      throw new PersistenceException( exception.getMessage() );
View Full Code Here

Examples of ch.inftec.ju.db.JuConnUtil.MetaDataInfo.SchemaInfo

       *            Schema name
       * @param catalog
       *            Catalog or null if DB doesn't use catalogs
       */
      void addSchemaInfo(final String name, final String catalog) {
        this.schemas.add(new SchemaInfo() {
          @Override
          public String getName() {
            return name;
          }

View Full Code Here

Examples of io.crate.metadata.table.SchemaInfo

        }

        @Override
        protected void bindSchemas() {
            super.bindSchemas();
            SchemaInfo schemaInfo = mock(SchemaInfo.class);
            when(schemaInfo.getTableInfo(TEST_DOC_TABLE_IDENT.name())).thenReturn(userTableInfo);
            when(schemaInfo.getTableInfo(TEST_DOC_TABLE_IDENT_CLUSTERED_BY_ONLY.name())).thenReturn(userTableInfoClusteredByOnly);
            when(schemaInfo.getTableInfo(TEST_DOC_TABLE_IDENT_MULTI_PK.name())).thenReturn(userTableInfoMultiPk);
            when(schemaInfo.getTableInfo(DEEPLY_NESTED_TABLE_IDENT.name())).thenReturn(DEEPLY_NESTED_TABLE_INFO);
            when(schemaInfo.getTableInfo(TEST_PARTITIONED_TABLE_IDENT.name()))
                    .thenReturn(TEST_PARTITIONED_TABLE_INFO);
            when(schemaInfo.getTableInfo(TEST_MULTIPLE_PARTITIONED_TABLE_IDENT.name()))
                    .thenReturn(TEST_MULTIPLE_PARTITIONED_TABLE_INFO);
            when(schemaInfo.getTableInfo(TEST_DOC_TRANSACTIONS_TABLE_IDENT.name()))
                    .thenReturn(TEST_DOC_TRANSACTIONS_TABLE_INFO);
            when(schemaInfo.getTableInfo(TEST_DOC_LOCATIONS_TABLE_IDENT.name()))
                    .thenReturn(TEST_DOC_LOCATIONS_TABLE_INFO);
            schemaBinder.addBinding(DocSchemaInfo.NAME).toInstance(schemaInfo);
        }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.schemainfo.SchemaInfo

   public Session(IApplication app, ISQLDriver driver, SQLAlias alias,
                  SQLConnection conn, String user, String password,
                  IIdentifier sessionId)
   {
      super();
      _schemaInfo = new SchemaInfo(app);

      if (app == null)
      {
         throw new IllegalArgumentException("null IApplication passed");
      }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.schemainfo.SchemaInfo

    props = new SessionProperties();
    props.setLoadSchemasCatalogs(false);
    app = new MockApplication();
    app.getMockSessionManager().setSession(this);
    sqlAlias = new SQLAlias(new UidIdentifier());
    schemaInfo = new SchemaInfo(app);
    schemaInfo.initialLoad(this);
    prefs = app.getSquirrelPreferences();
    try
    {
      UIFactory.initialize(prefs, app);
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.schemainfo.SchemaInfo

      props = new SessionProperties();
      props.setLoadSchemasCatalogs(false);
      app = new MockApplication();
      app.getMockSessionManager().setSession(this);
      sqlAlias = new SQLAlias(new UidIdentifier());
      schemaInfo = new SchemaInfo(app);
      schemaInfo.initialLoad(this);
      prefs = app.getSquirrelPreferences();
      try {
        UIFactory.initialize(prefs, app);
      } catch (Throwable e) {
View Full Code Here

Examples of org.apache.cxf.service.model.SchemaInfo

            d = copy(d);
            ns = serviceInfo.getInterface().getName().getNamespaceURI();
            d.getDocumentElement().setAttribute("targetNamespace", ns);
        }

        SchemaInfo schemaInfo = serviceInfo.getSchema(ns);
        if (schemaInfo != null && (systemId == null && schemaInfo.getSystemId() == null
            || systemId != null && systemId.equalsIgnoreCase(schemaInfo.getSystemId()))) {
            return schemaInfo.getSchema();
        }

        if (hackAroundEmptyNamespaceIssue) {
            d = doEmptyNamespaceHack(d);           
        }

        Node n = d.getDocumentElement().getFirstChild();
        while (n != null) {
            if (n instanceof Element) {
                Element e = (Element)n;
                if (e.getLocalName().equals("import")) {
                    e.removeAttribute("schemaLocation");
                    updateSchemaLocation(e);
                }
            }
            n = n.getNextSibling();
        }
        SchemaInfo schema = new SchemaInfo(ns);
        schema.setSystemId(systemId);
        XmlSchema xmlSchema;
        synchronized (d) {
            xmlSchema = col.read(d, systemId, null);
            schema.setSchema(xmlSchema);
        }
        serviceInfo.addSchema(schema);
        return xmlSchema;
    }
View Full Code Here

Examples of org.apache.cxf.service.model.SchemaInfo

        return result;
    }

    //Change this method to access the XmlSchemaCollection.
    public static boolean isElementFormQualified(ServiceInfo serviceInfo, String uri) {
        SchemaInfo schemaInfo = serviceInfo.getSchema(uri);
        if (schemaInfo != null) {
            return schemaInfo.isElementFormQualified();
        }
        Iterator<SchemaInfo> it = serviceInfo.getSchemas().iterator();
        while (it.hasNext()) {
            XmlSchema schema = it.next().getSchema();
            return isElementFormQualified(schema, uri);
View Full Code Here

Examples of org.apache.cxf.service.model.SchemaInfo

        return false;
    }

    //Change this method to access the XmlSchemaCollection.
    public static boolean isAttributeFormQualified(ServiceInfo serviceInfo, String uri) {
        SchemaInfo schemaInfo = serviceInfo.getSchema(uri);
        if (schemaInfo != null) {
            return schemaInfo.isAttributeFormQualified();
        }
        Iterator<SchemaInfo> it = serviceInfo.getSchemas().iterator();
        while (it.hasNext()) {
            XmlSchema schema = it.next().getSchema();
            return isAttributeFormQualified(schema, uri);
View Full Code Here

Examples of org.apache.cxf.service.model.SchemaInfo

            Class<?> cls = part.getTypeClass();
            XmlAccessType accessType = Utils.getXmlAccessType(cls);
            String namespace = part.getElementQName().getNamespaceURI();
            String attNs = namespace;
           
            SchemaInfo sch = part.getMessageInfo().getOperation().getInterface()
                .getService().getSchema(namespace);
            if (sch == null) {
                LOG.warning("Schema associated with " + namespace + " is null");
                namespace = null;
                attNs = null;
            } else {
                if (!sch.isElementFormQualified()) {
                    namespace = null;
                }
                if (!sch.isAttributeFormQualified()) {
                    attNs = null;
                }
            }
            List<Member> combinedMembers = new ArrayList<Member>();
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.