/** * Perform validation of the filter state. This is used to verify the * state of the filter after its enablement and before its use. * * @throws HibernateException If the state is not currently valid. */ public void validate() throws HibernateException { // for each of the defined parameters, make sure its value // has been set for ( final String parameterName : definition.getParameterNames() ) { if ( parameters.get( parameterName ) == null ) { throw new HibernateException( "Filter [" + getName() + "] parameter [" + parameterName + "] value not set" ); } } } }
/** * Perform validation of the filter state. This is used to verify the * state of the filter after its enablement and before its use. * * @throws HibernateException If the state is not currently valid. */ public void validate() throws HibernateException { // for each of the defined parameters, make sure its value // has been set Iterator itr = definition.getParameterNames().iterator(); while ( itr.hasNext() ) { final String parameterName = (String) itr.next(); if ( parameters.get( parameterName ) == null ) { throw new HibernateException( "Filter [" + getName() + "] parameter [" + parameterName + "] value not set" ); } } } }
/** * Perform validation of the filter state. This is used to verify the * state of the filter after its enablement and before its use. * * @throws HibernateException If the state is not currently valid. */ public void validate() throws HibernateException { // for each of the defined parameters, make sure its value // has been set Iterator itr = definition.getParameterNames().iterator(); while ( itr.hasNext() ) { final String parameterName = (String) itr.next(); if ( parameters.get( parameterName ) == null ) { throw new HibernateException( "Filter [" + getName() + "] parameter [" + parameterName + "] value not set" ); } } } }
/** * Perform validation of the filter state. This is used to verify the * state of the filter after its enablement and before its use. * * @throws HibernateException If the state is not currently valid. */ public void validate() throws HibernateException { // for each of the defined parameters, make sure its value // has been set for ( final String parameterName : definition.getParameterNames() ) { if ( parameters.get( parameterName ) == null ) { throw new HibernateException( "Filter [" + getName() + "] parameter [" + parameterName + "] value not set" ); } } } }