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

import com.l7tech.objectmodel.Goid;
import com.l7tech.objectmodel.PersistentEntity;
import com.l7tech.server.HibernateEntityManager;
import com.l7tech.server.util.ReadOnlyHibernateCallback;
import java.io.Serializable;
import java.sql.SQLException;
import org.hibernate.HibernateException;
import org.hibernate.Session;

class bs
extends ReadOnlyHibernateCallback<ET> {
    final Class val$impClass;
    final Goid val$goid;
    final HibernateEntityManager this$0;

    bs(HibernateEntityManager hibernateEntityManager, Class clazz, Goid goid) {
        this.this$0 = hibernateEntityManager;
        this.val$impClass = clazz;
        this.val$goid = goid;
    }

    @Override
    public ET doInHibernateReadOnly(Session session) throws HibernateException, SQLException {
        PersistentEntity persistentEntity = (PersistentEntity)session.get(this.val$impClass, (Serializable)this.val$goid);
        this.this$0.initializeLazilyLoaded(persistentEntity);
        return persistentEntity;
    }
}

