/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.l7tech.objectmodel.PersistentEntity
 *  com.l7tech.util.Functions$Ternary
 *  org.hibernate.HibernateException
 *  org.hibernate.Session
 */
package com.l7tech.server;

import com.l7tech.objectmodel.PersistentEntity;
import com.l7tech.server.HibernateEntityManager;
import com.l7tech.server.util.ReadOnlyHibernateCallback;
import com.l7tech.util.Functions;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;
import org.hibernate.HibernateException;
import org.hibernate.Session;

class by
extends ReadOnlyHibernateCallback<List<ET>> {
    final Collection val$maps;
    final Functions.Ternary val$predicateCustomizer;
    final HibernateEntityManager this$0;

    by(HibernateEntityManager hibernateEntityManager, Collection collection, Functions.Ternary ternary) {
        this.this$0 = hibernateEntityManager;
        this.val$maps = collection;
        this.val$predicateCustomizer = ternary;
    }

    @Override
    protected List<ET> doInHibernateReadOnly(Session session) throws HibernateException, SQLException {
        List list = this.this$0.a(session, this.val$maps, this.val$predicateCustomizer).getResultList();
        for (PersistentEntity persistentEntity : list) {
            this.this$0.initializeLazilyLoaded(persistentEntity);
        }
        return list;
    }
}

