Class JasperUtil

java.lang.Object
org.brerp.base.util.JasperUtil

public class JasperUtil extends Object
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 Details

    • BRERP_REPORT_HOME

      public static File BRERP_REPORT_HOME
  • Constructor Details

    • JasperUtil

      public JasperUtil()
  • Method Details

    • getJasperFile

      public static File getJasperFile(String jasperName)
    • getValueBD

      public static BigDecimal getValueBD(Connection conn, String sql)
      Get a BigDecimal value from DB
      Parameters:
      conn -
      sql -
      Returns:
      value or 0 if error
    • getValueBD

      public static BigDecimal getValueBD(Connection conn, String sql, Object[] para)
      Get a BigDecimal value from DB
      Parameters:
      conn -
      sql -
      para -
      Returns:
      value or 0 if error
    • getStringValueBD

      public static String getStringValueBD(Connection conn, String sql, Object[] para)
      Get a String value from DB
      Parameters:
      conn -
      sql -
      para -
      Returns:
      value or "" if error
    • getOrganizationLogo

      public static InputStream getOrganizationLogo(Connection conn, BigDecimal AD_Org_ID)
      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