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

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

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

Procedure.getNameInSource介绍

暂无

代码示例

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

@Override
  public void fillRow(List<Object> row, Procedure proc,
      VDBMetaData v, TransformationMetadata metadata,
      CommandContext cc, SimpleIterator<Procedure> iter) {
    row.add(v.getName());
    row.add(proc.getParent().getName());
    row.add(proc.getName());
    row.add(proc.getNameInSource());
    row.add(proc.getResultSet() != null);
    row.add(proc.getUUID());
    row.add(proc.getAnnotation());
    row.add(proc.getParent().getUUID());
  }
});

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

@Override
  public void fillRow(List<Object> row, Procedure proc,
      VDBMetaData v, TransformationMetadata metadata,
      CommandContext cc, SimpleIterator<Procedure> iter) {
    row.add(v.getName());
    row.add(proc.getParent().getName());
    row.add(proc.getName());
    row.add(proc.getNameInSource());
    row.add(proc.getResultSet() != null);
    row.add(proc.getUUID());
    row.add(proc.getAnnotation());
    row.add(proc.getParent().getUUID());
  }
});

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

@Override
  public void fillRow(List<Object> row, Procedure proc,
      VDBMetaData v, TransformationMetadata metadata,
      CommandContext cc, SimpleIterator<Procedure> iter) {
    row.add(v.getName());
    row.add(proc.getParent().getName());
    row.add(proc.getName());
    row.add(proc.getNameInSource());
    row.add(proc.getResultSet() != null);
    row.add(proc.getUUID());
    row.add(proc.getAnnotation());
    row.add(proc.getParent().getUUID());
  }
});

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

private static void addOperationAnnotations(Procedure proc,
    CsdlOperation operation, CsdlSchema csdlSchema) {
  if (proc.getAnnotation() != null) {
    addStringAnnotation(operation, "Core.Description", proc.getAnnotation());
  }
  
  if (proc.getNameInSource() != null) {
    addStringAnnotation(operation, "teiid.NAMEINSOURCE", proc.getNameInSource());
  }
  if (proc.getUpdateCount() != Procedure.AUTO_UPDATECOUNT) {
    addIntAnnotation(operation, "teiid.UPDATECOUNT", proc.getUpdateCount());
  }   
  // add all custom properties
  for (String str:proc.getProperties().keySet()) {
    addTerm(normalizeTermName(str), new String[] {"Action", "Function"}, csdlSchema);
    addStringAnnotation(operation, csdlSchema.getAlias()+"."+normalizeTermName(str), proc.getProperties().get(str));
  }         
}

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

@Test
public void testAlterProcedureOptions() throws Exception {
  String ddl = "CREATE FOREIGN PROCEDURE myProc(OUT p1 boolean, p2 varchar, INOUT p3 decimal) " +
      "RETURNS (r1 varchar, r2 decimal)" +
      "OPTIONS(RANDOM 'any', UUID 'uuid', NAMEINSOURCE 'nis', ANNOTATION 'desc', UPDATECOUNT '2');" +
      "ALTER FOREIGN PROCEDURE myProc OPTIONS(SET NAMEINSOURCE 'x');" +
      "ALTER FOREIGN PROCEDURE myProc ALTER PARAMETER p2 OPTIONS (ADD x 'y');" +
      "ALTER FOREIGN PROCEDURE myProc OPTIONS(DROP UPDATECOUNT);";
  
  Schema s = helpParse(ddl, "model").getSchema();
  Procedure proc = s.getProcedure("myProc");
  assertNotNull(proc);

  assertEquals("x", proc.getNameInSource());
  assertEquals("p2", proc.getParameters().get(1).getName());
  assertEquals("y", proc.getParameters().get(1).getProperty("x", false));
  assertEquals(1, proc.getUpdateCount());
}

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

method.setNameInSource(proc.getNameInSource());
method.setUUID(proc.getUUID());

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

method.setNameInSource(proc.getNameInSource());
method.setUUID(proc.getUUID());

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

method.setNameInSource(proc.getNameInSource());
method.setUUID(proc.getUUID());

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

assertEquals("nis", proc.getNameInSource());
assertEquals("desc", proc.getAnnotation());
assertEquals(2, proc.getUpdateCount());

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

assertEquals("nis", proc.getNameInSource());
assertEquals("desc", proc.getAnnotation());
assertEquals(2, proc.getUpdateCount());

相关文章