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


Java QueryException.printStackTrace方法代码示例

本文整理汇总了Java中ro.nextreports.engine.queryexec.QueryException.printStackTrace方法的典型用法代码示例。如果您正苦于以下问题:Java QueryException.printStackTrace方法的具体用法?Java QueryException.printStackTrace怎么用?Java QueryException.printStackTrace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ro.nextreports.engine.queryexec.QueryException的用法示例。


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

示例1: initHiddenParameterValues

import ro.nextreports.engine.queryexec.QueryException; //导入方法依赖的package包/类
private void initHiddenParameterValues(QueryParameter qp) {    	
 	if ((qp.getDefaultValues() != null) && (qp.getDefaultValues().size() > 0)) {            		
 		if (qp.getDefaultValues().size() == 1) {    			
 			parametersValues.put(qp.getName(),qp.getDefaultValues().get(0));
} else {						
	parametersValues.put(qp.getName(), qp.getDefaultValues().toArray());
}
 	} else if ((qp.getDefaultSource() != null) && !qp.getDefaultSource().trim().equals("")) {
 		try {
	ParameterUtil.initDefaultParameterValues(con, qp, parametersValues);
} catch (QueryException e) {
	LOG.error(e.getMessage(), e);
	e.printStackTrace();
}
 	}
 }
 
开发者ID:nextreports,项目名称:nextreports-designer,代码行数:17,代码来源:RuntimeParametersPanel.java

示例2: newPage

import ro.nextreports.engine.queryexec.QueryException; //导入方法依赖的package包/类
@Override
protected void newPage() {		
	flushNow();
	Br objBr = new Br();
	objBr.setType(STBrType.PAGE);
	P para = createParagraph();
	para.getContent().add(objBr);
	wordMLPackage.getMainDocumentPart().getContent().add(para);
	if (bean.getReportLayout().isHeaderOnEveryPage()) {
		try {
			printHeaderBand();	
			newRow = true;		
		} catch (QueryException e) {				
			e.printStackTrace();
		}
	}
}
 
开发者ID:nextreports,项目名称:nextreports-engine,代码行数:18,代码来源:DocxExporter.java

示例3: buildHeader

import ro.nextreports.engine.queryexec.QueryException; //导入方法依赖的package包/类
private void buildHeader() {    	
	if (bean.getReportLayout().getPageHeaderBand().getColumnCount() == 0) {
		return;
	}
	try {    		
		printPageHeaderBand();        
		Header header = xlsSheet.getHeader();    		
		header.setCenter(headerS.toString());
	} catch (QueryException ex) {
		ex.printStackTrace();
	} finally {
		headerS = new StringBuilder();
	}
}
 
开发者ID:nextreports,项目名称:nextreports-engine,代码行数:15,代码来源:XlsxExporter.java

示例4: buildFooter

import ro.nextreports.engine.queryexec.QueryException; //导入方法依赖的package包/类
private void buildFooter() {
	if (bean.getReportLayout().getPageFooterBand().getColumnCount() == 0) {
		return;
	}
	try {
		printPageFooterBand();  
		Footer footer = xlsSheet.getFooter();
		footer.setCenter(footerS.toString());
	} catch (QueryException ex) {
		ex.printStackTrace();
	} finally {
		footerS = new StringBuilder();
	}
}
 
开发者ID:nextreports,项目名称:nextreports-engine,代码行数:15,代码来源:XlsxExporter.java

示例5: interpretPageNo

import ro.nextreports.engine.queryexec.QueryException; //导入方法依赖的package包/类
protected PrefixSuffix interpretPageNo(BandElement bandElement) {
  	String exp = "";
try {
	String pattern = "";
	if (bandElement instanceof FieldBandElement) {
		pattern = ((FieldBandElement)bandElement).getPattern();
	}
	exp = StringUtil.getValueAsString( evaluateExpression(((ExpressionBandElement) bandElement), "", null), pattern);
	String name = "$V_" + Variable.PAGE_NO_VARIABLE;
	return StringUtil.parse(exp, name);
} catch (QueryException ex) {
	ex.printStackTrace();
}
return null;
  }
 
开发者ID:nextreports,项目名称:nextreports-engine,代码行数:16,代码来源:ResultExporter.java

示例6: newPage

import ro.nextreports.engine.queryexec.QueryException; //导入方法依赖的package包/类
protected void newPage() {
	addRegions(xlsSheet, regions, wb);
	if (hasTemplate()) {
		xlsSheet = wb.getSheetAt(bean.getReportLayout().getTemplateSheet()-1);  
	} else {
		// for a group name inside sheet name when we create a page we do not have the group name yet
		// so we will have to set the name of the previous sheet (see also finishExport where we set the name of the last sheet(s)
		String sheetName = replaceSheetNameParam(bean.getReportLayout().getSheetNames());
		if ((sheetName == null) || sheetName.isEmpty()) {
			sheetName = String.valueOf(page);
		}
		if (sheetNameContainsGroup(bean.getReportLayout().getSheetNames()) && (page>1)) {
			// current group is for previous sheet page			
			xlsSheet = wb.createSheet(String.valueOf(page));				
			wb.setSheetName(page-2, sheetName);				
		} else {
			xlsSheet = wb.createSheet(sheetName);
		}
	}
	xlsSheet.setMargin(Sheet.LeftMargin, getInches(bean.getReportLayout().getPagePadding().getLeft()));
	xlsSheet.setMargin(Sheet.RightMargin, getInches(bean.getReportLayout().getPagePadding().getRight()));
	xlsSheet.setMargin(Sheet.TopMargin, getInches(bean.getReportLayout().getPagePadding().getTop()));
	xlsSheet.setMargin(Sheet.BottomMargin, getInches(bean.getReportLayout().getPagePadding().getBottom()));		
	
	if (bean.getReportLayout().getOrientation() == LANDSCAPE) {
		xlsSheet.getPrintSetup().setLandscape(true);			
	}
	
	setPaperSize();
	
	patriarch = xlsSheet.createDrawingPatriarch();
	buildHeader();
	buildFooter();
	page++;
	// first page header is written by ResultExporter
	if (bean.getReportLayout().isHeaderOnEveryPage() && (page > 2)) {
		try {
			printHeaderBand();
		} catch (QueryException e) {
			e.printStackTrace();
		}
	}
}
 
开发者ID:nextreports,项目名称:nextreports-engine,代码行数:44,代码来源:XlsxExporter.java

示例7: newPage

import ro.nextreports.engine.queryexec.QueryException; //导入方法依赖的package包/类
protected void newPage() {
	addRegions(xlsSheet, regions, wb);
	if (hasTemplate()) {
		xlsSheet = wb.getSheetAt(bean.getReportLayout().getTemplateSheet()-1);  
	} else {
		// for a group name inside sheet name when we create a page we do not have the group name yet
		// so we will have to set the name of the previous sheet (see also finishExport where we set the name of the last sheet(s)
		String sheetName = replaceSheetNameParam(bean.getReportLayout().getSheetNames());
		if ((sheetName == null) || sheetName.isEmpty()) {
			sheetName = String.valueOf(page);
		}
		if (sheetNameContainsGroup(bean.getReportLayout().getSheetNames()) && (page>1)) {
			// current group is for previous sheet page			
			xlsSheet = wb.createSheet(String.valueOf(page));				
			wb.setSheetName(page-2, sheetName);				
		} else {
			xlsSheet = wb.createSheet(sheetName);
		}
	}
	xlsSheet.setMargin(InternalSheet.LeftMargin, getInches(bean.getReportLayout().getPagePadding().getLeft()));
	xlsSheet.setMargin(InternalSheet.RightMargin, getInches(bean.getReportLayout().getPagePadding().getRight()));
	xlsSheet.setMargin(InternalSheet.TopMargin, getInches(bean.getReportLayout().getPagePadding().getTop()));
	xlsSheet.setMargin(InternalSheet.BottomMargin, getInches(bean.getReportLayout().getPagePadding().getBottom()));		
	
	if (bean.getReportLayout().getOrientation() == LANDSCAPE) {
		xlsSheet.getPrintSetup().setLandscape(true);			
	}
	
	setPaperSize();
	
	patriarch = xlsSheet.createDrawingPatriarch();
	buildHeader();
	buildFooter();
	page++;
	// first page header is written by ResultExporter
	if (bean.getReportLayout().isHeaderOnEveryPage() && (page > 2)) {
		try {
			printHeaderBand();
		} catch (QueryException e) {
			e.printStackTrace();
		}
	}
}
 
开发者ID:nextreports,项目名称:nextreports-engine,代码行数:44,代码来源:XlsExporter.java


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