Package org.brerp.base.util
Class JasperUtil
java.lang.Object
org.brerp.base.util.JasperUtil
Utils for JasperReports
- Version:
- $Id: JasperUtil.java, v1.0 Dec 5, 2012 8:52:14 PM, muriloht Exp $
- Author:
- muriloht (muriloht@devcoffee.com.br, http://www.devcoffee.com.br)
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic File
getJasperFile
(String jasperName) static InputStream
getOrganizationLogo
(Connection conn, BigDecimal AD_Org_ID) Get (if configured) the Organization logostatic InputStream
getOrganizationLogo
(Connection conn, BigDecimal AD_Client_ID, BigDecimal AD_Org_ID) Get the Organization logo and if not configured fallback to the Client Logostatic String
getStringValueBD
(Connection conn, String sql, Object[] para) Get a String value from DBstatic BigDecimal
getValueBD
(Connection conn, String sql) Get a BigDecimal value from DBstatic BigDecimal
getValueBD
(Connection conn, String sql, Object[] para) Get a BigDecimal value from DB
-
Field Details
-
BRERP_REPORT_HOME
-
-
Constructor Details
-
JasperUtil
public JasperUtil()
-
-
Method Details
-
getJasperFile
-
getValueBD
Get a BigDecimal value from DB- Parameters:
conn
-sql
-- Returns:
- value or 0 if error
-
getValueBD
Get a BigDecimal value from DB- Parameters:
conn
-sql
-para
-- Returns:
- value or 0 if error
-
getStringValueBD
Get a String value from DB- Parameters:
conn
-sql
-para
-- Returns:
- value or "" if error
-
getOrganizationLogo
Get (if configured) the Organization logo- Parameters:
conn
-AD_Org_ID
-- Returns:
- logo or null if error
-
getOrganizationLogo
public static InputStream getOrganizationLogo(Connection conn, BigDecimal AD_Client_ID, BigDecimal AD_Org_ID) Get the Organization logo and if not configured fallback to the Client Logo- Parameters:
conn
-AD_Client_ID
-AD_Org_ID
-- Returns:
- logo or null if error
-