Examples of TypesRegistry


Examples of com.foundationdb.server.types.service.TypesRegistry

        AlterTableDDL.alterTable(ddl(), dml(), session(), schema, (AlterTableNode) node, queryContext);
    }

    protected final int createTableFromTypes(String schema, String table, boolean firstIsPk, boolean createIndexes,
                                             SimpleColumn... columns) {
        TypesRegistry typesRegistry = typesRegistry();
        AISBuilder builder = new AISBuilder();
        builder.table(schema, table);

        int colPos = 0;
        SimpleColumn pk = firstIsPk ? columns[0] : new SimpleColumn("id", "MCOMPAT_ int");
View Full Code Here

Examples of com.foundationdb.server.types.service.TypesRegistry

        bytes.flip();
    }

    @Test
    public void loadNormally() {
        TypesRegistry typesRegistry = TestTypesRegistry.MCOMPAT;
        Sequence sequence = loadSequence(typesRegistry, testFormatRegistry);
        assertNotNull(sequence);
        assertTrue(isFullDescription(sequence.getStorageDescription()));
    }
View Full Code Here

Examples of com.foundationdb.server.types.service.TypesRegistry

        assertTrue(isFullDescription(sequence.getStorageDescription()));
    }

    @Test
    public void loadPartially() {
        TypesRegistry typesRegistry = TestTypesRegistry.MCOMPAT;
        StorageFormatRegistry newFormatRegistry = DummyStorageFormatRegistry.create();
        Sequence sequence = loadSequence(typesRegistry, newFormatRegistry);
        assertNotNull(sequence);
        assertFalse(isFullDescription(sequence.getStorageDescription()));
        assertTrue(isPartialDescription(sequence.getStorageDescription()));
View Full Code Here

Examples of com.foundationdb.server.types.service.TypesRegistry

        assertTrue(isPartialDescription(sequence.getStorageDescription()));
    }

    @Test
    public void reloadNormally() {
        TypesRegistry typesRegistry = TestTypesRegistry.MCOMPAT;
        StorageFormatRegistry newFormatRegistry = DummyStorageFormatRegistry.create();
        AkibanInformationSchema ais = new AkibanInformationSchema();
        ProtobufReader reader = new ProtobufReader(typesRegistry, newFormatRegistry, ais);
        reader.loadBuffer(bytes);
        reader.loadAIS();
View Full Code Here

Examples of com.foundationdb.server.types.service.TypesRegistry

    protected SQLParser parser;

    private AkibanInformationSchema factory () throws Exception
    {
        TypesRegistry typesRegistry = TestTypesRegistry.MCOMPAT;
        TestAISBuilder builder = new TestAISBuilder(typesRegistry);
        builder.table("s", "t");
        builder.column ("s", "t", "c1", 0, "MCOMPAT", "int", false);
        builder.pk("s", "t");
        builder.indexColumn("s", "t", "PRIMARY", "c1", 0, true, 0);
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.util.TypesRegistry

    throws WSIException
  {
    result = AssertionResult.RESULT_FAILED;

    registry =
      new TypesRegistry(
        entryContext.getWSDLDocument().getDefinitions(),
        validator);

    // collect all types from messages to checkedParts map
    WSDLTraversal traversal = new WSDLTraversal();
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.util.TypesRegistry

      String action = null;
      if (headers != null)
        action = (String) HTTPUtils.getHttpHeaderTokens(headers, ":").get("SOAPAction".toUpperCase());

      Binding binding = validator.analyzerContext.getCandidateInfo().getBindings()[0];
      TypesRegistry registry =
        new TypesRegistry(
          this.validator.getWSDLDocument().getDefinitions(),
          validator);
      OperationSignature.OperationMatch match =
        OperationSignature.matchOperation(
          docRequest,
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.util.TypesRegistry

      // Get the binding that is being processed               
      Binding binding = validator.analyzerContext.getCandidateInfo().getBindings()[0];

      //Create the types registry
      TypesRegistry registry =
        new TypesRegistry(
          this.validator.getWSDLDocument().getDefinitions(),
          validator);

      // Find an operation match       
      OperationSignature.OperationMatch match =
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.util.TypesRegistry

      // Get the binding that is being processed               
      Binding binding = validator.analyzerContext.getCandidateInfo().getBindings()[0];

      //Create the types registry
      TypesRegistry registry =
        new TypesRegistry(
          this.validator.getWSDLDocument().getDefinitions(),
          validator);

      // Find an operation match       
      OperationSignature.OperationMatch match =
View Full Code Here

Examples of org.eclipse.wst.wsi.internal.core.util.TypesRegistry

      String action = null;
      if (headers != null)
        action = (String) HTTPUtils.getHttpHeaderTokens(headers, ":").get("SOAPAction".toUpperCase());

      Binding binding = validator.analyzerContext.getCandidateInfo().getBindings()[0];
      TypesRegistry registry =
        new TypesRegistry(
          this.validator.getWSDLDocument().getDefinitions(),
          validator);
      OperationSignature.OperationMatch match =
        OperationSignature.matchOperation(
          docRequest,
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.