It is possible to set a number of records, that we want to be extracted from data source (XML file, text file, database and so on) using setLimit method, for all DataSource types
Setting limit where src is an instance of DataSource:
src.setLimit(5); //only 5 records will be retrieved |
There is a possibility to set starting record, from which data will be retrieved using setStartRecord method, for all DataSource types.
Setting limit where src is an instance of DataSource:
src.setStartRecord(5); //data from the fifth record will be retrieved |
For JdbcDataSource it is possible to set filter data using setFilterCondition method.
Setting limit where src is an instance of JdbcDataSource:
//only data where field cond will be false, will be retrieved src.setFilterCondition("cond = 'false'"); |