Class Hibernate5StatelessSessionBatchProcessor

java.lang.Object
com.atlassian.crowd.util.persistence.hibernate.batch.AbstractBatchProcessor<T>
com.atlassian.crowd.util.persistence.hibernate.batch.hibernate5.AbstractHibernateBatchProcessor<org.hibernate.StatelessSession>
com.atlassian.crowd.util.persistence.hibernate.batch.hibernate5.Hibernate5StatelessSessionBatchProcessor
All Implemented Interfaces:
BatchProcessor<org.hibernate.StatelessSession>, StatelessSessionBatchProcessor

public class Hibernate5StatelessSessionBatchProcessor extends AbstractHibernateBatchProcessor<org.hibernate.StatelessSession> implements StatelessSessionBatchProcessor
This is the Hibernate 5 implementation of the batch processor. Just like Hibernate5BatchProcessor it runs every collection in a separate session and every batch in a separate transaction. It does use a StatelessSession under the covers, making it incompatible with HibernateOperation instances for a regular session. Care should be taken when using this class as stateless session bypasses Hibernate's event model, interceptors, doesn't implement a first-level cache, doesn't interact with the second level cache and the query cache and ignores collections. The operations performed will not cascade to associated instances. For more information please read The Hibernate documentation