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

import com.l7tech.server.HibernateEntityManager;
import com.l7tech.server.ah;
import com.l7tech.server.util.ReadOnlyHibernateCallback;
import com.l7tech.util.Functions;
import java.sql.SQLException;
import org.hibernate.HibernateException;
import org.hibernate.Session;
import org.hibernate.jdbc.Work;

class bu
extends ReadOnlyHibernateCallback<R> {
    final Functions.UnaryThrows val$callback;

    bu(HibernateEntityManager hibernateEntityManager, Functions.UnaryThrows unaryThrows) {
        this.val$callback = unaryThrows;
    }

    @Override
    protected R doInHibernateReadOnly(Session session) throws HibernateException, SQLException {
        Object[] objectArray = new Object[]{null};
        session.doWork((Work)new ah(this, objectArray));
        return objectArray[0];
    }
}

