CVDal cvdl = new CVDal(this.dataSource);
if (filter != null && filter.length() > 0)
{
String str = "CREATE TABLE historylistfilter " + filter;
cvdl.setSqlQuery(str);
cvdl.executeUpdate();
cvdl.setSqlQueryToNull();
}
int numberOfRecords = 0;
numberOfRecords = EJBUtil.buildListFilterTable(cvdl, "historylistfilter", individualId, 0, "history", "historyId", "owner", null, false);
parameters.setTotalRecords(numberOfRecords);