All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.loader.collection.plan.BatchingCollectionInitializer Maven / Gradle / Ivy

/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.loader.collection.plan;

import org.hibernate.loader.collection.CollectionInitializer;
import org.hibernate.persister.collection.CollectionPersister;
import org.hibernate.persister.collection.QueryableCollection;

/**
 * The base contract for loaders capable of performing batch-fetch loading of collections using multiple foreign key
 * values in the SQL WHERE clause.
 *
 * @author Gavin King
 * @author Steve Ebersole
 *
 * @see org.hibernate.loader.collection.BatchingCollectionInitializerBuilder
 * @see org.hibernate.loader.collection.BasicCollectionLoader
 * @see org.hibernate.loader.collection.OneToManyLoader
 */
public abstract class BatchingCollectionInitializer implements CollectionInitializer {
	private final QueryableCollection collectionPersister;

	public BatchingCollectionInitializer(QueryableCollection collectionPersister) {
		this.collectionPersister = collectionPersister;
	}

	public CollectionPersister getCollectionPersister() {
		return collectionPersister;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy