* would be returned back to the caller
* @return
*/
public List<TxtHostRecord> queryForHosts(String searchCriteria) {
try {
TblHostsJpaController tblHostsJpaController = new TblHostsJpaController(getEntityManagerFactory());
List<TxtHostRecord> txtHostList = new ArrayList<TxtHostRecord>();
List<TblHosts> tblHostList;
if (searchCriteria != null && !searchCriteria.isEmpty())
tblHostList = tblHostsJpaController.findHostsByNameSearchCriteria(searchCriteria);
else
tblHostList = tblHostsJpaController.findTblHostsEntities();
if (tblHostList != null) {
log.info(String.format("Found [%d] host results for search criteria [%s]", tblHostList.size(), searchCriteria));