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,9 +32,11 @@ public class DataSource implements IDataSource {
@Override
public Object getFieldValue(JRField field) throws JRException {
try {
return this.resultSet.getObject(field.getName());
Object valueCustomField = this.valueCustomFields(field.getName());
return (valueCustomField != null) ? valueCustomField : this.resultSet.getObject(field.getName());
} catch (Exception e) {
log.error("", e);
e.printStackTrace();
throw new JRException(e);
}
@ -61,4 +63,9 @@ public class DataSource implements IDataSource {
}
public Object valueCustomFields(String fieldName) throws Exception {
// TODO Auto-generated method stub
return null;
}
}