org.riotfamily.riot.hibernate.status
Class HqlStatusMonitor

java.lang.Object
  extended by org.riotfamily.riot.status.AbstractStatusMonitor
      extended by org.riotfamily.riot.hibernate.status.HqlStatusMonitor
All Implemented Interfaces:
StatusMonitor, BeanNameAware, MessageSourceAware

public class HqlStatusMonitor
extends AbstractStatusMonitor


Constructor Summary
HqlStatusMonitor()
           
 
Method Summary
protected  Object[] getArgs()
          Subclasses must return an array of objects which will be passed to the MessageSource as arguments.
 void setHql(String hql)
           
 void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
           
 
Methods inherited from class org.riotfamily.riot.status.AbstractStatusMonitor
getMessages, isHideZeroStatus, isVisible, setBeanName, setCache, setHideZeroStatus, setLink, setMessageKey, setMessageSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HqlStatusMonitor

public HqlStatusMonitor()
Method Detail

setSessionFactory

public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)

setHql

public void setHql(String hql)

getArgs

protected Object[] getArgs()
Description copied from class: AbstractStatusMonitor
Subclasses must return an array of objects which will be passed to the MessageSource as arguments. All arguments that are neither primitive wrappers nor dates will be HTML-escaped automatically to prevent XSS attacks.

Specified by:
getArgs in class AbstractStatusMonitor
See Also:
FormatUtils.htmlEscapeArgs(Object[])