return DesignTimeUtil.isSelectedDataSource(reportDefinition, queryNode.getDataFactory(), queryNode.getQueryName());
}
private String[] getDataFactoryColumns()
{
final ContextAwareDataSchemaModel model = context.getReportDataSchemaModel();
final String[] columnNames = model.getColumnNames();
final ArrayList<String> targetCols = new ArrayList<String>(columnNames.length);
for (int i = 0; i < columnNames.length; i++)
{
final String columnName = columnNames[i];
final DataAttributes attributes = model.getDataSchema().getAttributes(columnName);
if (attributes == null)
{
// if in doubt, then do not add.
continue;
}
if (DataSchemaUtility.isFiltered(attributes, model.getDataAttributeContext()))
{
continue;
}
if ("table".equals(attributes.getMetaAttribute
(MetaAttributeNames.Core.NAMESPACE, MetaAttributeNames.Core.SOURCE,
String.class, model.getDataAttributeContext())))
{
targetCols.add(columnName);
}
}