diff --git a/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/DataSource.java b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/DataSource.java index d41c0c98c..d19b6cbe9 100644 --- a/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/DataSource.java +++ b/src/java/com/rjconsultores/ventaboletos/relatorios/utilitarios/DataSource.java @@ -32,11 +32,13 @@ public class DataSource implements IDataSource { @Override public Object getFieldValue(JRField field) throws JRException { try { - return this.resultSet.getObject(field.getName()); - } catch (Exception e) { - log.error("", e); - throw new JRException(e); + Object valueCustomField = this.valueCustomFields(field.getName()); + return (valueCustomField != null) ? valueCustomField : this.resultSet.getObject(field.getName()); + } catch (Exception e) { + e.printStackTrace(); + throw new JRException(e); + } } @@ -60,5 +62,10 @@ public class DataSource implements IDataSource { public void initDados() throws Exception { } + + public Object valueCustomFields(String fieldName) throws Exception { + // TODO Auto-generated method stub + return null; + } }