本文整理了Java中org.teiid.metadata.Procedure.getProperties()
方法的一些代码示例,展示了Procedure.getProperties()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Procedure.getProperties()
方法的具体详情如下:
包路径:org.teiid.metadata.Procedure
类名称:Procedure
方法名:getProperties
暂无
代码示例来源:origin: teiid/teiid
private static void setProcedureOptions(Procedure proc) {
Map<String, String> props = proc.getProperties();
setCommonProperties(proc, props);
String value = props.remove("UPDATECOUNT"); //$NON-NLS-1$
if (value != null) {
proc.setUpdateCount(Integer.parseInt(value));
}
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
private static void setProcedureOptions(Procedure proc) {
Map<String, String> props = proc.getProperties();
setCommonProperties(proc, props);
String value = props.remove("UPDATECOUNT"); //$NON-NLS-1$
if (value != null) {
proc.setUpdateCount(Integer.parseInt(value));
}
}
代码示例来源:origin: org.teiid/teiid-engine
private static void setProcedureOptions(Procedure proc) {
Map<String, String> props = proc.getProperties();
setCommonProperties(proc, props);
String value = props.remove("UPDATECOUNT"); //$NON-NLS-1$
if (value != null) {
proc.setUpdateCount(Integer.parseInt(value));
}
}
代码示例来源:origin: org.teiid/teiid-engine
private String buildProcedureOptions(Procedure procedure) {
StringBuilder options = new StringBuilder();
addCommonOptions(options, procedure);
if (procedure.getUpdateCount() != Procedure.AUTO_UPDATECOUNT) {
addOption(options, UPDATECOUNT, procedure.getUpdateCount());
}
if (!procedure.getProperties().isEmpty()) {
for (String key:procedure.getProperties().keySet()) {
addOption(options, key, procedure.getProperty(key, false));
}
}
return options.toString();
}
代码示例来源:origin: teiid/teiid
private String buildProcedureOptions(Procedure procedure) {
StringBuilder options = new StringBuilder();
addCommonOptions(options, procedure);
if (procedure.getUpdateCount() != Procedure.AUTO_UPDATECOUNT) {
addOption(options, UPDATECOUNT, procedure.getUpdateCount());
}
if (!procedure.getProperties().isEmpty()) {
for (String key:procedure.getProperties().keySet()) {
addOption(options, key, procedure.getProperty(key, false));
}
}
return options.toString();
}
代码示例来源:origin: org.jboss.teiid/teiid-engine
private String buildProcedureOptions(Procedure procedure) {
StringBuilder options = new StringBuilder();
addCommonOptions(options, procedure);
if (procedure.getUpdateCount() != Procedure.AUTO_UPDATECOUNT) {
addOption(options, UPDATECOUNT, procedure.getUpdateCount());
}
if (!procedure.getProperties().isEmpty()) {
for (String key:procedure.getProperties().keySet()) {
addOption(options, key, procedure.getProperty(key, false));
}
}
return options.toString();
}
代码示例来源: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
function.setProperties(procedureRecord.getProperties());
代码示例来源:origin: org.jboss.teiid/teiid-engine
method.setUUID(proc.getUUID());
Map<String, String> props = proc.getProperties();
代码示例来源:origin: org.teiid/teiid-engine
method.setUUID(proc.getUUID());
Map<String, String> props = proc.getProperties();
代码示例来源:origin: teiid/teiid
method.setUUID(proc.getUUID());
Map<String, String> props = proc.getProperties();
代码示例来源: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"));
内容来源于网络,如有侵权,请联系作者删除!