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

QueryImpl

public class QueryImpl extends AbstractQueryImpl
default implementation of the Query interface, for "ordinary" HQL queries (not collection filters)
see
CollectionFilterImpl
author
Gavin King

Fields Summary
private Map
lockModes
Constructors Summary
public QueryImpl(String queryString, org.hibernate.FlushMode flushMode, org.hibernate.engine.SessionImplementor session, org.hibernate.engine.query.ParameterMetadata parameterMetadata)


	 
			 
	         
	         
	          
		super( queryString, flushMode, session, parameterMetadata );
	
public QueryImpl(String queryString, org.hibernate.engine.SessionImplementor session, org.hibernate.engine.query.ParameterMetadata parameterMetadata)

		this( queryString, null, session, parameterMetadata );
	
Methods Summary
public intexecuteUpdate()

		verifyParameters();
		Map namedParams = getNamedParams();
		before();
		try {
            return getSession().executeUpdate(
                    expandParameterLists( namedParams ),
                    getQueryParameters( namedParams )
	            );
		}
		finally {
			after();
		}
	
protected java.util.MapgetLockModes()

		return lockModes;
	
public java.util.Iteratoriterate()

		verifyParameters();
		Map namedParams = getNamedParams();
		before();
		try {
			return getSession().iterate(
					expandParameterLists(namedParams),
			        getQueryParameters(namedParams)
				);
		}
		finally {
			after();
		}
	
public java.util.Listlist()

		verifyParameters();
		Map namedParams = getNamedParams();
		before();
		try {
			return getSession().list(
					expandParameterLists(namedParams),
			        getQueryParameters(namedParams)
				);
		}
		finally {
			after();
		}
	
public org.hibernate.ScrollableResultsscroll()

		return scroll( ScrollMode.SCROLL_INSENSITIVE );
	
public org.hibernate.ScrollableResultsscroll(org.hibernate.ScrollMode scrollMode)

		verifyParameters();
		Map namedParams = getNamedParams();
		before();
		QueryParameters qp = getQueryParameters(namedParams);
		qp.setScrollMode(scrollMode);
		try {
			return getSession().scroll( expandParameterLists(namedParams), qp );
		}
		finally {
			after();
		}
	
public org.hibernate.QuerysetLockMode(java.lang.String alias, org.hibernate.LockMode lockMode)

		lockModes.put(alias, lockMode);
		return this;