/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package performa.utils;

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

/**
 *
 * @author nilu
 */
public class LevelSearcher implements ORMTextSearcher 
{
    
    @Override
    public BaseBusinessClass[] search(ObjectTransaction tx, String searchTerm) 
    {
        return Level.SearchByAll().andLevelDescription(new ILikeFilter(searchTerm, "%", "%")).search(tx);
    }
}