org.teiid.metadata.Procedure.setProperty()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(3.1k)|赞(0)|评价(0)|浏览(191)

本文整理了Java中org.teiid.metadata.Procedure.setProperty()方法的一些代码示例,展示了Procedure.setProperty()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Procedure.setProperty()方法的具体详情如下:
包路径:org.teiid.metadata.Procedure
类名称:Procedure
方法名:setProperty

Procedure.setProperty介绍

暂无

代码示例

代码示例来源:origin: teiid/teiid

private static void removeProcedureOption(String key, Procedure proc) {
  if (proc.getProperty(key, false) != null) {
    proc.setProperty(key, null);
  }       
  removeCommonProperty(key, proc);
  
  if (key.equals("UPDATECOUNT")) { //$NON-NLS-1$
    proc.setUpdateCount(1);
  }
}

代码示例来源:origin: org.jboss.teiid/teiid-engine

private static void removeProcedureOption(String key, Procedure proc) {
  if (proc.getProperty(key, false) != null) {
    proc.setProperty(key, null);
  }       
  removeCommonProperty(key, proc);
  
  if (key.equals("UPDATECOUNT")) { //$NON-NLS-1$
    proc.setUpdateCount(1);
  }
}

代码示例来源:origin: org.teiid/teiid-engine

private static void removeProcedureOption(String key, Procedure proc) {
  if (proc.getProperty(key, false) != null) {
    proc.setProperty(key, null);
  }       
  removeCommonProperty(key, proc);
  
  if (key.equals("UPDATECOUNT")) { //$NON-NLS-1$
    proc.setUpdateCount(1);
  }
}

代码示例来源:origin: org.teiid.connectors/translator-swagger

procedure.setProperty(METHOD, entry.getKey().name());
if (operation.getSchemes() != null && !operation.getSchemes().isEmpty()) {
  procedure.setProperty(SCHEME, getSchemes(operation));
procedure.setProperty(URI, buildURL(basePath, endpoint));
procedure.setProperty(PRODUCES, produces);
procedure.setProperty(CONSUMES, consumes);
procedure.setAnnotation(getOperationSummary(operation));
for (Entry<String, Object> extension:operation.getVendorExtensions().entrySet()) {
  procedure.setProperty(extension.getKey(), extension.getValue().toString());

代码示例来源:origin: org.teiid.connectors/translator-jdbc

public void getConnectorMetadata(Connection conn, MetadataFactory metadataFactory)
      throws SQLException {
    super.getConnectorMetadata(conn, metadataFactory);
    for (String name:metadataFactory.getSchema().getTables().keySet()) {
      if (name.startsWith("ft_")) {
        Table table = metadataFactory.getSchema().getTable(name);
        table.setProperty(TVF, "true");
      }
    }
    for (String name:metadataFactory.getSchema().getProcedures().keySet()) {
      Procedure proc = metadataFactory.getSchema().getProcedure(name);
      proc.setProperty(TVF, "true");
    }         
  }
}

代码示例来源:origin: org.teiid.connectors/translator-odata

void addFunctionImportAsProcedure(MetadataFactory mf, EdmFunctionImport function) throws TranslatorException {
  Procedure procedure = mf.addProcedure(function.getName());
  procedure.setProperty(HTTP_METHOD, function.getHttpMethod());
      procedure.setProperty(ENTITY_TYPE, function.getReturnType().getFullyQualifiedTypeName());
      addProcedureTableReturn(mf, procedure, returnType);
      procedure.setProperty(ENTITY_TYPE, function.getReturnType().getFullyQualifiedTypeName());
      addProcedureTableReturn(mf, procedure, returnType);
      procedure.setProperty(ENTITY_TYPE, ((EdmCollectionType)returnType).getItemType().getFullyQualifiedTypeName());
      addProcedureTableReturn(mf, procedure, ((EdmCollectionType)returnType).getItemType());

代码示例来源:origin: org.teiid.connectors/translator-odata4

throws TranslatorException {
procedure.setProperty(ODATA_TYPE, odataType.name());

相关文章