本文整理汇总了Java中com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor.setQueryValueColumn方法的典型用法代码示例。如果您正苦于以下问题:Java ResourceDescriptor.setQueryValueColumn方法的具体用法?Java ResourceDescriptor.setQueryValueColumn怎么用?Java ResourceDescriptor.setQueryValueColumn使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor
的用法示例。
在下文中一共展示了ResourceDescriptor.setQueryValueColumn方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getInputControl
import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor; //导入方法依赖的package包/类
private static void getInputControl(ARestV2Connection rc, ClientInputControl cr, ResourceDescriptor rd) throws ParseException {
rd.setMandatory(cr.isMandatory());
rd.setReadOnly(cr.isReadOnly());
rd.setVisible(cr.isVisible());
if (cr.getListOfValues() != null)
rd.getChildren().add(getRDContainer(rc, (ClientListOfValues) cr.getListOfValues()));
if (cr.getQuery() != null)
rd.getChildren().add(getRDContainer(rc, (ClientQuery) cr.getQuery()));
if (cr.getDataType() != null)
rd.getChildren().add(getRDContainer(rc, (ClientDataType) cr.getDataType()));
rd.setControlType(cr.getType());
rd.setQueryValueColumn(cr.getValueColumn());
if (cr.getVisibleColumns() != null)
rd.setQueryVisibleColumns(cr.getVisibleColumns().toArray(new String[cr.getVisibleColumns().size()]));
}
示例2: copyFields
import com.jaspersoft.jasperserver.api.metadata.xml.domain.impl.ResourceDescriptor; //导入方法依赖的package包/类
public static void copyFields(ResourceDescriptor rd, ResourceDescriptor rnew) {
rnew.setParameters(rd.getParameters());
rnew.setProperties(rd.getProperties());
rnew.setChildren(rd.getChildren());
rnew.setQueryData(rd.getQueryData());
rnew.setQueryValueColumn(rd.getQueryValueColumn());
rnew.setQueryVisibleColumns(rd.getQueryVisibleColumns());
rnew.setListOfValues(rd.getListOfValues());
rnew.setPattern(rd.getPattern());
rnew.setMinValue(rd.getMinValue());
rnew.setMaxValue(rd.getMaxValue());
rnew.setStrictMin(rd.isStrictMin());
rnew.setStrictMax(rd.isStrictMax());
rnew.setDataType(rd.getDataType());
rnew.setJndiName(rd.getJndiName());
rnew.setBeanMethod(rd.getBeanMethod());
rnew.setBeanName(rd.getBeanName());
rnew.setDriverClass(rd.getDriverClass());
rnew.setUsername(rd.getUsername());
rnew.setPassword(rd.getPassword());
rnew.setConnectionUrl(rd.getConnectionUrl());
rnew.setName(rd.getName());
rnew.setLabel(rd.getLabel());
rnew.setDescription(rd.getDescription());
rnew.setData(rd.getData());
rnew.setHasData(rd.getHasData());
rnew.setSql(rd.getSql());
}