| |
|
| java.lang.Object org.hibernate.impl.FilterImpl
FilterImpl | public class FilterImpl implements Filter,Serializable(Code) | | Implementation of FilterImpl. FilterImpl implements the user's
view into enabled dynamic filters, allowing them to set filter parameter values.
author: Steve Ebersole |
FilterImpl | public FilterImpl(FilterDefinition configuration)(Code) | | Constructs a new FilterImpl.
Parameters: configuration - The filter's global configuration. |
getName | public String getName()(Code) | | Get the name of this filter.
This filter's name. |
getParameter | public Object getParameter(String name)(Code) | | Get the value of the named parameter for the current filter.
Parameters: name - The name of the parameter for which to return the value. The value of the named parameter. |
getParameters | public Map getParameters()(Code) | | |
setParameter | public Filter setParameter(String name, Object value) throws IllegalArgumentException(Code) | | Set the named parameter's value for this filter.
Parameters: name - The parameter's name. Parameters: value - The value to be applied. This FilterImpl instance (for method chaining). throws: IllegalArgumentException - Indicates that either the parameter was undefined or that the typeof the passed value did not match the configured type. |
setParameterList | public Filter setParameterList(String name, Collection values) throws HibernateException(Code) | | Set the named parameter's value list for this filter. Used
in conjunction with IN-style filter criteria.
Parameters: name - The parameter's name. Parameters: values - The values to be expanded into an SQL IN list. This FilterImpl instance (for method chaining). |
setParameterList | public Filter setParameterList(String name, Object[] values) throws IllegalArgumentException(Code) | | Set the named parameter's value list for this filter. Used
in conjunction with IN-style filter criteria.
Parameters: name - The parameter's name. Parameters: values - The values to be expanded into an SQL IN list. This FilterImpl instance (for method chaining). |
validate | public void validate() throws HibernateException(Code) | | 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. |
|
|
|