/**
* executeQueryForCollection - overridden for custom java data source support.
*/
protected void executeQueryForCollection(Object qc, Object[] params,
int noUserParams) {
thirdPartyDataSource.filterOutValues(params);
super.executeQueryForCollection(qc, params, noUserParams);
}
/**
* createRowFromResultSet - overridden for custom java data source support.
*/
protected ViewRowImpl createRowFromResultSet(Object qc,
ResultSet resultSet) {
EmployeesViewRowImpl rowImpl = (EmployeesViewRowImpl)super.createRowFromResultSet(qc, resultSet);
rowImpl.populateAttribute(EmployeesViewRowImpl.LOCATIONDETAILS,
thirdPartyDataSource.getValueForAttribute
(EmployeesViewRowImpl.AttributesEnum.LocationDetails.toString(),
rowImpl.getKey().getAttributeValues()));
return rowImpl;
}
You can download the sample workspace from here.
[Runs with Oracle JDeveloper 11g R1 PS2 + HR Schema]
1 comment:
Very useful Post.
Thanks!
Post a Comment