當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。