gleimar 2015-10-28 02:01:37 +00:00
parent 0372153197
commit 67fed4acda
1 changed files with 11 additions and 4 deletions

View File

@ -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;
}
}