Package models

Examples of models.SearchHistory.save()


  protected void saveSearchHistory(String searchTerm) {
    if (StringUtils.isNotBlank(searchTerm)) {
      SearchHistory s = new SearchHistory();
      s.date = new Date();
      s.searchTerm = searchTerm;
      s.save();
    } else {
      Logger.warn("Cannot save search history for invalid term: %s", searchTerm);
    }
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.