org.riotfamily.riot.hibernate.form
Class HqlAutoCompleterModel

java.lang.Object
  extended by org.riotfamily.riot.hibernate.support.HibernateSupport
      extended by org.riotfamily.riot.hibernate.form.HqlAutoCompleterModel
All Implemented Interfaces:
AutocompleterModel

public class HqlAutoCompleterModel
extends HibernateSupport
implements AutocompleterModel


Constructor Summary
HqlAutoCompleterModel(org.hibernate.SessionFactory sessionFactory)
           
 
Method Summary
 Collection<String> getSuggestions(String search, AutocompleteTextField element)
           
 void setHql(String hql)
           
 
Methods inherited from class org.riotfamily.riot.hibernate.support.HibernateSupport
createCriteria, createFilter, createQuery, getSession, getSessionFactory, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HqlAutoCompleterModel

public HqlAutoCompleterModel(org.hibernate.SessionFactory sessionFactory)
Method Detail

setHql

public void setHql(String hql)

getSuggestions

public Collection<String> getSuggestions(String search,
                                         AutocompleteTextField element)
Specified by:
getSuggestions in interface AutocompleterModel