public String firstNameFilter() {
return _firstNameFilter;
}
public void setFirstNameFilter(String value) {
_firstNameFilter = value;
_filteredArray = null;
}
public String lastNameFilter() {
return _lastNameFilter;
}
public void setLastNameFilter(String value) {
_lastNameFilter = value;
_filteredArray = null;
}
public NSArray allClientsAfterFilter() {
if (_filteredArray == null) {
EOQualifier lastNameQual = null;
if (_lastNameFilter != null) {
lastNameQual = ERXQ.likeInsensitive("personInfo.lastName", _lastNameFilter + "*");
} else {
lastNameQual = ERXQ.likeInsensitive("personInfo.lastName", "*");
}
EOQualifier firstNameQual = null;
if (_firstNameFilter != null) {
firstNameQual = ERXQ.likeInsensitive("personInfo.firstName", _firstNameFilter + "*");
} else {
firstNameQual = ERXQ.likeInsensitive("personInfo.firstName", "*");
}