filter.java

来自「hibernate 开源框架的代码 jar包希望大家能喜欢」· Java 代码 · 共 69 行

JAVA
69
字号
// $Id: Filter.java 8754 2005-12-05 23:36:59Z steveebersole $package org.hibernate;import org.hibernate.engine.FilterDefinition;import java.util.Collection;/** * Type definition of Filter.  Filter defines the user's view into enabled dynamic filters, * allowing them to set filter parameter values. * * @author Steve Ebersole */public interface Filter {	/**	 * Get the name of this filter.	 *	 * @return This filter's name.	 */	public String getName();	/**	 * Get the filter definition containing additional information about the	 * filter (such as default-condition and expected parameter names/types).	 *	 * @return The filter definition	 */	public FilterDefinition getFilterDefinition();	/**	 * Set the named parameter's value for this filter.	 *	 * @param name The parameter's name.	 * @param value The value to be applied.	 * @return This FilterImpl instance (for method chaining).	 */	public Filter setParameter(String name, Object value);	/**	 * Set the named parameter's value list for this filter.  Used	 * in conjunction with IN-style filter criteria.	 *	 * @param name The parameter's name.	 * @param values The values to be expanded into an SQL IN list.	 * @return This FilterImpl instance (for method chaining).	 */	public Filter setParameterList(String name, Collection values);	/**	 * Set the named parameter's value list for this filter.  Used	 * in conjunction with IN-style filter criteria.	 *	 * @param name The parameter's name.	 * @param values The values to be expanded into an SQL IN list.	 * @return This FilterImpl instance (for method chaining).	 */	public Filter setParameterList(String name, Object[] values);	/**	 * 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;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?