Code example for Type

Methods: getReturnedClass

0
		Type type = definition.getParameterType( name );
		if ( type == null ) {
			throw new IllegalArgumentException( "Undefined filter parameter [" + name + "]" );
		} 
		if ( value != null && !type.getReturnedClass().isAssignableFrom( value.getClass() ) ) {
			throw new IllegalArgumentException( "Incorrect type for parameter [" + name + "]" );
		} 
		parameters.put( name, value );
		return this;
	} 
 
	/** 
	 * 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) throws HibernateException  {
Connect your IDE to all the code out there  Get Codota for Java