当前位置: 首页>>代码示例>>Java>>正文


Java ParameterContributorContext类代码示例

本文整理汇总了Java中net.sf.jasperreports.engine.ParameterContributorContext的典型用法代码示例。如果您正苦于以下问题:Java ParameterContributorContext类的具体用法?Java ParameterContributorContext怎么用?Java ParameterContributorContext使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ParameterContributorContext类属于net.sf.jasperreports.engine包,在下文中一共展示了ParameterContributorContext类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getContributors

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
@Override
public List<ParameterContributor> getContributors(ParameterContributorContext context) throws JRException
{
	List<ParameterContributor> contributors = new ArrayList<ParameterContributor>();

	String dataAdapterUri = JRPropertiesUtil.getInstance(context.getJasperReportsContext()).getProperty(context.getDataset(), PROPERTY_DATA_ADAPTER_LOCATION); 
	if (dataAdapterUri != null)
	{
		DataAdapterResource dataAdapterResource = RepositoryUtil.getInstance(context.getJasperReportsContext()).getResourceFromLocation(dataAdapterUri, DataAdapterResource.class);
		ParameterContributor dataAdapterService = DataAdapterServiceUtil.getInstance(context).getService(dataAdapterResource.getDataAdapter());
		
		return Collections.singletonList(dataAdapterService);
	}

	return contributors;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:17,代码来源:DataAdapterParameterContributorFactory.java

示例2: getParameterContributors

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
/**
 *
 */
private List<ParameterContributor> getParameterContributors(ParameterContributorContext context) throws JRException
{
	List<ParameterContributor> allContributors = null;
	List<?> factories = getJasperReportsContext().getExtensions(ParameterContributorFactory.class);
	if (factories != null && factories.size() > 0)
	{
		allContributors = new ArrayList<ParameterContributor>();
		for (Iterator<?> it = factories.iterator(); it.hasNext();)
		{
			ParameterContributorFactory factory = (ParameterContributorFactory)it.next();
			List<ParameterContributor> contributors = factory.getContributors(context);
			if (contributors != null)
			{
				allContributors.addAll(contributors);
			}
		}
	}
	return allContributors;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:23,代码来源:JRFillDataset.java

示例3: createService

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
@Override
public DataFileService createService(ParameterContributorContext context, DataFile dataFile)
{
	if (dataFile instanceof RepositoryDataLocation)
	{
		return new RepositoryDataLocationService(context, (RepositoryDataLocation) dataFile);
	}
	if (dataFile instanceof HttpDataLocation)
	{
		return new HttpDataService(context, (HttpDataLocation) dataFile);
	}
	return null;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:14,代码来源:BuiltinDataFileServiceFactory.java

示例4: XmlDataAdapterService

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
/**
 * 
 */
public XmlDataAdapterService(
	ParameterContributorContext paramContribContext,
	XmlDataAdapter xmlDataAdapter
	) 
{
	super(paramContribContext, xmlDataAdapter);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:11,代码来源:XmlDataAdapterService.java

示例5: DataSourceProviderDataAdapterService

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
/**
 * 
 */
public DataSourceProviderDataAdapterService(
	ParameterContributorContext paramContribContext,
	DataSourceProviderDataAdapter dsDataAdapter
	) 
{
	super(paramContribContext, dsDataAdapter);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:11,代码来源:DataSourceProviderDataAdapterService.java

示例6: contributeParameters

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
/**
 * 
 */
public void contributeParameters(Map<String,Object> parameterValues) throws JRException
{
	parameterContributors = getParameterContributors(new ParameterContributorContext(getJasperReportsContext(), this, parameterValues));
	if (parameterContributors != null)
	{
		for(ParameterContributor contributor : parameterContributors)
		{
			contributor.contributeParameters(parameterValues);
		}
	}
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:15,代码来源:JRFillDataset.java

示例7: dataAdapterQualification

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
protected String dataAdapterQualification(JRDataset dataset, DataAdapter dataAdapter)
{
	ParameterContributorContext contributorContext = new ParameterContributorContext(context,
			dataset, Collections.<String, Object>emptyMap());
	DataAdapterServiceUtil serviceUtil = DataAdapterServiceUtil.getInstance(contributorContext);
	DataAdapterService service = serviceUtil.getService(dataAdapter);
	return service instanceof Designated ? ((Designated) service).getDesignation() : null;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:9,代码来源:PropertiesMetadataUtil.java

示例8: instance

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
public static DataFileResolver instance(ParameterContributorContext context)
{
	// not caching for now
	return new DataFileResolver(context);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:6,代码来源:DataFileResolver.java

示例9: DataFileResolver

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
protected DataFileResolver(ParameterContributorContext context)
{
	this.context = context;
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:5,代码来源:DataFileResolver.java

示例10: JndiDataAdapterService

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
/**
 * 
 */
public JndiDataAdapterService(ParameterContributorContext paramContribContext, JndiDataAdapter jndiDataAdapter)
{
	super(paramContribContext, jndiDataAdapter);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:8,代码来源:JndiDataAdapterService.java

示例11: ExcelDataAdapterService

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
/**
 * 
 */
public ExcelDataAdapterService(ParameterContributorContext paramContribContext, ExcelDataAdapter excelDataAdapter)
{
	super(paramContribContext, excelDataAdapter);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:8,代码来源:ExcelDataAdapterService.java

示例12: QueryExecuterDataAdapterService

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
/**
 * 
 */
public QueryExecuterDataAdapterService(ParameterContributorContext paramContribContext, QueryExecuterDataAdapter qeDataAdapter)
{
	super(paramContribContext, qeDataAdapter);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:8,代码来源:QueryExecuterDataAdapterService.java

示例13: AbstractClasspathAwareDataAdapterService

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
/**
 *
 */
public AbstractClasspathAwareDataAdapterService(ParameterContributorContext paramContribContext, ClasspathAwareDataAdapter dataAdapter) 
{
	super(paramContribContext, dataAdapter);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:8,代码来源:AbstractClasspathAwareDataAdapterService.java

示例14: XmlaDataAdapterService

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
/**
 * 
 */
public XmlaDataAdapterService(ParameterContributorContext paramContribContext, XmlaDataAdapter dataAdapter) 
{
	super(paramContribContext, dataAdapter);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:8,代码来源:XmlaDataAdapterService.java

示例15: XlsxDataAdapterService

import net.sf.jasperreports.engine.ParameterContributorContext; //导入依赖的package包/类
/**
 * 
 */
public XlsxDataAdapterService(ParameterContributorContext paramContribContext, XlsxDataAdapter xlsxDataAdapter)
{
	super(paramContribContext, xlsxDataAdapter);
}
 
开发者ID:TIBCOSoftware,项目名称:jasperreports,代码行数:8,代码来源:XlsxDataAdapterService.java


注:本文中的net.sf.jasperreports.engine.ParameterContributorContext类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。