本文整理了Java中org.teiid.metadata.Procedure.getAnnotation()
方法的一些代码示例,展示了Procedure.getAnnotation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Procedure.getAnnotation()
方法的具体详情如下:
包路径:org.teiid.metadata.Procedure
类名称:Procedure
方法名:getAnnotation
暂无
代码示例来源: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
FunctionMethod function = new FunctionMethod(procedureRecord.getName(), procedureRecord.getAnnotation(), model.getName(), procedureRecord.isVirtual()?PushDown.CAN_PUSHDOWN:PushDown.MUST_PUSHDOWN,
null, null, args, outputParam, false, Determinism.DETERMINISTIC);
function.setUUID(procedureRecord.getUUID());
代码示例来源:origin: org.jboss.teiid/teiid-engine
method.setAnnotation(proc.getAnnotation());
method.setNameInSource(proc.getNameInSource());
method.setUUID(proc.getUUID());
代码示例来源:origin: org.teiid/teiid-metadata
FunctionMethod function = new FunctionMethod(procedureRecord.getName(), procedureRecord.getAnnotation(), model.getName(), procedureRecord.isVirtual()?PushDown.CAN_PUSHDOWN:PushDown.MUST_PUSHDOWN,
null, null, args, outputParam, false, Determinism.DETERMINISTIC);
function.setUUID(procedureRecord.getUUID());
代码示例来源:origin: org.teiid/teiid-engine
method.setAnnotation(proc.getAnnotation());
method.setNameInSource(proc.getNameInSource());
method.setUUID(proc.getUUID());
代码示例来源:origin: teiid/teiid
method.setAnnotation(proc.getAnnotation());
method.setNameInSource(proc.getNameInSource());
method.setUUID(proc.getUUID());
代码示例来源:origin: teiid/teiid
assertEquals("desc", proc.getAnnotation());
assertEquals(2, proc.getUpdateCount());
assertEquals("any", proc.getProperties().get("RANDOM"));
代码示例来源:origin: teiid/teiid
assertEquals("desc", proc.getAnnotation());
assertEquals(2, proc.getUpdateCount());
assertEquals("any", proc.getProperties().get("RANDOM"));
内容来源于网络,如有侵权,请联系作者删除!