if (parameters.isEmpty()){
parameters = new DatabaseRecord();
}
//Some DB don't support FirstRow in SELECT statements in spite of supporting MaxResults(Symfoware).
//We should check FirstRow and MaxResults separately.
if(databaseCall.shouldIgnoreFirstRowSetting()){
parameters.add(DatabaseCall.FIRSTRESULT_FIELD, this.getFirstResult());
}
if(databaseCall.shouldIgnoreMaxResultsSetting()){
parameters.add(DatabaseCall.MAXROW_FIELD, session.getPlatform().computeMaxRowsForSQL(this.getFirstResult(), this.getMaxRows()));
}