/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package performa.search;

import oneit.objstore.BaseBusinessClass;
import oneit.servlets.jsp.ORMTextSearcher;
import oneit.objstore.ObjectTransaction;
import oneit.objstore.rdbms.filters.ILikeFilter;
import performa.orm.ILOJobTitle;

public class ILOJobTitleSearcher implements ORMTextSearcher
{
    public static ILOJobTitleSearcher INSTANCE = new ILOJobTitleSearcher();

    @Override
    public BaseBusinessClass[] search(ObjectTransaction ot, String searchTerm)
    {
        return ILOJobTitle.SearchByAll().andJobTitle(new ILikeFilter(searchTerm, "%", "%")).search(ot);
    }
}
