lt.monarch.data.binding
Interface Filterable

All Known Implementing Classes:
DataView, JdbcDataSource, ObjectDataSource, TextFileDataSource, XMLDataSource

public interface Filterable


Method Summary
Modifier and Type Method and Description
 java.lang.String getFilterCondition()
          Returns additional filter conditions
 java.lang.Integer getLimit()
          Returns result limit
 int getStartRecord()
          Return index of the first record.
 void setFilterCondition(java.lang.String condition)
          Sets additional filter conditions
 void setLimit(java.lang.Integer size)
          Sets limit for results.
 void setStartRecord(int index)
          Sets index of the first record that should be retrieved.
 

Method Detail

getFilterCondition

java.lang.String getFilterCondition()
Returns additional filter conditions

Returns:
String value showing additional conditions to the filter

setFilterCondition

void setFilterCondition(java.lang.String condition)
Sets additional filter conditions

Parameters:
condition - Filter conditions

getLimit

java.lang.Integer getLimit()
Returns result limit

Returns:

setLimit

void setLimit(java.lang.Integer size)
Sets limit for results. Default value is null - this means that all values from data source should be retrieved. If the concrete value is set then DataSource will retrieve not more than the given amount of data. For example, if limit is set to 4 then DataSource will retrieve maximum 4 result rows.

Parameters:
size -

getStartRecord

int getStartRecord()
Return index of the first record. Default is 0.

Returns:
Index of the first record in data source.

setStartRecord

void setStartRecord(int index)
Sets index of the first record that should be retrieved. For example, if startRecord=3 then DataSource will skip rows with the index 0, 1 or 2 and will start reading from the row with the index 3.

Parameters:
index - first record index