本文整理汇总了Java中ro.nextreports.engine.queryexec.QueryParameter.getDependentParameterNames方法的典型用法代码示例。如果您正苦于以下问题:Java QueryParameter.getDependentParameterNames方法的具体用法?Java QueryParameter.getDependentParameterNames怎么用?Java QueryParameter.getDependentParameterNames使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ro.nextreports.engine.queryexec.QueryParameter
的用法示例。
在下文中一共展示了QueryParameter.getDependentParameterNames方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getChildDependentParameters
import ro.nextreports.engine.queryexec.QueryParameter; //导入方法依赖的package包/类
private Map<String, QueryParameter> getChildDependentParameters(QueryParameter p) {
Map<String, QueryParameter> result = new LinkedHashMap<String, QueryParameter>();
List<QueryParameter> params = getParameters();
for (QueryParameter param : params) {
if (!param.equals(p) && (param.getSource() != null)) {
//System.out.println("---> param " + param.getName() + " : source=" + param.getSource());
if (param.isDependent()) {
List<String> names = param.getDependentParameterNames();
if (names.contains(p.getName())) {
result.put(param.getName(), param);
}
}
}
}
return result;
}
示例2: getChildDependentParameters
import ro.nextreports.engine.queryexec.QueryParameter; //导入方法依赖的package包/类
public Map<String, QueryParameter> getChildDependentParameters(QueryParameter p) {
Map<String, QueryParameter> result = new HashMap<String, QueryParameter>();
List<QueryParameter> params = getParameters();
for (QueryParameter param : params) {
if (!param.equals(p)) {
if (param.isDependent()) {
List<String> names = param.getDependentParameterNames();
if (names.contains(p.getName())) {
result.put(param.getName(), param);
}
}
}
}
return result;
}
示例3: getParentDependentParameters
import ro.nextreports.engine.queryexec.QueryParameter; //导入方法依赖的package包/类
public Map<String, QueryParameter> getParentDependentParameters(QueryParameter p) {
List<String> names = p.getDependentParameterNames();
Map<String, QueryParameter> result = new HashMap<String, QueryParameter>();
for (String name : names) {
result.put(name, getParameter(name));
}
return result;
}
示例4: getChildDependentParameters
import ro.nextreports.engine.queryexec.QueryParameter; //导入方法依赖的package包/类
/**
* Get child dependent parameters
*
* @param params list of parameters
* @param p current parameter
* @return a map of all parameters that use the current parameter in theirs source definition
*/
public static Map<String, QueryParameter> getChildDependentParameters(List<QueryParameter> params, QueryParameter p) {
Map<String, QueryParameter> result = new HashMap<String, QueryParameter>();
for (QueryParameter param : params) {
if (!param.equals(p)) {
if (param.isDependent()) {
List<String> names = param.getDependentParameterNames();
if (names.contains(p.getName())) {
result.put(param.getName(), param);
}
}
}
}
return result;
}
示例5: getParentDependentParameters
import ro.nextreports.engine.queryexec.QueryParameter; //导入方法依赖的package包/类
/**
* Get parent dependent parameters
*
* @param params list of parameters
* @param p current parameter
* @return a map of all parameters that are used in the source definition of the current parameter
*/
public static Map<String, QueryParameter> getParentDependentParameters(List<QueryParameter> params, QueryParameter p) {
List<String> names = p.getDependentParameterNames();
Map<String, QueryParameter> result = new HashMap<String, QueryParameter>();
for (String name : names) {
result.put(name, getParameterByName(params, name));
}
return result;
}
示例6: getParentDependentParameters
import ro.nextreports.engine.queryexec.QueryParameter; //导入方法依赖的package包/类
private Map<String, QueryParameter> getParentDependentParameters(QueryParameter p) {
List<String> names = p.getDependentParameterNames();
Map<String, QueryParameter> result = new LinkedHashMap<String, QueryParameter>();
for (String name : names) {
result.put(name, getParameter(name));
}
return result;
}