@Test public void testMultikeyPK() throws Exception { MetadataFactory mf = multiplePKMetadata(); Table g1 = mf.getSchema().getTable("G1"); assertNotNull(g1.getPrimaryKey().getColumnByName("e1")); assertNotNull(g1.getPrimaryKey().getColumnByName("e2")); assertNull(g1.getPrimaryKey().getColumnByName("e3")); }
protected XMLMetadata getSchema(WSConnection conn) throws TranslatorException { if (this.ef != null) { return this.ef.getSchema(conn); } return null; }
ODataMetadataProcessor implements MetadataProcessor<WSConnection> { protected XMLMetadata getSchema(WSConnection conn) throws TranslatorException { if (this.ef != null) { return this.ef.getSchema(conn); } return null; } }
ODataMetadataProcessor implements MetadataProcessor<WSConnection> { protected XMLMetadata getSchema(WSConnection conn) throws TranslatorException { if (this.ef != null) { return this.ef.getSchema(conn); } return null; }  }
ODataMetadataProcessor implements MetadataProcessor<WSConnection> { protected XMLMetadata getSchema(WSConnection conn) throws TranslatorException { if (this.ef != null) { return this.ef.getSchema(conn); } return null; }  @Override void process(MetadataFactory mf, WSConnection conn); void setSchemaNamespace(String namespace); @TranslatorProperty(display="Schema Namespace", category=PropertyType.IMPORT, description="Namespace of the schema to import") String getSchemaNamespace(); }
ODataMetadataProcessor implements MetadataProcessor<WSConnection> { protected XMLMetadata getSchema(WSConnection conn) throws TranslatorException { if (this.ef != null) { return this.ef.getSchema(conn); } return null; }  @Override void process(MetadataFactory mf, WSConnection conn); void setSchemaNamespace(String namespace); @TranslatorProperty(display="Schema Namespace", category=PropertyType.IMPORT, description="Namespace of the schema to import") String getSchemaNamespace(); @ExtensionMetadataProperty(applicable = { Table.class, Procedure.class },
            datatype = String.class,
            display = "Name in OData Schema",
            description = "Name in OData Schema",
            required = true)
    static final String NAME_IN_SCHEMA; @ExtensionMetadataProperty(applicable = { Table.class, Procedure.class },
            datatype = String.class,
            display = "OData Type",
            description = "Type of OData Schema Item",
            allowed = "COMPLEX, NAVIGATION, ENTITY, ENTITY_COLLECTION, ACTION, FUNCTION, COMPLEX_COLLECTION, NAVIGATION_COLLECTION",
            required=true)
    static final String ODATA_TYPE; @ExtensionMetadataProperty(applicable=Column.class,
            datatype=String.class,
            display="Pseudo Column",
            description="Pseudo column for join purposes")
    static final String PSEUDO; }