FileDocCategorySizeDatePackage
CollectionFilterImpl.javaAPI DocHibernate 3.2.52043Fri Nov 04 14:28:50 GMT 2005org.hibernate.impl

CollectionFilterImpl

public class CollectionFilterImpl extends QueryImpl
implementation of the Query interface for collection filters
author
Gavin King

Fields Summary
private Object
collection
Constructors Summary
public CollectionFilterImpl(String queryString, Object collection, org.hibernate.engine.SessionImplementor session, org.hibernate.engine.query.ParameterMetadata parameterMetadata)

		super( queryString, session, parameterMetadata );
		this.collection = collection;
	
Methods Summary
public java.util.Iteratoriterate()

see
org.hibernate.Query#iterate()

		verifyParameters();
		Map namedParams = getNamedParams();
		return getSession().iterateFilter( 
				collection, 
				expandParameterLists(namedParams),
				getQueryParameters(namedParams) 
		);
	
public java.util.Listlist()

see
org.hibernate.Query#list()

		verifyParameters();
		Map namedParams = getNamedParams();
		return getSession().listFilter( 
				collection, 
				expandParameterLists(namedParams),
				getQueryParameters(namedParams) 
		);
	
public org.hibernate.ScrollableResultsscroll()

see
org.hibernate.Query#scroll()

		throw new UnsupportedOperationException("Can't scroll filters");
	
public org.hibernate.type.Type[]typeArray()

		List typeList = getTypes();
		int size = typeList.size();
		Type[] result = new Type[size+1];
		for (int i=0; i<size; i++) result[i+1] = (Type) typeList.get(i);
		return result;
	
public java.lang.Object[]valueArray()

		List valueList = getValues();
		int size = valueList.size();
		Object[] result = new Object[size+1];
		for (int i=0; i<size; i++) result[i+1] = valueList.get(i);
		return result;